24 #ifndef __IFindChangeUtils__ 25 #define __IFindChangeUtils__ 27 #include "IPMUnknown.h" 29 #include "WideString.h" 31 #include "CTextEnum.h" 32 #include "TextWalkerServiceProviderID.h" 43 const Text::GlyphID kAnyNotDefGlyphID = -2;
48 enum { kDefaultIID = IID_IFINDCHANGEUTILS };
51 TextIndex nPosition, TextIndex nEnd,
52 TextIndex& nFoundStart, TextIndex& nFoundEnd,
54 int32 allWildCardCount )
const = 0;
77 TextIndex& nFoundStart,
78 TextIndex& nFoundEnd)
const = 0;
80 virtual bool16 SearchForGrepText(
const ITextModel *pModel,
82 bool16 widthSensitive,
88 TextIndex& nFoundStart,
90 bool16 nestedStyles = kFalse,
91 bool16 searchBackwards = kFalse)
const = 0;
93 virtual bool16 SearchForRawText(
const ITextModel *pModel,
95 bool16 widthSensitive,
101 TextIndex& nFoundStart,
102 TextIndex& nFoundEnd,
103 const bool16 diacritics = kFalse,
104 const bool16 kashidas = kFalse,
105 bool16 searchBackwards = kFalse)
const = 0;
107 virtual bool16 SearchForCharStyle(
const ITextModel* pModel,
const UID& charStyleUID,
108 TextIndex nFindStart, TextIndex nFindEnd,
109 TextIndex& nFoundStart, TextIndex& nFoundEnd,
110 bool16 searchBackwards = kFalse)
const = 0;
111 virtual bool16 SearchForParaStyle(
const ITextModel* pModel,
const UID& paraStyleUID,
112 TextIndex nFindStart, TextIndex nFindEnd,
113 TextIndex& nFoundStart, TextIndex& nFoundEnd,
114 bool16 searchBackwards = kFalse)
const = 0;
116 TextIndex nFindStart, TextIndex nFindEnd,
117 TextIndex& nFoundStart, TextIndex& nFoundEnd,
118 bool16 searchBackwards = kFalse)
const = 0;
122 TextIndex nFindStart, TextIndex nFindEnd,
123 TextIndex& nFoundStart, TextIndex& nFoundEnd,
124 bool16 searchBackwards = kFalse)
const = 0;
126 virtual int32 SearchForAccessPath(
const ITextModel *model,
128 TextIndex nFindStart,
130 TextIndex& nFoundStart,
131 TextIndex& nFoundEnd,
132 bool16 searchBackwards = kFalse)
const = 0;
134 virtual void UnescapeGrepFindString(
const WideString& inStr,
WideString& out, bool16 ignoreWidth = kFalse)
const = 0;