intl/strres/src/nsStringBundleTextOverride.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/strres/src/nsStringBundleTextOverride.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +
    1.10 +#ifndef nsStringBundleTextOverride_h__
    1.11 +#define nsStringBundleTextOverride_h__
    1.12 +
    1.13 +#include "nsIStringBundleOverride.h"
    1.14 +#include "nsCOMPtr.h"
    1.15 +#include "nsIPersistentProperties2.h"
    1.16 +
    1.17 +// {6316C6CE-12D3-479e-8F53-E289351412B8}
    1.18 +#define NS_STRINGBUNDLETEXTOVERRIDE_CID \
    1.19 +  { 0x6316c6ce, 0x12d3, 0x479e, \
    1.20 +  { 0x8f, 0x53, 0xe2, 0x89, 0x35, 0x14, 0x12, 0xb8 } }
    1.21 +
    1.22 +
    1.23 +#define NS_STRINGBUNDLETEXTOVERRIDE_CONTRACTID \
    1.24 +    "@mozilla.org/intl/stringbundle/text-override;1"
    1.25 +
    1.26 +// an implementation which does overrides from a text file
    1.27 +
    1.28 +class nsStringBundleTextOverride : public nsIStringBundleOverride
    1.29 +{
    1.30 + public:
    1.31 +    nsStringBundleTextOverride() { }
    1.32 +    virtual ~nsStringBundleTextOverride() {}
    1.33 +
    1.34 +    nsresult Init();
    1.35 +    
    1.36 +    NS_DECL_ISUPPORTS
    1.37 +    NS_DECL_NSISTRINGBUNDLEOVERRIDE
    1.38 +
    1.39 +private:
    1.40 +    nsCOMPtr<nsIPersistentProperties> mValues;
    1.41 +    
    1.42 +};
    1.43 +
    1.44 +#endif

mercurial