Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /* This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 :
7 : #ifndef nsStringBundleTextOverride_h__
8 : #define nsStringBundleTextOverride_h__
9 :
10 : #include "nsIStringBundleOverride.h"
11 : #include "nsCOMPtr.h"
12 : #include "nsIPersistentProperties2.h"
13 :
14 : // {6316C6CE-12D3-479e-8F53-E289351412B8}
15 : #define NS_STRINGBUNDLETEXTOVERRIDE_CID \
16 : { 0x6316c6ce, 0x12d3, 0x479e, \
17 : { 0x8f, 0x53, 0xe2, 0x89, 0x35, 0x14, 0x12, 0xb8 } }
18 :
19 :
20 : #define NS_STRINGBUNDLETEXTOVERRIDE_CONTRACTID \
21 : "@mozilla.org/intl/stringbundle/text-override;1"
22 :
23 : // an implementation which does overrides from a text file
24 :
25 : class nsStringBundleTextOverride : public nsIStringBundleOverride
26 : {
27 : public:
28 3 : nsStringBundleTextOverride() { }
29 :
30 : nsresult Init();
31 :
32 : NS_DECL_ISUPPORTS
33 : NS_DECL_NSISTRINGBUNDLEOVERRIDE
34 :
35 : private:
36 : nsCOMPtr<nsIPersistentProperties> mValues;
37 :
38 9 : virtual ~nsStringBundleTextOverride() {}
39 : };
40 :
41 : #endif
|