24 #ifndef _H_SPELLINGDATASTRAND 25 #define _H_SPELLINGDATASTRAND 27 #include "IPMUnknown.h" 28 #include "LinguisticID.h" 31 typedef enum SpellingState {kSpellingUnchecked = -1, kSpellingCorrect, kSpellingError, kIncorrectWord, kUncapitalizedWord, kGrammarError, kRepeatedWord, kUncapitalizedStartOfSentence,
33 kNoteAnchor, kDeletedText} SpellingState;
44 enum { kDefaultIID = IID_ISPELLINGDATASTRAND };
57 virtual void MarkDeleteDamage(TextIndex start, int32 length, bool16 paraStrandAfter = kTrue) = 0;
71 virtual void MarkChangeDamage(TextIndex start, int32 length, bool16 addOneToLength = kFalse) = 0;
105 virtual SpellingState
GetSpellingDataRun(TextIndex position, int32 *count, TextIndex *runBegin = nil) = 0;
136 enum { kDefaultIID = IID_ISPELLINGSTATECMDDATA };
145 virtual void Set(
UIDRef& spellingDataStrandRef,
UIDRef& modelRef, SpellingState spellingState, TextIndex start, int32 length) = 0;
170 virtual void GetLength(int32& length) = 0;