InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IFindChangeUtils Class Referenceabstract
Inheritance diagram for IFindChangeUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IFINDCHANGEUTILS }
 

Public Member Functions

virtual void FindThisItem (const ITextModel *pModel, const WideString &findString, TextIndex nPosition, TextIndex nEnd, TextIndex &nFoundStart, TextIndex &nFoundEnd, const IFindChangeOptions *pFindChangeOptions, int32 allWildCardCount) const =0
 
virtual bool16 SearchForGlyph (const ITextModel *pModel, const IFindChangeOptions *option, Text::GlyphID value, TextIndex findStart, TextIndex findEnd, TextIndex &nFoundStart, TextIndex &nFoundEnd) const =0
 
virtual bool16 SearchForGrepText (const ITextModel *pModel, bool16 caseSensitive, bool16 widthSensitive, bool16 kanaSensitive, bool16 getEntireWord, const WideString &findString, TextIndex nPosition, TextIndex nEnd, TextIndex &nFoundStart, TextIndex &nFoundEnd, bool16 nestedStyles=kFalse, bool16 searchBackwards=kFalse) const =0
 
virtual bool16 SearchForRawText (const ITextModel *pModel, bool16 caseSensitive, bool16 widthSensitive, bool16 kanaSensitive, bool16 getEntireWord, const WideString &findString, TextIndex nPosition, TextIndex nEnd, TextIndex &nFoundStart, TextIndex &nFoundEnd, const bool16 diacritics=kFalse, const bool16 kashidas=kFalse, bool16 searchBackwards=kFalse) const =0
 
virtual bool16 SearchForCharStyle (const ITextModel *pModel, const UID &charStyleUID, TextIndex nFindStart, TextIndex nFindEnd, TextIndex &nFoundStart, TextIndex &nFoundEnd, bool16 searchBackwards=kFalse) const =0
 
virtual bool16 SearchForParaStyle (const ITextModel *pModel, const UID &paraStyleUID, TextIndex nFindStart, TextIndex nFindEnd, TextIndex &nFoundStart, TextIndex &nFoundEnd, bool16 searchBackwards=kFalse) const =0
 
virtual bool16 SearchForAttributes (const ITextModel *pModel, const AttributeBossList *list, TextIndex nFindStart, TextIndex nFindEnd, TextIndex &nFoundStart, TextIndex &nFoundEnd, bool16 searchBackwards=kFalse) const =0
 
virtual bool16 SearchForROSFontGroup (const ITextModel *pModel, const AttributeBossList *list, const PMString &registry, const PMString &ordering, TextIndex nFindStart, TextIndex nFindEnd, TextIndex &nFoundStart, TextIndex &nFoundEnd, bool16 searchBackwards=kFalse) const =0
 
virtual int32 SearchForAccessPath (const ITextModel *model, K2Vector< WideString > &accessPaths, TextIndex nFindStart, TextIndex nFindEnd, TextIndex &nFoundStart, TextIndex &nFoundEnd, bool16 searchBackwards=kFalse) const =0
 
virtual void UnescapeGrepFindString (const WideString &inStr, WideString &out, bool16 ignoreWidth=kFalse) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Member Function Documentation

virtual bool16 IFindChangeUtils::SearchForGlyph (const ITextModelpModel,
const IFindChangeOptionsoption,
Text::GlyphID value,
TextIndex findStart,
TextIndex findEnd,
TextIndex & nFoundStart,
TextIndex & nFoundEnd 
) const
pure virtual

Search text for glyph id. Font is assumed to have compatiable glyph ids for the range from findStart to findEnd. If glyph id is kAnyNotDefGlyphID or the not def glyph id for the font the wax is searched so overset text is not searched. Otherwise the text is searched and overset text can be returned. If kAnyNotDefGlyphID is used findStart and findEnd can cross fonts with different not def glyph ids and the not defs for each wax run will still be found.

Parameters
modelmodel to search in
optionnot used
valueglyph to search for. If kAnyNotDefGlyphID is used then IPMFont::GetNotDefinedGlyph is looked for in the wax.
findStartin: where to start searching
findEndin: where to stop searching
nFoundStartout: found start
nFoundEndout: found end
Returns
kTrue if glyph was found