~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/intl/locale/src/os2/nsILocaleOS2.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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/
 
6
 *
 
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
 
10
 * under the License.
 
11
 *
 
12
 * The Original Code is the Mozilla OS/2 libraries.
 
13
 *
 
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.
 
17
 *
 
18
 * Contributor(s): 
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef _nsilocaleos2_h_
 
23
#define _nsilocaleos2_h_
 
24
 
 
25
#include "nsISupports.h"
 
26
#include "unidef.h"       // for LocaleObject
 
27
 
 
28
class nsString;
 
29
 
 
30
// XXX I made this IID up.  Get a legit one when we land the branch.
 
31
 
 
32
// {00932BE1-B65A-11d2-AF0B-aa60089FE59B}
 
33
#define NS_ILOCALEOS2_IID                           \
 
34
{ 0x932be1, 0xb65a, 0x11d2,                    \
 
35
{ 0xaf, 0xb, 0xaa, 0x60, 0x8, 0x9f, 0xe5, 0x9b }}
 
36
 
 
37
class nsILocaleOS2 : public nsISupports
 
38
{
 
39
 public:
 
40
   // Init a complex locale - categories should be magic nsLocale words
 
41
   NS_IMETHOD Init( nsString **aCatList,
 
42
                    nsString **aValList,
 
43
                    PRUint8    aLength) = 0;
 
44
 
 
45
   // Init a locale object from a xx-XX style name
 
46
   NS_IMETHOD Init( const nsString &aLocaleName) = 0;
 
47
 
 
48
   // Get the OS/2 locale object
 
49
   NS_IMETHOD GetLocaleObject( LocaleObject *aLocaleObject) = 0;
 
50
};
 
51
 
 
52
#endif