Skip to main content
Participating Frequently
January 9, 2009
Question

Simple question about "Ignored Words" list

  • January 9, 2009
  • 2 replies
  • 302 views
Hello everyone, Merry Christmas and Happy New Year! I have a simple question. How I can change "Ignored Words" list programmatically (add and remove words)? Are there any way to do this? Help me please, I can't find it.
This topic has been closed for replies.

2 replies

Participating Frequently
January 16, 2009
Okay, I have found how to add a word to "Added Words", "Removed Words" and even "Ignored Words" using ModifyDictionary procedure:<br /><br />InterfacePtr<IUserDictService> uds(this, IID_IUSERDICTSERVICE);<br />InterfacePtr<ILanguage> lang(this, IID_ILANGUAGE);<br />UserDictWordList udwl;<br />Utils<IPrivateSpellingUtils>()->ModifyDictionary<br />(<br /> "added-word",<br /> kAddToDict [or kRemoveFromDict, or kIgnoreDict],<br /> kFalse,<br /> uds,<br /> lang,<br /> udwl<br />);<br /><br />But I still can't understand what does "UserDictWordList udwl" parameter means and how can I remove words using this method? Any ideas will be appreciated.
Participating Frequently
January 14, 2009
I have found a method in IPrivateSpellingUtils interface which I suppose makes exactly what I need:

virtual bool16 ModifyDictionary(const PMString& originalWord, DictAction action, bool16 bCaseSensitive, IPMUnknown* target, ILanguage* pLanguage, const UserDictWordList& udStrList)

But it's totally undocumented and not clearly how I can use it. What does 'target' and 'udStrList' parameters means?