InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CHLSpellingMgr Class Reference
Inheritance diagram for CHLSpellingMgr:
CPMUnknown< ISpellingMgr >ISpellingMgrIPMUnknown

Public Member Functions

 CHLSpellingMgr (IPMUnknown *boss)
 
 ~CHLSpellingMgr ()
 
virtual void Install (const PMString &rPath)
 
virtual int32 GetLanguageCount () const
 
virtual ILanguageQueryNthLanguage (int32 nNth)
 
virtual bool16 HasLanguage (const ILanguage *pLanguage) const
 
virtual ISpellingServiceQueryServiceOfLanguage (const ILanguage *pLanguage, int32)
 
virtual int32 GetServiceOfLanguageCount (const ILanguage *pLanguage)
 
- Public Member Functions inherited from CPMUnknown< ISpellingMgr >
IPMUnknownQueryInterface (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
 
CPMUnknownoperator= (const CPMUnknown &)=delete
 

Protected Attributes

K2Vector< ISpellingService * > fServices
 
- Protected Attributes inherited from CPMUnknown< ISpellingMgr >
HelperInterface fHelperInterface
 

Additional Inherited Members

- Public Types inherited from ISpellingMgr
enum  { kDefaultIID = IID_ISPELLINGMGR }
 
- Protected Member Functions inherited from CPMUnknown< ISpellingMgr >
 CPMUnknown (IPMUnknown *boss)
 

Detailed Description

Implements the spelling service. You can install spelling services for one or more languages.

Constructor & Destructor Documentation

Binds the C implementation class onto its ImplementationID making the C code callable by the application * CHLSpellingMgr::CHLSpellingMgr (IPMUnknownboss)

Constructor.

Parameters
bossinterface ptr from boss object on which this interface is aggregated.
CHLSpellingMgr::~CHLSpellingMgr ()

Destructor.

Member Function Documentation

int32 CHLSpellingMgr::GetLanguageCount () const
virtual

Get the count of supported languages.

Returns
Returns the count of supported languages.

Implements ISpellingMgr.

virtual int32 CHLSpellingMgr::GetServiceOfLanguageCount (const ILanguagepLanguage)
inlinevirtual

Returns the count of spelling services for a language.

Parameters
pLanguagelanguage to get count for
Returns
Count of spelling services for language.

Implements ISpellingMgr.

bool16 CHLSpellingMgr::HasLanguage (const ILanguagepLanguage) const
virtual

Ask whether the language is being supported.

Parameters
pLanguageIN the language interface.
Returns
Returns whether pLanguage is supported or not.

Implements ISpellingMgr.

void CHLSpellingMgr::Install (const PMStringrPath)
virtual

Installs the spelling engine.

Parameters
rPathusually contains the path with the dictionaries.

Implements ISpellingMgr.

ILanguage * CHLSpellingMgr::QueryNthLanguage (int32 nNth)
virtual

Get the language id of the nth service.

Returns
Returns the language of the nth service.

Implements ISpellingMgr.

ISpellingService * CHLSpellingMgr::QueryServiceOfLanguage (const ILanguagepLanguage,
int32  
)
virtual

Get the spelling service for that language.

Parameters
pLanguageIN the language interface.
Returns
the spelling service for the specified language.

Implements ISpellingMgr.