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

Public Types | |
| enum | { kDefaultIID = IID_IATTRIBUTESTRAND } |
Public Member Functions | |
| virtual void | DoApplyTextStyle (const ITextModel *model, ClassID which, TextIndex *pstartpos, int32 *pnumchars, UID styleref, bool16 removeAll, bool16 keepOldStyleAsOverrides=kTrue)=0 |
| virtual void | DoApplyOverrides (const ITextModel *model, ClassID whichStrand, TextIndex *startpos, int32 *numchars, const AttributeBossList *over)=0 |
| virtual void | DoClearOverrides (const ITextModel *model, ClassID whichStrand, TextIndex *startpos, int32 *numchars, const AttributeBossList *over)=0 |
| virtual void | UnhookParagraphStyle (const ITextModel *model, TextIndex start, int32 len, UID rootStyle, UID oldParagraphStyle, UID storyThreadStyle)=0 |
| virtual UID | GetStyleUID (TextIndex position, int32 *count, TextIndex *runBegin=nil) const =0 |
| virtual DataWrapper < AttributeBossList > | GetLocalOverrides (TextIndex position, int32 *count, TextIndex *runBegin=nil) const =0 |
| virtual void | ResetWithNoUndo (const ITextModel *model, TextIndex start, int32 length, UID toStyle)=0 |
| virtual void | StoryThreadStyleDiffs_ApplyAtPaste (TextIndex start, int32 length, const UID &charRootStyle, const UID ¶RootStyle, const AttributeBossList *diffAttrs, const AttributeBossList *dest_SrcStoryThreadStyleDiffs, const ITextModel *model)=0 |
| virtual void | ParaRootStyleDiffs_ApplyAtPaste (TextIndex start, int32 length, const UID &charRootStyle, const UID ¶RootStyle, const AttributeBossList *diffAttrs, const AttributeBossList *paraDest_SrcRootStyleDiffs, const ITextModel *model)=0 |
| virtual void | CharRootStyleDiffs_ApplyAtPaste (TextIndex start, int32 length, const UID &charRootStyle, const UID ¶RootStyle, const AttributeBossList *diffAttrs, const AttributeBossList *charDest_SrcRootStyleDiffs, const ITextModel *model)=0 |
| virtual void | RemoveRedundantOverrides (const ITextModel *model, TextIndex start, int32 len)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Abstract interface that all attribute strands must implement.
| pure virtual |
For internal use only.
| pure virtual |
Applies text attributes to a range.
| model | IN text model. |
| whichStrand | IN whether these are character or a paragraph attributes. |
| startpos | IN start of apply range. |
| numchars | IN apply range length. |
| over | IN attributes to apply. Adjusts startpos & numchars to encompass EXACTLY ALL the characters within the intersecting paragraphs. |
| pure virtual |
Applies a text style to a range.
| model | IN text model. |
| which | IN whether this is a character or a paragraph style. |
| pstartpos | IN start of apply range. |
| pnumchars | IN length of apply range. |
| styleref | IN applied style uid |
| removeall | IN whether to remove all overrides. |
| keepOldStyleAsOverrides | IN whether to apply current style as overrides before setting new style. Adjusts pstartpos & pnumchars to encompass EXACTLY ALL the characters within the intersecting paragraphs. |
| pure virtual |
Clears text attributes from a range.
| model | IN text model. |
| whichStrand | IN whether these are character or paragraph attributes. |
| startpos | IN start of clear range. |
| numchars | IN clear range length. |
| over | IN attributes to clear. Adjusts startpos & numchars to encompass EXACTLY ALL the characters within the intersecting paragraphs. |
| pure virtual |
| position | IN text index to look at. |
| count | OUT length from position to end of paragraph run. |
| runBegin | OUT text index of start of paragraph run. |
| pure virtual |
| position | IN text index to look at. |
| count | OUT length from 'position' to end of paragraph run. |
| runBegin | OUT text index of start of paragraph run. |
| pure virtual |
For internal use only.
| pure virtual |
Remove overrides which are already applied through styles.
| model | IN text model. |
| start | IN start of remove range. |
| numchars | IN remove range length. |
| pure virtual |
For internal use only.
| pure virtual |
For internal use only.
| pure virtual |
Remove reference to paragraph style but leave its effect in the form of overrides.
| model | IN text model. |
| start | IN start of unhook range. |
| len | IN unhook range length. |
| rootStyle | IN root style UID. |
| oldParagraphStyle | IN paragraph style to unhook. |
| storyThreadStyle | IN story thread style. |