![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_IUSERDICTSERVICE } |
| enum | WordType { kIsAWord, kNotAWord } |
| enum | UserDictType { kNone, kIsDict, kNotDict } |
| enum | CreateType { kDoNotCreate, kCreateIfNotFound, kAlwaysCreate, kCreateMemoryOnly } |
Public Member Functions | |
| virtual bool16 | AddToUserDict (IUserDict *userDict, const UserDictWordList &constWordList, bool16 caseSensitive, bool16 addToNotList=kFalse)=0 |
| virtual bool16 | AddToUserDict (IUserDict *userDict, const WideString &rWord, const HyphenPoints *pPoints=nil, bool16 caseSensitive=kFalse)=0 |
| virtual bool16 | RemoveFromUserDict (IUserDict *userDict, const WideString &rWord)=0 |
| virtual bool16 | ClearUserDict (IUserDict *userDict)=0 |
| virtual UserDictType | GetCorrectedWord (IUserDict *userDict, const WideString &rWord, WideString *pCorrectedWord)=0 |
| virtual bool16 | GetHyphenatedWord (IUserDict *userDict, const WideString &rWord, WideString *pHyphenatedWord)=0 |
| virtual bool16 | AddUserDictToSearchPath (IUserDict *userDict, int32 index, bool16 addToVendorList=kTrue, bool16 initializing=kFalse)=0 |
| virtual bool16 | MoveUserDictInSearchPath (int32 oldIndex, int32 newIndex)=0 |
| virtual bool16 | RemoveUserDictFromSearchPath (IUserDict *userDict)=0 |
| virtual bool16 | ReplaceUserDictInSearchPath (IUserDict *originalUserDict, IUserDict *newUserDict)=0 |
| virtual int32 | QueryAllUserDictsInSearchPath (K2Vector< IUserDict * > &userDictList, bool16 bOpenFiles)=0 |
| virtual int32 | RemoveAllUserDictsFromSearchPath (void)=0 |
| virtual IUserDict * | QueryNotUserDict (void)=0 |
| virtual IUserDict * | QueryMainUserDict (void)=0 |
| virtual bool16 | SetMainUserDict (IUserDict *userDict)=0 |
| virtual IUserDict * | CreateNewUserDict (const PMString &filePathName, int16 createFlags)=0 |
| virtual bool16 | MigrateUserDict (const IDFile &existingDictFile, const IDFile &newDictFile)=0 |
| virtual bool16 | InitializePaths (void)=0 |
| virtual bool16 | IsReadOnly (IUserDict *userDict)=0 |
| virtual bool16 | Flush ()=0 |
| virtual void | FlushUserDicts (void)=0 |
| virtual const PMString & | GetDefaultFilePathName (void) const =0 |
| virtual const PMString & | GetNotFilePathName (void) const =0 |
| virtual bool16 | RemoveFromMainDict (const WideString &rWord)=0 |
| virtual bool16 | UndoRemoveFromMainDict (const WideString &rWord)=0 |
| virtual bool16 | ClearRemovedFromMainDict (IUserDict *userDict)=0 |
| virtual bool16 | CloseNotClamFile ()=0 |
| virtual bool16 | IsWordInMainDict (const WideString &rWord, const HyphenPoints *pPoints=nil)=0 |
| virtual bool16 | Bind (IUserDict *userDict, const WideString &rChangeFrom, const WideString &rChangeTo)=0 |
| virtual bool16 | Unbind (IUserDict *userDict, const WideString &rChangeFrom, const WideString &rChangeTo)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
CreateType
| pure virtual |
Adds words to user dictionary.
If words are in NotUserDict(see QueryNotUserDict) then the add also removes word from NotUserDict. If userDict is the same as QueryNotUserDict then words are added to NotUserDict and removed from main user dict.
| userDict | user dictionary to add to |
| constWordList | words to add |
| caseSensitive | if kFalse words to add are lower case which service providers should interperate as "case insensitive" |
| addToNotList | if kTrue add words to not list. Only works for the Main and memory user dictionaries. |
Implemented in CHLUserDictService.
| pure virtual |
Adds word to user dictionary.
If word was in NotUserDict(see QueryNotUserDict) then the add also removes word from NotUserDict. If userDict is the same as QueryNotUserDict then word is added to NotUserDict and removed from main user dict.
| userDict | user dictionary to add to |
| rWord | word to add |
| pPoints | hyphen points to give word |
| caseSensitive | if kFalse word is added as lower case which service providers should interperate as "case insensitive" |
Implemented in CHLUserDictService.
| pure virtual |
Adds user dictionary to dictionaries list.
| userDict | user dictionary to be added. |
| index | index in the dictionaries list where user dictionary will be inserted. -1 if add to the end of the list |
| addToVendorList | kTrue if the user dictionary should be added to IVendorList. kFalse ONLY FOR USE INSIDE IUserDictService implementation. Calling code should always use kTrue. |
| initializing | kTrue if in initializing code. kTrue ONLY FOR USE INSIDE IUserDictService implementation. Calling code should always use kFalse. |
Implemented in CHLUserDictService.
| pure virtual |
UNSUPPORTED
Implemented in CHLUserDictService.
| pure virtual |
Clears removed words from main dictionary.
This really clear the words in NotUserDict (see QueryNotUserDict).
Implemented in CHLUserDictService.
| pure virtual |
Clears word from user dictionary.
| userDict | user dictionary to clear from |
Implemented in CHLUserDictService.
| pure virtual |
UNSUPPORTED
Implemented in CHLUserDictService.
| pure virtual |
Creates a new user dictionary. Caller is responsible for IUserDict.
| filePathName | File path of the user dictionary. Parameter is ignored if kCreateMemoryOnly. |
| createFlags | 0 = do not create, 1 = create if not found, 2 = always create 3 = create memory only dictionary. See CreateType. |
Implemented in CHLUserDictService.
| pure virtual |
| pure virtual |
Flushes user dictionary list.
Implemented in CHLUserDictService.
| pure virtual |
Checks user dictionary for word.
| userDict | user dictionary to check. nil checks main user dictionary |
| rWord | word to look for |
| pCorrectedWord | [OUT] same as rWord unless word was added with a correction. This string is empty when kNotDict is returned. |
Implemented in CHLUserDictService.
| pure virtual |
Returns default data file path name.
Implemented in CHLUserDictService.
| pure virtual |
UNSUPPORTED
Implemented in CHLUserDictService.
| pure virtual |
UNSUPPORTED
Implemented in CHLUserDictService.
| pure virtual |
Creates a user dict object for each path saved in the vendor data.
Implemented in CHLUserDictService.
| pure virtual |
Checks if the user dictionary is read only.
| userDict | user dictionary to check for. |
Implemented in CHLUserDictService.
| pure virtual |
UNSUPPORTED
Implemented in CHLUserDictService.
| pure virtual |
Migrates a user dictionary in an old format.
| existingDictFile | File to convert to new format |
| newDictFile | File to create in new format. Can be an existing file or the same as existingDictFile in the case of an existing file _temp is added to the name as a temp file and the temp file is deleted after if _temp cannot be created MigrateUserDict fails. |
Implemented in CHLUserDictService.
| pure virtual |
Move user dictionary in dictionaries list.
| oldIndex | index of user dictionary to be moved. |
| newIndex | new location of user dictionary. -1 if move to the end of the list |
Implemented in CHLUserDictService.
| pure virtual |
Queries all user dictionaries in dictionaries list.
This is not really a Query. It should be named Get. It does not add ref the IUserDicts in the list so you should not call release.
| userDictList | [OUT] list of all user dictionaries. |
| bOpenFiles | kTrue if need to open data files. |
Implemented in CHLUserDictService.
| pure virtual |
Return main user dictionary.
Implemented in CHLUserDictService.
| pure virtual |
returns the pointer to NotUserDict.
Implemented in CHLUserDictService.
| pure virtual |
Removes all user dictionaries in dictionaries list.
Implemented in CHLUserDictService.
| pure virtual |
Removes word from main dictionary.
This really adds the word to the NotUserDict (see QueryNotUserDict). It also removes the word from the main user dictionary if it was in there.
| rWord | word to remove |
Implemented in CHLUserDictService.
| pure virtual |
Removes word from user dictionary.
| userDict | user dictionary to remvoe from |
| rWord | word to remove |
Implemented in CHLUserDictService.
| pure virtual |
Removes user dictionary from dictionaries list.
| userDict | user dictionary to be removed. |
Implemented in CHLUserDictService.
| pure virtual |
Replaces the specified user dictionary in dictionaries list with supplied new user dictionary.
| originalUserDict | user dictionary to be replaced. |
| newUserDict | new user dictionary to be added. |
Implemented in CHLUserDictService.
| pure virtual |
UNSUPPORTED
Implemented in CHLUserDictService.
| pure virtual |
UNSUPPORTED
Implemented in CHLUserDictService.
| pure virtual |
Undo remove word from main dictionary.
This really removes the word from the NotUserDict (see QueryNotUserDict).
| rWord | word to undo remove |
Implemented in CHLUserDictService.