2
* The contents of this file are subject to the Mozilla Public License
3
* Version 1.1 (the "License"); you may not use this file except in
4
* compliance with the License. You may obtain a copy of the License at
5
* http://www.mozilla.org/MPL/
7
* Software distributed under the License is distributed on an "AS IS"
8
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
9
* License for the specific language governing rights and limitations
12
* The Original Code is the Mozilla OS/2 libraries.
14
* The Initial Developer of the Original Code is John Fairhurst,
15
* <john_fairhurst@iname.com>. Portions created by John Fairhurst are
16
* Copyright (C) 1999 John Fairhurst. All Rights Reserved.
22
#ifndef _nsilocaleos2_h_
23
#define _nsilocaleos2_h_
25
#include "nsISupports.h"
26
#include "unidef.h" // for LocaleObject
30
// XXX I made this IID up. Get a legit one when we land the branch.
32
// {00932BE1-B65A-11d2-AF0B-aa60089FE59B}
33
#define NS_ILOCALEOS2_IID \
34
{ 0x932be1, 0xb65a, 0x11d2, \
35
{ 0xaf, 0xb, 0xaa, 0x60, 0x8, 0x9f, 0xe5, 0x9b }}
37
class nsILocaleOS2 : public nsISupports
40
// Init a complex locale - categories should be magic nsLocale words
41
NS_IMETHOD Init( nsString **aCatList,
45
// Init a locale object from a xx-XX style name
46
NS_IMETHOD Init( const nsString &aLocaleName) = 0;
48
// Get the OS/2 locale object
49
NS_IMETHOD GetLocaleObject( LocaleObject *aLocaleObject) = 0;