InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILanguageList.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __ILanguageList__
25 #define __ILanguageList__
26 
27 #include "IPMUnknown.h"
28 #include "LinguisticID.h"
29 #include "LanguageID.h"
30 
31 
32 //----------------------------------------------------------------------------------------
33 // Interface ILanguageList
34 //----------------------------------------------------------------------------------------
35 
36 class ILanguage;
37 class PMString;
38 class ICommand;
39 
46 class ILanguageList : public IPMUnknown
47 {
48 public:
49  enum { kDefaultIID = IID_ILANGUAGELIST };
50 
57  virtual int32 GetLanguageCount() const = 0;
58 
63  virtual ILanguage * QueryNthLanguage( int32 nNthLanguage ) = 0;
64 
70  virtual ILanguage * QueryLanguage( const PMString &rLanguageName ) = 0;
71 
75  virtual ILanguage * QueryDefaultLanguage() = 0;
76 
82  virtual bool16 SetDefaultLanguage( const ILanguage *pLanguage ) = 0;
83 
89  virtual bool16 AddLanguage( UID nNewLanguage ) = 0;
90 
96  virtual bool16 RemoveLanguage( UID nNewLanguage ) = 0;
97 
105  virtual ILanguage * QueryLanguageByID(LanguageID nLanguageID) = 0;
106 };
107 
108 
109 #endif