24 #ifndef __IComposeScanner__ 25 #define __IComposeScanner__ 27 #include "IPMUnknown.h" 30 #include "PMTextUtils.h" 31 #include "textiterator.h" 32 #include "IRunInStylesUtils.h" 47 enum { kDefaultIID = IID_ICOMPOSESCANNER };
66 virtual TextIndex
CopyText(TextIndex position, int32 length,
WideString *copy)
const = 0;
77 virtual TextIndex
FindSurroundingWord(TextIndex position, int32 *length,
UID *pLanguageUID = nil, FuncIsWordChar wordFunc = nil ) = 0;
93 virtual TextIndex
FindSurroundingParagraph(TextIndex position, int32 *length, bool16 excludeEOS = kTrue, bool16 validatePara = kTrue)
const = 0;
111 ClassID typeAttribute, int32 *length = nil, bool16 moveBackwards = kFalse)
const = 0;
114 ClassID typeAttribute, int32 *length = nil, bool16 moveBackwards = kFalse)
const = 0;
141 bool16 moveBackwards = kFalse
162 virtual const RunInStyleResults& GetRunInStylesResultsAt(TextIndex position, TextIndex *paragraphStart = nil) = 0;
179 virtual void Clear() = 0;
181 virtual void StartComposingNestedStyles() = 0;
182 virtual void StopComposingNestedStyles() = 0;
188 #endif // __IComposeScanner__