![]() | InDesign SDK 20.5 |
#include <ITextUtils.h>

Classes | |
| struct | TextAttrs |
| struct | WhichTextAttrs |
Public Types | |
| enum | { kDefaultIID = IID_ITEXTUTILS } |
| enum | DisplayNamesFlag { kCombineSingleStyleIntoFamilyName, kSeparateFamilyAndStyleName, kStyleNameOnly, kFamilyNameOnly } |
| enum | WordCountUpdateAction { kUpdateAll = 0, kUpdateLine, kNoAction } |
| enum | WordCountUpdateState { kStartCounting = 0, kCustomizeStartCounting, kContinueCounting, kContinueCountingForComposedFrame, kEndCounting } |
| enum | PageCountScopes { kSection = 0, kDocument } |
| typedef K2Vector< InterfacePtr < IVisitorHelper > > | VisitableItems |
| typedef K2Vector< TextIndex > | HIndexList |
| typedef bool16(* | StripMatchingCharactersFunction )(const UTF32TextChar &n) |
Public Member Functions | |
| virtual ICommand * | QueryCopyStoryCommand (const UIDRef &source, const UIDRef &dest, const StoryRange &sourceRange, const StoryRange &destRange, const bool16 ignoreAttributes=kFalse)=0 |
| virtual ICommand * | QueryCopyStoryToEndCommand (const UIDRef &source, const UIDRef &dest, const StoryRange &sourceRange, const bool16 ignoreAttributes=kFalse)=0 |
| virtual ICommand * | QueryCopyStoryFromAllToAllCommand (const UIDRef &source, const UIDRef &dest, const bool16 ignoreAttributes=kFalse)=0 |
| virtual ICommand * | QueryCopyStoryFromAllToEndCommand (const UIDRef &source, const UIDRef &dest, const bool16 ignoreAttributes=kFalse)=0 |
| virtual ICommand * | QueryMoveStoryCommand (const UIDRef &source, const UIDRef &dest, const StoryRange &sourceRange, const StoryRange &destRange, const bool16 ignoreAttributes=kFalse)=0 |
| virtual ICommand * | QueryMoveStoryFromAllCommand (const UIDRef &source, const UIDRef &dest, const StoryRange &destRange, const bool16 ignoreAttributes=kFalse)=0 |
| virtual ICommand * | QueryMoveStoryFromAllToAllCommand (const UIDRef &source, const UIDRef &dest, const bool16 ignoreAttributes=kFalse)=0 |
| virtual ICommand * | QueryMoveStoryFromAllToEndCommand (const UIDRef &source, const UIDRef &dest, const bool16 ignoreAttributes=kFalse)=0 |
| virtual ICommand * | CreateNewMCFrameCommand (UIDRef parent, bool16 noGraphicAttr, const PMRect &boundary, bool16 isHorizontal=kTrue, bool16 isFrameGrid=kFalse, bool16 isLeftToRight=kTrue, ClassID frameItem=kFrameItemBoss, bool16 isEndnoteStory=kFalse)=0 |
| virtual ICommand * | CreateNewMCFrameCommand (UIDRef parent, bool16 noGraphicAttr, const PMPointList &opposingCorners, bool16 isHorizontal=kTrue, bool16 isFrameGrid=kFalse, bool16 isLeftToRight=kTrue, ClassID frameItem=kFrameItemBoss)=0 |
| virtual ICommand * | CreateNewMCFrameForStoryCommand (UIDRef parent, bool16 noGraphicAttr, const PMRect &boundary, ITextModel *story, bool16 isHorizontal=kTrue, bool16 isFrameGrid=kFalse, bool16 isLeftToRight=kTrue, ClassID frameItem=kFrameItemBoss)=0 |
| virtual ICommand * | CreateNewMCFrameForFrameListCommand (UIDRef parent, bool16 noGraphicAttr, const PMRect &boundary, IFrameList *frameList, bool16 atEnd=kTrue, ClassID frameItem=kFrameItemBoss)=0 |
| virtual ICommand * | CreateNewMCFrameForFrameListCommand (UIDRef parent, bool16 noGraphicAttr, const PMRect &boundary, IMultiColumnTextFrame *mcFrame, bool16 insertAfter=kTrue, ClassID frameItem=kFrameItemBoss)=0 |
| virtual ICommand * | CreateNewMCFrameForFrameListCommand (UIDRef parent, bool16 noGraphicAttr, const PMRect &boundary, IFrameList *frameList, int32 insertIndex, ClassID frameItem=kFrameItemBoss)=0 |
| virtual ICommand * | CreateConvertToMCFrameCommand (UIDRef parent, bool16 isHorizontal=kTrue, bool16 isFrameGrid=kFalse, bool16 isLeftToRight=kTrue, ClassID frameItem=kFrameItemBoss)=0 |
| virtual ICommand * | CreateConvertToMCFrameForStoryCommand (UIDRef parent, ITextModel *story, bool16 isHorizontal=kTrue, bool16 isFrameGrid=kFalse, bool16 isLeftToRight=kTrue, ClassID frameItem=kFrameItemBoss)=0 |
| virtual ICommand * | CreateConvertToMCFrameForFrameListCommand (UIDRef parent, IFrameList *frameList, bool16 atEnd=kTrue, ClassID frameItem=kFrameItemBoss)=0 |
| virtual ICommand * | CreateConvertToMCFrameForFrameListCommand (UIDRef parent, IMultiColumnTextFrame *mcFrame, bool16 insertAfter=kTrue, ClassID frameItem=kFrameItemBoss)=0 |
| virtual ICommand * | CreateConvertToMCFrameForFrameListCommand (UIDRef parent, IFrameList *frameList, int32 insertIndex, ClassID frameItem=kFrameItemBoss)=0 |
| virtual const WideString & | ConvertTextModelText (const WideString &rText, WideString *pStripped, bool16 stripHardHyphens=kTrue, bool16 stripDiscretionaryHyphens=kTrue, bool16 convertApostrophes=kTrue, bool16 stripNobreakNonspace=kTrue, bool16 convertHyphens=kTrue, bool16 stripLeadingSpaces=kTrue, bool16 convertForGrammarCheck=kFalse)=0 |
| virtual bool16 | CollectPageItemsFromFocus (const ITextFocus *pFocus, const PMIID &iid, UIDList *pList)=0 |
| virtual bool16 | FocusSpansMultiplePageItems (const ITextFocus *pFocus)=0 |
| virtual int32 | GetMultiColFrameIndex (const IMultiColumnTextFrame *mcf)=0 |
| virtual TextIndex | FindSurroundingWord (const ITextModel *pModel, TextIndex nPosition, int32 *pLength, FuncIsWordChar aFunction)=0 |
| virtual TextIndex | FindSurroundingWordUsingWordCharFuncOnly (const ITextModel *pModel, TextIndex nPosition, int32 *pLength, const FuncIsWordChar aFunction)=0 |
| virtual bool16 | IsPlainStyleName (const PMString &styleName)=0 |
| virtual bool16 | IsItalicStyleName (const PMString &styleName)=0 |
| virtual bool16 | IsBoldStyleName (const PMString &styleName)=0 |
| virtual bool16 | IsBoldItalicStyleName (const PMString &styleName)=0 |
| virtual bool16 | GetFontStyleName (ITextAttrFont *fromFont, ITextAttrFont *toFont, PMString *styleName)=0 |
| virtual bool16 | RemapFontStyles (IDataBase *dataBase, const AttributeBossList &stateOverrides, const AttributeBossList &newOverrides, PMString *styleName, Fixed *&axesInfo, int &numAxes, ClassID textAttrFontUIDBoss=kTextAttrFontUIDBoss, ClassID textAttrFontStyleBoss=kTextAttrFontStyleBoss, bool16 remapExactFontStylesOnly=kFalse)=0 |
| virtual bool16 | IsOpenTypeFont (const IPMFont *font)=0 |
| virtual bool16 | IsOpenTypeFamily (IFontFamily *fontFamily)=0 |
| virtual bool16 | IsAdobeFont (IPMFont const *font)=0 |
| virtual bool16 | IsWordBreak (const UTF32TextChar &curChar)=0 |
| virtual void | GetDisplayFontNames (IFontGroup *fontGroup, IPMFont *font, PMString &familyName, PMString &styleName, DisplayNamesFlag namesFlag)=0 |
| virtual void | GetDisplayFontNames (IDataBase *dataBase, const ITextAttrUID *fontUID, const ITextAttrFont *fontStyle, PMString &familyName, PMString &styleName, DisplayNamesFlag namesFlag)=0 |
| virtual void | CollectOwnedItems (const ITextModel *model, TextIndex start, int32 len, OwnedItemDataList *resultList, bool16 nested=kFalse)=0 |
| virtual void | CollectVisitableItems (ITextModel *model, TextIndex start, int32 len, VisitableItems *resultList)=0 |
| virtual void | GetUIDListOfInlines (IParcel *parcel, bool16 bWithDropCaps, UIDList *resultList)=0 |
| virtual void | CollectStoryRanges (const ITextModel *model, TextIndex start, int32 len, StoryRangeList *resultList, TextIndex hIndex=kInvalidTextIndex, ITextUtils::HIndexList *hIndexList=nil, bool16 bIncludeAnchorSpan=kTrue)=0 |
| virtual void | BuildLogicalStoryRangeList (ITextModel *model, TextIndex start, StoryRangeList *resultList)=0 |
| virtual PMMatrix | GetWaxToFrameMatrix (const IParcel *parcel)=0 |
| virtual bool16 | GetParcelContentBounds (ITextParcelList *tpl, TextIndex at, PMRect *pCBounds)=0 |
| virtual bool16 | IsOverset (const IFrameList *fl)=0 |
| virtual bool16 | IsScriptOfText (const char *anyText, int32 writingScript)=0 |
| virtual int32 | GuessScriptOfText (const char *anyText, int32 preferredWritingScript=kDontKnowScript)=0 |
| virtual bool16 | SkipTextCharForRemapping (const UTF32TextChar &textChar)=0 |
| virtual bool16 | SkipTextCharForFontLocking (const UTF32TextChar &textChar)=0 |
| virtual UTF32TextChar | RemapCharacterValue (IPMFont *oldFont, IPMFont *newFont, const UTF32TextChar &textChar)=0 |
| virtual UID | CreateNewStory (IDataBase *db, bool16 defaults=kTrue, ClassID clsID=kTextStoryBoss)=0 |
| virtual LanguageID | ScriptToLanguageID (int32 writingScript)=0 |
| virtual ICommand * | CreateRecomposeThruNthParcelCmd (const ITextParcelList *tpl, int32 parcelIndex)=0 |
| virtual ICommand * | CreateRecomposeThruTextIndexCmd (const ITextParcelList *tpl, TextIndex textIndex)=0 |
| virtual int32 | DeterminePairKern (const ITextModel *model, TextIndex index, ClassID kernService, PMReal &result)=0 |
| virtual void | GetDefaultTextAttrPreferences (const WhichTextAttrs which, TextAttrs &out, IDocument *prefsFromDocument)=0 |
| virtual void | AdjustForTableRange (const UIDRef &story, TextIndex *pStart, TextIndex *pEnd, TextIndex *nextLine)=0 |
| virtual bool16 | AlignToBaselineGrid (IGeometry *pageItem, IParcel *parcel, const IBaselineGridPrefs *gridPrefs, PMReal *pYTop, PMReal *pYBottom, Text::GridAlignmentMetric alignment, PMReal alignmentMetricOffset) const =0 |
| virtual TextIndex | FindResetOwnedItemUID (IItemStrand *itemStrand, const ClassID objectType, const UID findOldItemUID, const TextIndex start, const UID newItemUID)=0 |
| virtual int32 | RemapCharacterValues (IPMFont *oldFont, IPMFont *newFont, const textchar *buffer, int32 bufferLength, WideString *replacedChars)=0 |
| virtual int32 | CountChars (const UTF16TextChar *buffer, int32 length) const =0 |
| virtual int32 | CharOffsetToUTF16Offset (const UTF16TextChar *buffer, int32 length, int32 charOffset) const =0 |
| virtual void | GetSelectedTextItemsFromTextTarget (const ITextTarget *textTarget, UIDList *textframes, UIDList *mcfs, UIDList *splineItems)=0 |
| virtual void | GetSelectedTextItemsFromLayoutTarget (const ILayoutTarget *layoutTarget, UIDList *textframes, UIDList *mcfs, UIDList *splineItems)=0 |
| virtual void | GetSelectedTextItemsFromUIDList (const UIDList &pageITems, UIDList *textframes, UIDList *mcfs, UIDList *splineItems)=0 |
| virtual void | GetTextFramesContaining (const ITextModel *textModel, const RangeData &range, int32 *pFirstFrameIndex, int32 *pLastFrameIndex)=0 |
| virtual UIDList * | CreateOppositeDirectionFrameList (UIDList *pStoryList, ITextOptions::WritingDirection dir)=0 |
| virtual void | GetUIDListOfTextFramesFromRange (const ITextModel *textModel, const RangeData &range, UIDList *resultList)=0 |
| virtual void | GetUsedInks (const ITextModel *textModel, TextIndex threadEnd, TextIndex start, int32 len, IInkResourceData *inkResourceData)=0 |
| virtual void | NotifyOversetChanged (const IFrameList *frameList)=0 |
| virtual bool16 | IsMultiColumnFrame (const IPMUnknown *obj) const |
| virtual IMultiColumnTextFrame * | QueryMultiColumnFrame (ITextFrameColumn *tfc) const =0 |
| virtual const IMultiColumnTextFrame * | QueryMultiColumnFrame (const ITextFrameColumn *tfc) const =0 |
| virtual UID | QueryMultiColumnFrameUID (const ITextFrameColumn *tfc) const =0 |
| virtual IMultiColumnTextFrame * | QueryMCFOrTOPFromSpline (const IGraphicFrameData *gfd) const =0 |
| virtual UID | GetMCFOrTOPFromSpline (const IGraphicFrameData *gfd) const =0 |
| virtual ITextModel * | QueryTextModelFromSpline (const IGraphicFrameData *gfd) const =0 |
| virtual IHierarchy * | QuerySplineFromTextFrame (const IMultiColumnTextFrame *mcf) const =0 |
| virtual IHierarchy * | QuerySplineFromTextFrame (const ITextFrameColumn *tfc) const =0 |
| virtual ErrorCode | ProcessScaleParcelContent (const ITextParcelList *tpl, ParcelKey key, const PMReal &xScale, const PMReal &yScale, IScaleObject::ScaleContext &context) const =0 |
| virtual UID | GetTextFramesPageItemUID (IGeometry *pageItem) const =0 |
| virtual void | GetWordCountInfo (const ITextModel *iTextModel, const uint32 &startIndex, const int32 &lengthToCount, const ITextUtils::WordCountUpdateAction &action, const ITextUtils::WordCountUpdateState &state, bool16 &wordStarted, uint32 &characters, uint32 &words, uint32 ¶graphs, uint32 &lines, uint32 &oversetCharacters, uint32 &oversetWords, uint32 &oversetParagraphs, uint32 &oversetLines, bool16 &bWordAcrossOverset, TextStoryThreadHelper &helper)=0 |
| virtual void | GetWordCountInfo (const ITextModel *iTextModel, const uint32 &startIndex, const int32 &lengthToCount, const ITextUtils::WordCountUpdateAction &action, const ITextUtils::WordCountUpdateState &state, bool16 &wordStarted, uint32 &fullWidthChars, uint32 &oversetFullWidthChars, uint32 &halfWidthChars, uint32 &oversetHalfWidthChars, uint32 &japaneseChars, uint32 &oversetJapaneseChars, uint32 &kanjis, uint32 &oversetKanjis, uint32 &words, uint32 &oversetWords, uint32 &lines, uint32 &oversetLines, uint32 ¶graphs, uint32 &oversetParagraphs, uint32 &allChars, uint32 &oversetAllChars, bool16 &bWordAcrossOverset, TextStoryThreadHelper &helper)=0 |
| virtual int32 | CountOversetLines (const UIDRef &textModelUIDRef)=0 |
| virtual bool16 | IsFocusAFootnote (const ITextFocus *pFocus, UIDRef *pFootnoteUIDRef=nil)=0 |
| virtual bool16 | IsFootnote (const ITextModel *model, TextIndex position, UIDRef *pFootnoteUIDRef=nil)=0 |
| virtual bool16 | AnyFootnotes (const ITextModel *model, const RangeData &range)=0 |
| virtual void | GenerateListsOfAttributesThatCanBeCleared (IWorkspace *workspace, AttributeBossList *characterAttributes, AttributeBossList *paragraphAttributes)=0 |
| virtual void | GetPrimaryStoryAnchor (UIDRef &storyRef, RangeData &range) const =0 |
| virtual boost::shared_ptr < WideString > | FilterInsertString (const WideString *data, StripMatchingCharactersFunction func) const =0 |
| virtual void | GetPrimaryThreadAnchor (const ITextModel *model, RangeData &range) const =0 |
| virtual ErrorCode | LinkTextFrames (const IMultiColumnTextFrame *textFrameA, const IMultiColumnTextFrame *textFrameB, bool16 prepend)=0 |
| virtual IHierarchy * | QueryForHierarchyMember (IDataBase *db, const ITextFrameColumn *textFrame) const =0 |
| virtual UIDRef | GetPageUIDRef (const UIDRef &textFrameRef) const =0 |
| virtual int32 | GetPageNumber (const UIDRef &textFrameRef) const =0 |
| virtual ClassID | GetPageNumberFormatter (const UIDRef &textFrameRef) const =0 |
| virtual void | GetFormattedPageNumberString (const UIDRef &textFrameRef, PMString *s, IDrawingStyle::PositionIndicator whichPage=IDrawingStyle::kDataPosition_ThisPage) const =0 |
| virtual void | GetFormattedSectionNameString (const UIDRef &textFrameRef, PMString *s) const =0 |
| virtual int32 | GetChapterNumber (IDataBase *db) const =0 |
| virtual void | GetFormattedChapterNumberString (IDataBase *db, PMString *s, int32 v=kInvalidChapterNumber) const =0 |
| virtual int32 | GetPageCount (const UIDRef &target, enum PageCountScopes scope) const =0 |
| virtual UIDRef | GetPreviousPageNumberFrameRef (const UIDRef &textFrameRef) const =0 |
| virtual UIDRef | GetNextPageNumberFrameRef (const UIDRef &textFrameRef) const =0 |
| virtual bool16 | GetTargetIsInContinuedContainer (const UIDRef &target) const =0 |
| virtual bool16 | GetTargetContainerContinues (const UIDRef &target) const =0 |
| virtual TextIndex | GetTextIndexForTrackedParagraph (const UIDRef ¶StrandDiskPageRef, UID trackerUID, uint32 trackerData) const =0 |
| virtual void | GetLocaleFromTextIndex (const UIDRef &modelRef, const TextIndex position, bool16 &noLang, void *locale) const =0 |
| virtual IDocument * | GetLastDocInBook (bool16 &docWasAlreadyOpen, int32 &startPageNum) const =0 |
| virtual int32 | GetSpreadTextFrameColumns (const UIDRef &spreadRef, UIDList *pList) const =0 |
| virtual int32 | GetSpreadMultiColumnTextFrames (const UIDRef &spreadRef, UIDList *pList) const =0 |
| virtual void | EditTargetStyle (IDataBase *targetDB, const UID &targetStyle, AttributeBossList *attributesToApply, const UIDList &uidList) const =0 |
| virtual void | ApplySourceStyleAttrsToTargetStyle (IDataBase *sourceDB, const UID &sourceStyle, IDataBase *targetDB, const UID &targetStyle, const UIDList &uidList) const =0 |
| virtual bool16 | IsTextValidForInsertion (WideString const &text) const =0 |
| virtual void | RepairGenericDataLink (UIDRef oldStoryRef, UIDRef newStoryRef)=0 |
| virtual const WideString & | GetXRefPageNumberVariableName ()=0 |
| virtual const WideString & | GetXRefChapterNumberVariableName ()=0 |
| virtual WideString | GetFullVisibleParagraphString (IComposeScanner *scanner, TextIndex textIndex, int32 ¶graphSpan)=0 |
| virtual bool16 | IsLeftToRightRun (const IWaxLine *waxLine, TextIndex ti) const =0 |
| virtual UIDRef | GetFirstFrameOfStory (const UIDRef &story) const =0 |
| virtual void | ConvertSmartQuotes (ITextModel *model, TextIndex position, int32 length) const =0 |
| virtual void | GetGlyphsForOverrides (ITextModel *model, const RangeData &range, const AttributeBossList *overrides, std::vector< std::pair< Text::GlyphID, TextIndex >> *newGlyphPoints, bool16 clearOverrides=kFalse) const =0 |
| virtual int32 | GetPageNumberFromPageUID (const UIDRef &page) const =0 |
| virtual ITextStoryThreadDictHier::CompareResult | CompareItemPosition (const ITextModel *txtModel, const TextIndex item1Position, const TextIndex item2Position) const =0 |
| virtual bool16 | IsVerticalColumnRuleActive (const IPMUnknown *shape)=0 |
| virtual bool16 | RemapFontStylesWithOPSZ (IDataBase *dataBase, const AttributeBossList &stateOverrides, const AttributeBossList &newOverrides, PMString *styleName, Fixed *&axesInfo, int &numAxes, ClassID textAttrFontUIDBoss=kTextAttrFontUIDBoss, ClassID textAttrFontStyleBoss=kTextAttrFontStyleBoss, bool16 remapExactFontStylesOnly=kFalse, PMReal pointSize=-1)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Utility functions for creating text-related commands and for gather text information. e.g.
Utils<ITextUtils>()->QueryCopyStoryCommand( ... ) ;
| typedef bool16(* ITextUtils::StripMatchingCharactersFunction)(const UTF32TextChar &n) |
Filter illegal control characters from the string.
| data | is the string to filter |
| func | is a function that returns kTrue if it is passed a character that should be stripped |
How should the names be displayed?
Enum defining the scope of the Page Count
Do character, word, paragraph and line count
| startIndex | — start index for counting |
| lengthToCount | — how far should count stop. |
| action | — just update line or update all. |
| state | — start or continue counting. |
| wordStarted | — left over state(word is started or not) of last time. |
| characters | — count of characters. (passed out parameter) |
| words | — count of words. (passed out parameter) |
| paragraphs | — count of paragraphs. (passed out parameter) |
| lines | — count of lines. (passed out parameter) |
| oversetCharacters | — count of characters in overset. (passed out parameter) |
| oversetWords | — count of words in overset. (passed out parameter) |
| oversetParagraphs | — count of paragraphs in overset. (passed out parameter) |
| oversetLines | — (Deprecated, won`t return actual overset lines) count of lines in overset. (passed out parameter) |
| pure virtual |
2.0: Tables use one or more characters to "anchor" the table to the text flow. Inserting within these ranges is considered bad form and will lead to crashes. You may use this method to launder the ranges to encompass all of the table instead of just part.
| pure virtual |
Align text in the primary story thread in the specified text frame. This is NOT suitable for alignment in any other TextStoryThread.
| pure virtual |
returns whether the range in the model contains a footnote
| model | — The model in question |
| range | — The range in the given model |
| pure virtual |
Description: Convert the attributes from the source database to target database first and
then apply the converted attributes to target style.
| sourceDB | [IN] source database |
| sourceStyle | [IN] source style |
| targetDB | [IN] target database |
| targetStyle | [IN] target style |
| uidList | [IN] itemList to apply |
| pure virtual |
Builds a list of text ranges for the specified story that are in logical order. The first range will begin at 'start' and the rest of the ranges will wrap around the end of the story to end at 'start - 1'.
| pure virtual |
Translates character (can be multiple UTF16s) offset into UTF16 offset in UTF16TextChar buffer
| pure virtual |
Returns the list of owned items associated with a TextRange
| model | The TextModel |
| start | The starting TextIndex of Text range to collect from. |
| len | The length of the Text range to collect from. |
| resultList | |
| nested | If kFalse, only the OwnedItems in the specified Text range are returned. If kTrue, then all nested OwnedItems, that is OwnedItems that are contained in StoryRanges managed by found OwnedItems, are also returned. See CollectStoryRanges() for more information on nesting. |
| pure virtual |
Collects UIDs of items with specified interface from the text focus. e.g. IID_IGRAPHICFRAMEDATA, IID_ITOPFRAMEDATA Can be a costly function with a text selection that spans many pages. See FocusSpansMultiplePageItems.
| pure virtual |
Returns the list of logically sequential story ranges that derive from the specified span of the text model. For a typical model span with no special content this will simply return a single StoryRange as (start, start + len). If a table, or other type of owned item which contains nested text is within the specified span then the specified span will be returned as two ranges with the appropriate nested text range(s) inserted between them. The hIndex and hIndexList are optional parameters which allows the caller to identify the starting TextIndex of the hierarchical element that "owns" the equivalent range in the resultList. Ranges from the main story thread (which starts at TextIndex 0) will have the hIndex of kInvalidTextIndex. Hierarchical elements that are found in the main story thread will have hIndex values within the main story thread and if those elements have sub elements then those will be in other story threads.
| bIncludeAnchorSpan | is optional parameter which provides flexibility to client if they want to include anchor when calculating net span. For example, we don't want to include anchor span(such as table) when when do line count, e.g., for a 4x4 table, we want the line count as 16 instead of 17. |
| pure virtual |
returns the list of owned items associated with a TextRange that have an IVisitorHelper interface.
| pure virtual |
Compare two items in the same text model by their text index to determine if an item appears visually before or after the other item.
| txtModel | The text model for both the items to be compared |
| item1Position | Text index of the first item |
| item2Position | Text index of the second item |
| pure virtual |
Map quotes to smart quotes
| story | to convert quotes |
| position | where to start converting quotes |
| length | to convert quotes |
| pure virtual |
Strip various types of characters from some text.
| rText | is the source text. |
| pStripped | will be the converted text. If nil, nothing occurs and we return rText. |
| pure virtual |
Counts number of Unicode characters in a UTF16TextChar buffer
| pure virtual |
return the number of overset lines in a given text model
| pure virtual |
Creates the command to convert an existing frame to a multi-column text frame with a new story and a new frame list.
| parent | - Existing frame which will be converted to multi-column frame. |
| isHorizontal | - kTrue if the new Story orientation is horizontal, kFalse if it is vertical. Default is kTrue. |
| isFrameGrid | - kTrue if the new Story frame is a frame grid. kFalse if it is a text frame. Default is kFalse. |
| isLeftToRight | - kTrue if the new Story direction is left to right. kFalse if it is right to left. Default is kTrue. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| pure virtual |
Creates the command to convert an existing frame to a multi-column text frame and insert at the end or beginning of an existing frame list.
| parent | - Existing frame which will be converted to multi-column frame. |
| frameList | - The existing frame list into which the multi-column frame will be inserted. |
| atEnd | - kTrue if the multi-column frame will be appened to the end of the frame list, kFalse if it will be inserted to the beginning of the frame list. Default is kTrue. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| pure virtual |
Creates the command to convert an existing frame to a multi-column text frame and insert into an existing frame list. The new frame will be inserted before or after the specified IMultiColumnTextFrame.
| parent | - Existing frame which will be converted to multi-column frame. |
| mcFrame | - The multi-column frame in the existing frame list before or after which the converted frame will be inserted. |
| insertAfter | - kTrue if the converted frame will be inserted after mcFrame, kFalse if it will be inserted before mcFrame. Default is kTrue. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| pure virtual |
Creates the command to convert an existing frame to a multi-column text frame and insert into an existing frame list.
The other 2 versions of ConvertToTextFrameForFrameList are recommended. This version is just for use in case if you want to insert the frame to the middle of the frame list and don't have the corresponding IMultiColumnTextFrame. But this case is rare.
| parent | - Existing frame which will be converted to multi-column frame. |
| frameList | - The existing frame list into which the multi-column frame will be inserted. |
| insertIndex | - Index in the frame list where the multi-column frame will be inserted. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| pure virtual |
Creates the command to convert an existing frame to a multi-column text frame, attaches to an existing story and starts a new frame list.
| parent | - Existing frame which will be converted to multi-column frame. |
| story | - The existing story to which the multi-column frame will attach. |
| isHorizontal | - kTrue if Story orientation set to horizontal, kFalse if it is vertical. Default is kTrue. |
| isFrameGrid | - kTrue if the Story frame set to a frame grid. kFalse if it is a text frame. Default is kFalse. |
| isLeftToRight | - kTrue if the Story direction set to left to right. kFalse if it is right to left. Default is kTrue. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| pure virtual |
Creates the command to create a new multi-column text frame with a new story and a new frame list.
| parent | - Parent page item under which to create the new frame. |
| noGraphicAttr | - kTrue if not to set object styles for the new frame. kFalse otherwise. Usually set to kTrue. |
| boundary | - Boundary (in pasteboard coordinates) of the spline where multi-column frame will be created. |
| isHorizontal | - kTrue if the new story orientation is horizontal, kFalse if it is vertical. Default is kTrue. |
| isFrameGrid | - kTrue if the new story is a frame grid. kFalse if it is a text frame. Default is kFalse. |
| isLeftToRight | - kTrue if the new story direction is left to right. kFalse if it is right to left. Default is kTrue. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| isEndnoteStory | - Is the new text frame going to be part of an endnote story? Default is kFalse. |
| pure virtual |
Creates the command to create a new multi-column text frame with a new story and a new frame list.
| parent | - Parent page item under which to create the new frame. |
| noGraphicAttr | - kTrue if not to set object styles for the new frame. kFalse otherwise. Usually set to kTrue. |
| opposingCorners | - Opposing corners (in pasteboard coordinates) of the spline where multi-column frame will be created. |
| isHorizontal | - kTrue if the new story orientation is horizontal, kFalse if it is vertical. Default is kTrue. |
| isFrameGrid | - kTrue if the new story is a frame grid. kFalse if it is a text frame. Default is kFalse. |
| isLeftToRight | - kTrue if the new story direction is left to right. kFalse if it is right to left. Default is kTrue. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| pure virtual |
Creates the command to create a new multi-column text frame and insert to the end or beginning of the specified frame list.
| parent | - Parent page item under which to create the new frame. |
| noGraphicAttr | - kTrue if not to set object styles for the new frame. kFalse otherwise. Usually set to kTrue. |
| boundary | - Boundary of the spline where multi-column frame will be created. |
| frameList | - The existing frame list into which the new frame will be inserted. |
| atEnd | - kTrue if the new frame will be appended to the end of the frame list, kFalse if it will be inserted to the beginning of the frame list. Default is kTrue. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| pure virtual |
Creates the command to create a new multi-column text frame and insert into an existing frame list. The new frame will be inserted before or after the specified IMultiColumnTextFrame.
| parent | - Parent page item under which to create the new frame. |
| noGraphicAttr | - kTrue if not to set object styles for the new frame. kFalse otherwise. Usually set to kTrue. |
| boundary | - Boundary of the spline where multi-column frame will be created. |
| mcFrame | - The multi-column frame in the existing frame list before or after which the new frame will be inserted. |
| insertAfter | - kTrue if the new frame will be inserted after mcFrame, kFalse if it will be inserted before mcFrame. Default is kTrue. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| pure virtual |
Creates the command to create a new multi-column text frame and insert into an existing frame list.
The other 2 versions of QueryNewMCFrameForFrameListCmd are recommended. This version is just for use in case if you want to insert the new frame to the middle of the frame list and don't have the corresponding IMultiColumnTextFrame. But this case is rare.
| parent | - Parent page item under which to create the new frame. |
| noGraphicAttr | - kTrue if not to set object styles for the new frame. kFalse otherwise. Default is kTrue. |
| boundary | - Boundary of the spline where multi-column frame will be created. |
| frameList | - The existing frame list into which the new frame will be inserted. |
| insertIndex | - index in the frame list where the new frame will be inserted. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| pure virtual |
Creates the command to create a new multi-column text frame, attaches to an existing story and starts a new frame list.
| parent | - Parent page item under which to create the new frame. |
| noGraphicAttr | - kTrue if not to set object styles for the new frame. kFalse otherwise. Usually set to kTrue. |
| boundary | - Boundary of the spline where multi-column frame will be created. |
| story | - The existing story to which the new frame will attach. |
| isHorizontal | - kTrue if the story orientation set to horizontal, kFalse if it is vertical. Default is kTrue. |
| isFrameGrid | - kTrue if the story set to a frame grid. kFalse if it is a text frame. Default is kFalse. |
| isLeftToRight | - kTrue if the story direction set left to right. kFalse if it is right to left. Default is kTrue. |
| frameItem | - ID of the frame item. Default is kFrameItemBoss. |
| pure virtual |
Create a new story in the specified database.
| defaults | specified whether the user's default attributes should be applied to the new story |
| clsID | specifies whether user specified story boss should be created |
| pure virtual |
Returns a command to force recomposition (use to avoid CmdBehaviorMonitor asserts if you need to force recomposition from within another command)
| pure virtual |
Returns a command to force recomposition (use to avoid CmdBehaviorMonitor asserts if you need to force recomposition from within another command)
| pure virtual |
Determines the pair kern at a particular text index.
| kernService | refers to the ClassID of a boss that has the IPairKernDict interface to use. |
| pure virtual |
Description: Edit the given target style with the given style attributes.
| targetDB | [IN] target database |
| targetStyle | [IN] target style |
| attributesToApply | [IN] the attributes in the target database to apply |
| uidList | [IN] itemList to apply |
| pure virtual |
Looks for findOldItemUI from "start" and replaces it with newItemUID in the item strand. This is typically used by commands that create owned items during import. In case the owned item is contained in a table and there is text after the end of the table (ie after the table in the tables containing text story thread) then the TextIndex stored in the command may not be valid. The returned TextIndex is the new location at which findOldItemUID was found in the item strand.
| pure virtual |
Find the word at a text location.
| pModel | The text model in question. |
| nPosition | The text location in question. |
| pLength | OUT the length of the word. |
| aFunction | a function that determines what characters are considered word breaking. |
| pure virtual |
Find the word at a text location.
| pModel | The text model in question. |
| nPosition | The text location in question. |
| pLength | OUT the length of the word. |
| aFunction | a function that determines what characters are considered word breaking. |
| pure virtual |
Does the focus span more than one page item frames.
| pure virtual |
Populates the two passed in attribute boss lists with all the character attributes and paragraph attributes, respectively, that can exist in a style and therefore the attributes that can be "cleared".
| workspace | — Workspace to use as the basis for collecting all possible "style" attributes. |
| characterAttributes | — AttributeBossList to populate with the complete list of character attributes that can be cleared (in a style) |
| paragraphAttributes | — AttributeBossList to populate with the complete list of paragraph attributes that can be cleared (in a style) |
| pure virtual |
Return the chapter number
| target | The relevant text frame or an owned item |
| pure virtual |
Returns the requested attributes from the preferences of the document specified. prefsFromDocument should be non nil. For paragraph and character overrides only continuing attributes are returned.
| pure virtual |
Gets the display font names for font
| *fontGroup | font group for font |
| *font | font to get name from |
| &familyName | OUT |
| &styleName | OUT |
| namesFlag | See enum DisplayNamesFlag. |
| pure virtual |
Gets the display font names for font
| *dataBase | database of family UID |
| fontUID | family UID |
| fontStyle | style of font |
| &familyName | OUT |
| &styleName | OUT |
| namesFlag | See enum DisplayNamesFlag. |
Returns the Ref of first frame of the story
| story | whose first frame we need to find. |
| pure virtual |
used by ApplyTextAttrToWorkspaceCmd, UserApplyAttrCmd, and TextState.
| pure virtual |
Return the chapter number as a string.
| target | The relevant database |
| s | The returned formatted string |
| v | The optional value to format. If v==kInvalidChapterNumber, the value is retrieved from GetChapterNumber. |
| pure virtual |
Return the formatted string for the current, previous, or next page the given textFrame is on.
| pure virtual |
Return the formatted string for the section the given textFrame is on
| pure virtual |
Return the text of a paragraph including any paragraph numbers at the beginning. Any non-visible characters are also stripped out.
| scanner | Compose Scanner for the story with the paragraph. |
| textIndex | position in the paragraph. |
| paragraphSpan | [OUT]. Length of the paragraph according to the scanner. This will NOT be the length of the returned string. |
| pure virtual |
Creates Glyphs for a given text range in text model with attributes to be overriden. Does not modify composed text frame. Appends overrides to current style and finds the glyphs.
| model | on which the whole action isto be taken. Current styles will be picked from this. |
| range | of model on which the overrides need to be applied. |
| overrides | list of attributes,that need to be applied on range. |
| newGlyphPoints(out) | list of Pair (glyphs and corresponding text index) that would be used with override. Does not allocate memory. Please pass reference to valid object. |
| clearOverrides | set to true if overrides need to be cleared and not applied. |
| pure virtual |
Return the last document in the current active book and whether it was already opened or not.
| pure virtual |
Return the ICU Locale for the given target and position. If the target is a TextModel, then if the position is valid, it will return the LanguageID applied to that location. Otherwise, if target refers to a valid document, the default languageID for the document is returned. Otherwise, kLanguageNeutral is returned.
| target | Preferably a document or a TextModel, but can be an empty UIDRef or any reference to the desired document. |
| position | The position in the model. Optional. |
| pure virtual |
returns the index of a multicolumn frame in its thread by simply calling
IMultiColumnTextFrame::GetMCFIndex(); Note: This was broken in CS2 and was returning the index first TextFrameColumn within the FrameList. It was fixed in CS5.
| pure virtual |
Return the UIDRef for the page number after to the one the given textFrame is on
| pure virtual |
Return the page count based on the given scope
| target | The relevant text frame or an owned item |
| pure virtual |
Return the page number for the page the given textFrame is on
Return the number formatter for the page the given textFrame is on. Formatter is also applicable for chapter numbers.
| pure virtual |
Return the page number for the page with given page uid
Return the UIDRef for the page the given textFrame is on
| target | The textFrame or OwnedItem whose page number is desired. |
| pure virtual |
Get the Content Bounds of the Parcel at the specified TextIndex. If there is no Parcel at that TextIndex then it returns kFalse. Note that if the text at that location isn't fully composed then the Parcel you get may not be the same Parcel after composition.
| pure virtual |
Return the UIDRef for the page number previous to the one the given textFrame is on
| pure virtual |
Calculate the range in the main story thread that ultimately owns the given range. e.g. Works to backtrack from a footnote or note or inline to the owning text index.
| point1 | [IN/OUT] storyRef, the story that ultimately "owns" the given range. |
| point2 | [IN/OUT] range, the "owning" range of the original given range. |
| pure virtual |
Calculate the range in the main story thread that owns the given range. within the same TextModel. Unlike GetPrimaryStoryAnchor() above, this method does NOT attempt to back out of inlines into a different story.
| model | TextModel to work on |
| range | [IN/OUT] the "owning" range of the original given range. |
| pure virtual |
GetSelectedTextItemsFromLayoutTarget gathers UIDs for the text frames that are currently selected.
| layoutTarget | IN The current ILayoutTarget you want to gather selected text items from. |
| textframes | OUT The text frames that are currently selected. |
| mcfs | OUT The multi column frames that are currently selected. |
| splineItems | OUT The spline items that are currently selected. |
| pure virtual |
GetSelectedTextItemsFromTextTarget gathers UIDs for the text frames that are currently selected.
| textTarget | IN The current ITextTarget you want to gather selected text items from. |
| textframes | OUT The text frames that are currently selected. |
| mcfs | OUT The multi column frames that are currently selected. |
| splineItems | OUT The spline items that are currently selected. |
| pure virtual |
GetSelectedTextItemsFromLayoutTarget gathers UIDs for the text frames that are currently selected.
| UIDList | IN The pageitems to look through for text frames |
| textframes | OUT The text frames that are currently selected. |
| mcfs | OUT The multi column frames that are currently selected. |
| splineItems | OUT The spline items that are currently selected. |
| pure virtual |
Description: Fills in list of IMultiColumnTextFrames known to the
spread. by calling the ISpreadMultiColumnFrames interface on the specified Spread.
| pure virtual |
Description: Fills in list of ITextFrameColumns known to the spread by
calling the ISpreadMultiColumnFrames interface on the specified Spread.
| pure virtual |
Return whether or not the container for the given target continues elsewhere (e.g. a table continues to another frame)
| pure virtual |
Return whether or not the container for the given target is continued from elsewhere (e.g. a table is continued from the previous frame)
| pure virtual |
GetTextFramesContaining returns the range of TextFrames that the Parcels containing the Text Range map to. The Range MUST be within a single StoryThread. pFirstFrameIndex will be -1 if the Text Range does not map to a Text Frame.
Returns the uid of the page which this text frame is one, can return kInvalidUID
| pageItem | – pageitem to find page UID of |
| pure virtual |
returns the child for each Inline UID in the owned item strand
| pure virtual |
GetUIDListOfTextFrames returns a list of TextFrames that the Parcels containing the specified Text Range map to. The Range MAY cross StoryThread boundries.
| pure virtual |
Fills in inkResourceData with the known inks in the specified Range. It incorporates handling of the last CR in the Story Thread, so callers need not take care of removing it from the range.
Notes:
Return the PMMatrix to transform a point in WaxCoordinates in a Parcel to the owning Frame. Useful if you are an inline and you want to find out where you are relative to the Frame.
| pure virtual |
Do roman character, all character, katakana, hiragana, kanji, paragraph and line count
| startIndex | — start index for counting |
| lengthToCount | — how far should count stop. |
| action | — just update line or update all. |
| state | — start or continue counting. |
| wordStarted | — left over state(word is started or not) of last time. |
| fullWidthChars | — count of full-width chars including full-width numbers, symbols and punctuations. (passed out parameter) |
| oversetFullWidthChars | — count of full-width chars including full-width numbers, symbols and punctuations in overset. (passed out parameter) |
| halfWidthChars | — count of half-width chars including half-width numbers, symbols and punctuations. (passed out parameter) |
| oversetHalfWidthChars | — count of half-width chars including half-width numbers, symbols and punctuations in overset. (passed out parameter) |
| japaneseChars | — count of japanese chars including full and half-width Hiragana and Katakana. (passed out parameter) |
| oversetJapaneseChars | — count of japanese chars including full and half-width Hiragana and Katakana in overset. (passed out parameter) |
| kanjis | — count of kanjis. (passed out parameter) |
| oversetKanjis | — count of kanjis in overset. (passed out parameter) |
| words | — count of words. (passed out parameter) |
| oversetWords | — count of words in overset. (passed out parameter) |
| lines | — count of lines. (passed out parameter) |
| oversetLines | — count of lines in overset. (passed out parameter) |
| paragraphs | — count of paragraphs. (passed out parameter) |
| oversetParagraphs | — count of paragraphs in overset. (passed out parameter) |
| allChars | — count of all characters(passed out parameter) |
| oversetAllChars | — count of all characters in overset. (passed out parameter) |
| pure virtual |
Returns a pointer to a WideString with the name of the XRefChapterNumberVariable.
| pure virtual |
Returns a pointer to a WideString with the name of the XRefPageNumberVariable.
| pure virtual |
returns the best guess for the text's writing script, preferredWritingScript is being used as a hint.
| pure virtual |
Does this font carry an Adobe copyright?
| pure virtual |
Is this style name considered bold and italic?
| pure virtual |
Is this style name considered bold? (For example, "Bold", "Heavy", "Black")
| pure virtual |
returns whether the given ITextFocus is a footnote and optionally returns the UIDRef for that footnote
| pFocus | — The ITextFocus in question |
| pFootnoteUIDRef | — If non-nil and there is a footnote at that model-position, the UIDRef of the footnote |
| pure virtual |
returns whether the position in the model is a footnote and optionally returns the UIDRef for that footnote
| model | — The model in question |
| position | — The position in the given model |
| pFootnoteUIDRef | — If non-nil and there is a footnote at that model-position, the UIDRef of the footnote |
| pure virtual |
Is this style name considered italic? (For example, "Italic", "Oblique")
| pure virtual |
Returns whether or not the run at the text index within the specified line is left to right direction.
| waxLine | the line to examine. |
| textIndex | position in the line. |
| inlinevirtual |
Return whether or not the given object is a MultiColumn TextFrame
| obj | can be any object |
| pure virtual |
Is this font family an opentype font family?
| pure virtual |
Is this font an opentype font?
| pure virtual |
Is the text parcel list overset?
| pure virtual |
Is this style name considered plain? (For example, "Roman", "Regular", "")
| pure virtual |
returns false if writingScript and text are contradicting.
| pure virtual |
Checks if the specified text is valid for insertion in the text model. Some control characters are not accepted by the text model.
| text | [IN] text to be checked for validity. |
| pure virtual |
Return kTrue if vertical column rule is active on given shape
| shape | The shape of mcf |
| pure virtual |
Link two text frames together as follows: If prepend is kFalse, then the textFrameA will be linked to textFrameB. Thus, existing text will flow from textFrameA to textFrameB. If prepend is kTrue, then the textFrameB will be linked to textFrameA. Thus, existing text will flow from textFrameB to textFrameA. In both cases, textFrameB will inherit textFrameA's attributes (e.g. vertical or horizontal frame).
| textFrameA | - see desc above. |
| textFrameB | - see desc above. |
| prepend | - see desc above. |
| pure virtual |
Notifies the last Frame in the FrameList that its overset state may have changed. This call simply posts the appropriate inval rect for the location of the overset indicator and adds the Frame to the RecomposedFrames list. Note that the caller must ensure that at least one Frame in the FrameList is damaged or else the inval may never be played until the Frame becomes damaged and is recomposed.
| frameList |
| pure virtual |
Function for copying text from one story to another.
This replaces the range in the destination story with a copy of the specified text from the source story.
| source | The UIDRef of the source ITextModel. |
| dest | The UIDRef of the destination ITextModel. |
| ignoreAttributes | Ignore the attributes on copy, default to kFalse |
| pure virtual |
Function for copying all of the text from one story to another.
This replaces the destination story with a copy of the source story.
| source | The UIDRef of the source ITextModel. |
| dest | The UIDRef of the destination ITextModel. |
| ignoreAttributes | Ignore the attributes on copy, default to kFalse |
| pure virtual |
Function for copying text from one story to another.
This copies the entire source story to the end of the destination story.
| source | The UIDRef of the source ITextModel. |
| dest | The UIDRef of the destination ITextModel. |
| ignoreAttributes | Ignore the attributes on copy, default to kFalse |
| pure virtual |
Function for copying text from one story to another.
This copies the specified text from the source story to the end of the destination story.
| source | The UIDRef of the source ITextModel. |
| dest | The UIDRef of the destination ITextModel. |
| ignoreAttributes | Ignore the attributes on copy, default to kFalse |
| pure virtual |
Convert the textFrame to a member of IHierarchy (even if the textFrame is Text-on-a-Path)
| pure virtual |
If the spline contains text, return the associated multi-column object.
If spline doesn't contain text and if the spline has TOP, return the multi-column object associated with kTOPFrameItemBoss. return nil, for other conditions.
| pure virtual |
Function for moving text from one story to another.
This replaces the range in the destination story with the specified text from the source story. The source range is removed from the source story.
| source | The UIDRef of the source ITextModel. |
| dest | The UIDRef of the destination ITextModel. |
| ignoreAttributes | Ignore the attributes on move, default to kFalse |
| pure virtual |
Function for moving text from one story to another.
The entire source story is moved to the destination range.
| source | The UIDRef of the source ITextModel. |
| dest | The UIDRef of the destination ITextModel. |
| ignoreAttributes | Ignore the attributes on move, default to kFalse |
| pure virtual |
Function for moving text from one story to another.
This replaces the destination story with the source story. The source range is removed from the source story.
| source | The UIDRef of the source ITextModel. |
| dest | The UIDRef of the destination ITextModel. |
| ignoreAttributes | Ignore the attributes on move, default to kFalse |
| pure virtual |
Function for moving text from one story to another.
This moves the entire source story to the end of the destination story. The source range is removed from the source story.
| source | The UIDRef of the source ITextModel. |
| dest | The UIDRef of the destination ITextModel. |
| ignoreAttributes | Ignore the attributes on move, default to kFalse |
| pure virtual |
Given an ITextFrameColumn, return the associated MultiColumn TextFrame.
| tfc | Pointer to ITextFrameColumn |
| pure virtual |
Const version of QueryMultiColumnFrame
| pure virtual |
UID version of QueryMultiColumnFrame
| pure virtual |
Given an IMultiColumnTextFrames, return the spline associated with it
| mcf | Pointer to IMultiColumnTextFrame |
| pure virtual |
Given an ITextFrameColumn, return the spline associated with the parent MultiColumnTextFrame.
| tfc | Pointer to ITextFrameColumn |
| pure virtual |
returns the remapped textchar after converting to platform encoding using oldFont and back to newFont.
| pure virtual |
returns the position of first remapped textchar in buffer and copies the remapped textchars in replacedChars after converting to platform encoding using oldFont and back to newFont.
| pure virtual |
Remap font styles tries to choose the expected family/style and allow roundtripping.
| AxesInfo | - pass this returns back axes info for variable font filled if variable font |
| numAxes | - returns number of design axes in variable font |
***Client responsibility to clear the design axes after API use***
example for reference if(numAxes && AxesInfo) { fontStyleAttr->SetMMAxes(numAxes,axesInfo); delete[] axesInfo; }
| pure virtual |
Remap font styles tries to choose the expected family/style and allow roundtripping.
| AxesInfo | - pass this returns back axes info for variable font filled if variable font |
| numAxes | - returns number of design axes in variable font |
***Client responsibility to clear the design axes after API use***
example for reference if(numAxes && AxesInfo) { fontStyleAttr->SetMMAxes(numAxes,axesInfo); delete[] axesInfo; }
| pointSize | - default -1, but for the cases where we want optical axis mapping we need to pass it. |
| pure virtual |
Fix up TOC/Index/Third party links when placing a story.
| oldStoryRef | [IN] The destination of the fixing operation. The story being fixed. |
| newStoryRef | [IN] The source of the fixing operation. |
| pure virtual |
Writing script to Language ID conversion.
| pure virtual |
returns whether the char needs to be skipped during remapping.
Used by UserApplyAttrCmd, ScriptUserEditCmdResp, and CJKUserEditCmdResp.
| pure virtual |
returns whether the char needs to be skipped during remapping.
Used by Text::RemapCharacterValue.