![]() | InDesign SDK 20.5 |
#include <ILinguisticMgr.h>

Public Types | |
| enum | { kDefaultIID = IID_ILINGUISTICMGR } |
| enum | Services { kHyphenation, kSpelling, kPhonetic, kThesaurus } |
Public Member Functions | |
| virtual IHyphenationService * | QuerySimpleHyphenationService ()=0 |
| virtual IHyphenationService * | QueryHyphenationService (const ILanguage *pLanguage, ClassID nProvider=kDefaultLinguisticProvider)=0 |
| virtual ISpellingService * | QuerySpellingService (const ILanguage *pLanguage, ClassID nProvider=kDefaultLinguisticProvider)=0 |
| virtual IThesaurusService * | QueryThesaurusService (const ILanguage *pLanguage, ClassID nProvider=kDefaultLinguisticProvider)=0 |
| virtual IUserDictService * | QueryUserDictService (const ILanguage *pLanguage, ClassID nProvider=kDefaultLinguisticProvider)=0 |
| virtual int32 | GetServicesCount (ILinguisticMgr::Services nWhich, const ILanguage *pLanguage) const =0 |
| virtual ISpellingService * | QueryNthSpellingService (const ILanguage *pLanguage, int32 nService, PMString *pServiceName=nil) const =0 |
| virtual IHyphenationService * | QueryNthHyphenationService (const ILanguage *pLanguage, int32 nService, PMString *pServiceName=nil) const =0 |
| virtual IThesaurusService * | QueryNthThesaurusService (const ILanguage *pLanguage, int32 nService, PMString *pServiceName=nil) const =0 |
| virtual uint32 | GetLanguageCount () const =0 |
| virtual ILanguage * | QueryNthLanguage (uint32 nNthLanguage)=0 |
| virtual ILanguage * | QueryLanguage (const PMString &rLanguageName)=0 |
| virtual IK2ServiceProvider * | QueryDefaultProvider ()=0 |
| virtual IK2ServiceProvider * | QueryProviderByClassID (ClassID nClass)=0 |
| virtual bool16 | GetLanguageName (LanguageID nLanguage, PMString *pName, PMString *pPrimaryName=nil, PMString *pSubName=nil) const =0 |
| virtual ILanguage * | QueryLanguageByID (LanguageID nLanguageID)=0 |
| virtual int32 | GetProviderCount () const =0 |
| virtual IK2ServiceProvider * | QueryNthProvider (int32 nService)=0 |
| virtual IK2ServiceProvider * | QueryDefaultService (ILinguisticMgr::Services nWhich, const ILanguage *pLanguage)=0 |
| virtual IK2ServiceProvider * | QueryNthService (ILinguisticMgr::Services nWhich, const ILanguage *pLanguage, uint32 nNthService)=0 |
| virtual bool16 | SetDefaultService (ILinguisticMgr::Services nWhich, const ILanguage *pLanguage, const IK2ServiceProvider *pProvider)=0 |
| virtual uint32 | GetServiceCount (ILinguisticMgr::Services nWhich, const ILanguage *pLanguage) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
The LinguisticMgr is able to support many Linguistic systems (like Proximity and Info) at the same time. A Linguistic System contains a set of services: hyphenation, spelling, thesaurus and user dictionaries. To be able to mix the Linguistic Systems you should ask the LinguisticMgr for a particular service with a language specification. The connections between a language and a service will be administrated in the workspace of the application.
| pure virtual |
Get count of languages in session ILanguageList
| pure virtual |
Fills pName with the name that uses the languageid according to a hard coded list of names.
NOT RECOMMENDED - there can be multiple unique language names with the same language id Use name as unique identifier not languageid. Language IDs will hopefully be deprecated in the future and only name will be used.
| nLanguageID | corresponds to ILanguage::GetLanguageID() |
| pName | language name. corresponds to ILanguage::GetLanguageName() |
| pPrimaryName | primary language name. corresponds to ILanguage::GetPrimaryLanguageName() |
| pSubName | sub language name. corresponds to ILanguage::GetSubLanguageName() |
| pure virtual |
Get count of services for a language
| nWhich | which service to get a count of |
| pLanguage | language to get a count for |
| pure virtual |
Get the default linguistic provider.
| IK2ServiceProvider | linguistic provider |
| pure virtual |
Query for the associated hyphenation service of a language If nProvider is not kDefaultLinguisticProvider this provider is preferred.
| pLanguage | language to get hyphenation service for |
| nProvider | If nProvider is not kDefaultLinguisticProvider this provider is preferred |
Query for language by name in session ILanguageList
| rLanguageName | name of language. corresponds to ILanguage::GetLanguageName(). |
| pure virtual |
Returns the installed ILanguage for the LanguageID according to a hard coded list of names.
NOT RECOMMENDED - there can be multiple unique language names with the same language id Recommend using QueryLanguage(rLanguageName). Language IDs will hopefully be deprecated in the future and only name will be used.
| nLanguageID | corresponds to ILanguage::GetLanguageID() |
| pure virtual |
Query for nth hyphenation service for a specific language
| pLanguage | language to get hyphenation service for |
| nService | From 0 to < GetServicesCount |
| pServiceName | OUT - String to place service name into. |
| pure virtual |
Query for nth language in session ILanguageList
| nNthLanguage | from 0 to < GetLanguageCount() |
| pure virtual |
Query for nth spelling service for a specific language
| pLanguage | language to get spelling service for |
| nService | From 0 to < GetServicesCount |
| pServiceName | OUT - String to place service name into. |
| pure virtual |
Query for nth Thesaurus service for a specific language
| pLanguage | language to get Thesaurus service for |
| nService | From 0 to < GetServicesCount |
| pServiceName | OUT - String to place service name into. |
| pure virtual |
Returns the installed kLinguisticService for the class id.
| nClass | class id of linguistic service |
| IK2ServiceProvider | linguistic provider |
| pure virtual |
Query for the simple hyphenation service The simple hyphenation service ranks MinTail, MinHead, hard hyphens and discretionary hyphens.
| pure virtual |
Query for the associated spelling service of a language If nProvider is not kDefaultLinguisticProvider this provider is preferred.
| pLanguage | language to get spelling service for |
| nProvider | If nProvider is not kDefaultLinguisticProvider this provider is preferred |
| pure virtual |
Query for the associated thesaurus service of a language If nProvider is not kDefaultLinguisticProvider this provider is preferred.
| pLanguage | language to get thesaurus service for |
| nProvider | If nProvider is not kDefaultLinguisticProvider this provider is preferred |
| pure virtual |
Query for the associated user dictionary service of a language If nProvider is not kDefaultLinguisticProvider this provider is preferred.
| pLanguage | language to get user dictionary service for |
| nProvider | If nProvider is not kDefaultLinguisticProvider this provider is preferred |