![]() | InDesign SDK 20.5 |

Public Types | |
| enum | FindChangeResult { kFailure, kSuccess, kNotFound, kFoundCompleted, kReplaceAllCompleted } |
Public Member Functions | |
| virtual FindChangeResult | SearchText (TextIndex &start, TextIndex &end)=0 |
| virtual FindChangeResult | ReplaceText (TextIndex &start, TextIndex &end)=0 |
| virtual FindChangeResult | ReplaceAndSearchText (TextIndex &start, TextIndex &end)=0 |
| virtual FindChangeResult | ReplaceAllText (int32 *replaceCount)=0 |
| virtual FindChangeResult | SearchForFont (const UIDRef &doc, TextIndex &start, TextIndex &end, UID fontUID, const PMString &fontStyleName)=0 |
| virtual FindChangeResult | ReplaceFont (TextIndex &start, TextIndex &end, UID newFontUID, const PMString &newFontStyleName)=0 |
| virtual FindChangeResult | ReplaceAllFont (int32 *replaceCount, UID findFontUID, const PMString &findFontStyleName, UID newFontUID, const PMString &newFontStyleName)=0 |
| virtual void | Halt ()=0 |
| virtual FindChangeResult | SearchObject (UIDRef &foundObject, bool16 initializeWalker=kFalse)=0 |
| virtual FindChangeResult | ReplaceObject (bool16 initializeWalker=kFalse)=0 |
| virtual FindChangeResult | ReplaceAndSearchObject (UIDRef &nextMatch, bool16 initializeWalker=kFalse)=0 |
| virtual FindChangeResult | ReplaceAllObject (int32 *foundCount, int32 *fullyChangedCount, int32 *partiallyChangedCount, bool16 initializeWalker=kFalse)=0 |
| virtual FindChangeResult | ReplaceAllFont (const UIDRef &doc, int32 *replaceCount, UID findFontUID, const PMString &findFontStyleName, UID newFontUID, const PMString &newFontStyleName)=0 |
| virtual IFindChangeService::FindChangeResult | SearchColor (PMString &selectedPropertyName, int32 &numberOfPropertiesFound, bool16 initializeWalker=kFalse)=0 |
| virtual IFindChangeService::FindChangeResult | ReplaceColor (bool16 initializeWalker=kFalse)=0 |
| virtual IFindChangeService::FindChangeResult | ReplaceAllColor (int32 *foundCount, int32 *fullyChangedCount, int32 *partiallyChangedCount, IUIDRefListData *uidRefListData, bool16 initializeWalker=kFalse)=0 |
| virtual IFindChangeService::FindChangeResult | ReplaceAndSearchColor (PMString &selectedPropertyName, int32 &numberOfPropertiesFound, bool16 initializeWalker=kFalse)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
| pure virtual |
Halt walker if walking
| pure virtual |
Replaces all found object's color attributes with target attributes
| foundCount | OUT gives number of objects found |
| fullyChangedCount | OUT gives number of objects fully changed as per change criteria |
| partiallyChangedCount | OUT gives number of objects partially changed as per change criteria |
| uidRefListData | OUT gives uidRef of linked assets which can't be changed |
| initializeWalker | IN kTrue if you want to re-initialize the walker and kFalse if you want to use as is |
| pure virtual |
replace all fonts with new font
| replaceCount | OUT total replacement count |
| findFontUID | font family UID to find |
| findFontStyleName | font style to find |
| newFontUID | new font UID to replace found UID with |
| newFontStyleName | new font style to replace found style with |
| pure virtual |
replace all fonts with new font
| doc | document to to replace |
| replaceCount | OUT total replacement count |
| findFontUID | font family UID to find |
| findFontStyleName | font style to find |
| newFontUID | new font UID to replace found UID with |
| newFontStyleName | new font style to replace found style with |
| pure virtual |
Replaces all found object's attributes with target attributes
| foundCount | OUT gives number of objects found |
| fullyChangedCount | OUT gives number of objects fully changed as per change criteria |
| partiallyChangedCount | OUT gives number of objects partially changed as per change criteria |
| initializeWalker | IN kTrue if you want to re-initialize the walker and kFalse if you want to use as is |
| pure virtual |
ReplaceAllText
| replaceCount | OUT if replace all is successful, it returns kReplaceAllCompleted and the total replacement count in replaceCount field |
| pure virtual |
Replaces the found object's color attributes with the target attributes and searches next color attribute
| selectedPropertyName | OUT found attribute name. |
| numberOfPropertiesFound | OUT no of properties found. |
| initializeWalker | IN kTrue if you want to re-initialize the walker and kFalse if you want to use as is |
| pure virtual |
Replaces the found object's attributes with the target attributes and searches next object
| nextMatch | OUT next matched object. |
| initializeWalker | IN kTrue if you want to re-initialize the walker and kFalse if you want to use as is |
| pure virtual |
if both replace and search are successful, it returns kSuccess and the corresponding text position in start and end if replace is successful but no more text item is found, it returns kFoundCompleted. Start and end equal kInvalidTextIndex if replace and search fail due to error conditions, it returns kFailure. Start and end equal kInvalidTextIndex.
| start | |
| end |
| pure virtual |
Replaces the found object's color attributes with the target attributes
| initializeWalker | IN kTrue if you want to re-initialize the walker and kFalse if you want to use as is |
| pure virtual |
if a text item is replaced successfully, it returns kSuccess and the corresponding text position in start and end if the replacement fails due to error conditions, it returns kFailure. Start and end equal kInvalidTextIndex.
| start | OUT start position. |
| end | OUT end position. |
| newFontUID | new font UID to replace with |
| newFontStyleName | new font style to replace with |
| pure virtual |
Replaces the found object's attributes with the target attributes
| initializeWalker | IN kTrue if you want to re-initialize the walker and kFalse if you want to use as is |
| pure virtual |
if a text item is replaced successfully, it returns kSuccess and the corresponding text position in start and end if the replacement fails due to error conditions, it returns kFailure. Start and end equal kInvalidTextIndex.
| start | |
| end |
| pure virtual |
Search for a color attribute
| selectedPropertyName | OUT found attribute name. |
| numberOfPropertiesFound | OUT no of properties found. |
| initializeWalker | IN kFalse if you want to re-initialize the walker and kFalse if you want to use as is |
| pure virtual |
if a font is found it returns kSuccess and the corresponding text position in start and end. if a text item is not found it returns kNotFound. Start and end equal kInvalidTextIndex if the search is completed and at least one item was found, it returns kFoundCompleted. Start and end equal kInvalidTextIndex. if the search fails due to error condition, it returns kFailure. Start and end equal kInvalidTextIndex.
| doc | |
| start | |
| end | |
| fontUID | |
| fontStyleName |
| pure virtual |
search for an object
| foundObject | OUT found object. |
| initializeWalker | IN kTrue if you want to re-initialize the walker and kFalse if you want to use as is |
| pure virtual |
if a text item is found it returns kSuccess and the corresponding text position in start and end if a text item is not found it returns kNotFound. Start and end equal kInvalidTextIndex if the search is completed and at least one item was found, it returns kFoundCompleted. Start and end equal kInvalidTextIndex. if the search fails due to error condition, it returns kFailure. Start and end equal kInvalidTextIndex.
| start | OUT found start position. |
| end | OUT found end position. |