![]() | InDesign SDK 20.5 |
#include <DataUpdaterUtils.h>
Static Public Member Functions | |
| static ErrorCode | ReplaceText (ITextModel *iTextModel, const TextIndex &textIndex, int32 length, const boost::shared_ptr< WideString > &wideVal) |
| static UIDRef | AcquireOneTag (IXMLTagList *tagList, const WideString &tagName) |
| static ErrorCode | TagTextWithAttributeValue (UID tagUID, UIDRef story, TextIndex startIndex, TextIndex endIndex, const WideString attrName, const WideString attrValue) |
From SDK sample; Utility methods for the xmldataupdater plug-in.
| static |
Acquire XMLDataUpdater XML Tags. Create new tag if they have not been created before
| tagList | XML tag list of a document. |
| tagName | is the name of XML tag. |
| static |
Replace the given range of text with the WideString supplied.
| iTextModel | is the text model contant to be manipulated. |
| textIndex | is where the starting text to be replaced. |
| length | is the range of text to be replaced. |
| val | is the text to replace the old text. |
| static |
Tag the specified range of text with XML tag, and create one attribtue with attribute value.
| tagUID | XML tag UID used to tag the text. |
| story | is the story of the text to be manipulated. |
| startIndex | is the starting index at which the text is to be tagged. |
| endIndex | is the ending index at which the text is to be tagged. |
| attrName | is the attribute name of the XML element be created. |
| attrValue | is the value of the attribute of the XML element be created. |