InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CHLUserDict.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 __CHLUserDict_h__
25 #define __CHLUserDict_h__
26 #include "LanguageID.h"
27 
28 #define HY_NORM 0x04
29 #define HY_PREF 0x05
30 #define HY_UNPREF 0x06
31 
32 class ILanguage;
33 class IDFile;
34 
35 #include "UserDictWordList.h"
36 #include "IUserDictService.h"
37 
38 //----------------------------------------------------------------------------------------
39 // Class CHLUserDict
40 //----------------------------------------------------------------------------------------
41 
42 class CHLUserDict : public CPMUnknown<IUserDict>
43 {
44 public:
45  CHLUserDict(IPMUnknown * boss);
46  virtual ~CHLUserDict();
47 
48  virtual void SetFilePathName(const PMString& filePath);
49  virtual const PMString& GetFilePathName(void) const;
50 
51  virtual void SetDataFile(void* dataFile);
52  virtual void* GetDataFile(void) const;
53 
54  virtual void Flush(void);
55 
56  virtual PMString GetDisplayName();
57 
58 public:
59  void GetUserDictWordList(UserDictWordList& userDictWordList);
60  void SetUserDictWordList(const UserDictWordList& userDictWordList);
61  void SetLanguageID(LanguageID languageID);
62  LanguageID GetLanguageID(void);
63 
64 protected:
65  PMString fFilePathName;
66  IDFile* fUDCDataFile;
67  LanguageID fLanguageID;
68 
69 private:
70  UserDictWordList fUserDictWordList;
71 };
72 
73 #endif // __CHLUserDict_h__