![]() | InDesign SDK 20.5 |

Public Member Functions | |
| CHLUserDictService (IPMUnknown *boss) | |
| virtual bool16 | IsReadOnly (IUserDict *userDict) |
| virtual bool16 | CloseNotClamFile () |
| virtual bool16 | Flush () |
| virtual bool16 | IsWordInMainDict (const WideString &rWord, const HyphenPoints *pPoints) |
| virtual bool16 | AddToUserDict (IUserDict *userDict, const UserDictWordList &constWordList, bool16 caseSensitive, bool16 addToNotList) |
| virtual bool16 | AddToUserDict (IUserDict *userDict, const WideString &rWord, const HyphenPoints *pPoints, bool16 caseSensitive) |
| virtual bool16 | RemoveFromUserDict (IUserDict *userDict, const WideString &rWord) |
| virtual bool16 | ClearUserDict (IUserDict *userDict) |
| virtual bool16 | RemoveFromMainDict (const WideString &rWord) |
| virtual bool16 | UndoRemoveFromMainDict (const WideString &rWord) |
| virtual bool16 | ClearRemovedFromMainDict (IUserDict *userDict) |
| virtual bool16 | Bind (IUserDict *userDict, const WideString &rWord, const WideString &rReplace) |
| virtual bool16 | Unbind (IUserDict *userDict, const WideString &rWord, const WideString &rReplace) |
| virtual UserDictType | GetCorrectedWord (IUserDict *userDict, const WideString &rWord, WideString *pCorrectedWord) |
| virtual bool16 | GetHyphenatedWord (IUserDict *userDict, const WideString &rWord, WideString *pHyphenatedWord) |
| virtual bool16 | AddUserDictToSearchPath (IUserDict *userDict, int32 index, bool16 addToVendorList, bool16 initializing) |
| virtual bool16 | MoveUserDictInSearchPath (int32 oldIndex, int32 newIndex) |
| virtual bool16 | RemoveUserDictFromSearchPath (IUserDict *userDict) |
| virtual bool16 | ReplaceUserDictInSearchPath (IUserDict *originalUserDict, IUserDict *newUserDict) |
| virtual int32 | QueryAllUserDictsInSearchPath (K2Vector< IUserDict * > &userDictList, bool16 bOpenFiles) |
| virtual int32 | RemoveAllUserDictsFromSearchPath (void) |
| virtual IUserDict * | QueryNotUserDict (void) |
| virtual IUserDict * | QueryMainUserDict (void) |
| virtual bool16 | SetMainUserDict (IUserDict *userDict) |
| virtual IUserDict * | CreateNewUserDict (const PMString &filePathName, int16 createFlags) |
| virtual bool16 | MigrateUserDict (const IDFile &existingDictFile, const IDFile &newDictFile) |
| virtual bool16 | InitializePaths (void) |
| virtual void | FlushUserDicts (void) |
| virtual const PMString & | GetDefaultFilePathName (void) const |
| virtual const PMString & | GetNotFilePathName (void) const |
Public Member Functions inherited from CPMUnknown< IUserDictService > | |
| IPMUnknown * | QueryInterface (PMIID interfaceID) const |
| void | AddRef () const |
| void | Release () const |
| void | PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| void | PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue) |
| CPMUnknown (const CPMUnknown &)=delete | |
| CPMUnknown & | operator= (const CPMUnknown &)=delete |
Additional Inherited Members | |
Public Types inherited from IUserDictService | |
| enum | { kDefaultIID = IID_IUSERDICTSERVICE } |
| enum | WordType { kIsAWord, kNotAWord } |
| enum | UserDictType { kNone, kIsDict, kNotDict } |
| enum | CreateType { kDoNotCreate, kCreateIfNotFound, kAlwaysCreate, kCreateMemoryOnly } |
Protected Member Functions inherited from CPMUnknown< IUserDictService > | |
| CPMUnknown (IPMUnknown *boss) | |
Protected Attributes inherited from CPMUnknown< IUserDictService > | |
| HelperInterface | fHelperInterface |
Implements a user dictionary service.
| 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. |
Implements IUserDictService.
| 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" |
Implements IUserDictService.
| 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. |
Implements IUserDictService.
| virtual |
UNSUPPORTED
Implements IUserDictService.
| virtual |
Clears removed words from main dictionary.
This really clear the words in NotUserDict (see QueryNotUserDict).
Implements IUserDictService.
| virtual |
Clears word from user dictionary.
| userDict | user dictionary to clear from |
Implements IUserDictService.
| virtual |
UNSUPPORTED
Implements IUserDictService.
| 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. |
Implements IUserDictService.
| virtual |
| virtual |
Flushes user dictionary list.
Implements IUserDictService.
| 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. |
Implements IUserDictService.
| virtual |
Returns default data file path name.
Implements IUserDictService.
| virtual |
UNSUPPORTED
Implements IUserDictService.
| virtual |
UNSUPPORTED
Implements IUserDictService.
| virtual |
Creates a user dict object for each path saved in the vendor data.
Implements IUserDictService.
| virtual |
Checks if the user dictionary is read only.
| userDict | user dictionary to check for. |
Implements IUserDictService.
| virtual |
UNSUPPORTED
Implements IUserDictService.
| inlinevirtual |
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. |
Implements IUserDictService.
| 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 |
Implements IUserDictService.
| 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. |
Implements IUserDictService.
| virtual |
| virtual |
returns the pointer to NotUserDict.
Implements IUserDictService.
| virtual |
Removes all user dictionaries in dictionaries list.
Implements IUserDictService.
| 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 |
Implements IUserDictService.
| virtual |
Removes word from user dictionary.
| userDict | user dictionary to remvoe from |
| rWord | word to remove |
Implements IUserDictService.
| virtual |
Removes user dictionary from dictionaries list.
| userDict | user dictionary to be removed. |
Implements IUserDictService.
| 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. |
Implements IUserDictService.
| virtual |
UNSUPPORTED
Implements IUserDictService.
| virtual |
UNSUPPORTED
Implements IUserDictService.
| virtual |
Undo remove word from main dictionary.
This really removes the word from the NotUserDict (see QueryNotUserDict).
| rWord | word to undo remove |
Implements IUserDictService.