michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: #ifndef nsStringBundleTextOverride_h__ michael@0: #define nsStringBundleTextOverride_h__ michael@0: michael@0: #include "nsIStringBundleOverride.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsIPersistentProperties2.h" michael@0: michael@0: // {6316C6CE-12D3-479e-8F53-E289351412B8} michael@0: #define NS_STRINGBUNDLETEXTOVERRIDE_CID \ michael@0: { 0x6316c6ce, 0x12d3, 0x479e, \ michael@0: { 0x8f, 0x53, 0xe2, 0x89, 0x35, 0x14, 0x12, 0xb8 } } michael@0: michael@0: michael@0: #define NS_STRINGBUNDLETEXTOVERRIDE_CONTRACTID \ michael@0: "@mozilla.org/intl/stringbundle/text-override;1" michael@0: michael@0: // an implementation which does overrides from a text file michael@0: michael@0: class nsStringBundleTextOverride : public nsIStringBundleOverride michael@0: { michael@0: public: michael@0: nsStringBundleTextOverride() { } michael@0: virtual ~nsStringBundleTextOverride() {} michael@0: michael@0: nsresult Init(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISTRINGBUNDLEOVERRIDE michael@0: michael@0: private: michael@0: nsCOMPtr mValues; michael@0: michael@0: }; michael@0: michael@0: #endif