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

Classes | |
| struct | _TextRange |
Public Types | |
| enum | { kDefaultIID = IID_ITEXTRANGENODE } |
| typedef struct ITextRangeNode::_TextRange | TextRange |
Public Member Functions | |
| virtual void | Initialize (ITextRangeNode::TextRange range, UIDRef baseUIDRef, uint32 subItemKey=0)=0 |
| virtual UIDRef | GetBaseUIDRef () const =0 |
| virtual uint32 | GetSubKey () const =0 |
| virtual UIDRef | GetOwningStoryUIDRef () const =0 |
| virtual void | SetObjectID (UIDRef baseUIDRef, uint32 subItemKey=0)=0 |
| virtual TextIndex | GetKey () const =0 |
| virtual TextIndex | GetStartIndex () const =0 |
| virtual void | SetStartIndexOffset (TextIndex newOffset)=0 |
| virtual void | SetRangeLength (int32 length)=0 |
| virtual int32 | GetRangeLength () const =0 |
| virtual TextRange | GetTextRange () const =0 |
| virtual TextIndex | GetParentOffset () const =0 |
| virtual TextIndex | GetAbsoluteParentOffset () const =0 |
| virtual TextRangeReference | GetSelfRef () const =0 |
| virtual void | SetSelfRef (TextRangeReference ref)=0 |
| virtual TextRangeReference | GetParentRef () const =0 |
| virtual void | SetParentRef (TextRangeReference ref)=0 |
| virtual TextRangeReference | GetLeftRef () const =0 |
| virtual void | SetLeftRef (TextRangeReference ref)=0 |
| virtual TextRangeReference | GetRightRef () const =0 |
| virtual void | SetRightRef (TextRangeReference ref)=0 |
| virtual bool | IsRed () const =0 |
| virtual bool | RightIsRed () const =0 |
| virtual bool | LeftIsRed () const =0 |
| virtual bool | IsThreeNode () const =0 |
| virtual void | MakeRed ()=0 |
| virtual void | MakeBlack ()=0 |
| virtual void | CopyColor (const ITextRangeNode *from)=0 |
| virtual bool | operator< (const ITextRangeNode &t2) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface represents text range node on the text range Red-Black tree inside text range strand. Each node is a small boss object representing the text range and associated text object. The start index is used as key for each node.
| pure virtual |
Copy the color from the specified text range node.
| from | - text range node to copy color from. |
| pure virtual |
Gets the absolute value of start index offset from the parent node.
| pure virtual |
| pure virtual |
Gets the key/start index of the text range node.
| pure virtual |
Gets the owning story of the text object.
| pure virtual |
Gets the start index offset from the parent node.
| pure virtual |
Gets the range length of the text range node.
| pure virtual |
Get/Set method of text range reference of the node, its parent and children.
| pure virtual |
Gets the sub key of the text object.
| pure virtual |
Gets the text range of the text range node.
| pure virtual |
Initialize the text range node.
| range | - text range of the node. |
| baseUIDRef | - UIDRef of the text object occupying the range. |
| subItemKey | - sub key of the text object if it is not a UID based object. |
| pure virtual |
Returns whevher the node is a red node.
| pure virtual |
Returns whevher both children of the node are red nodes.
| pure virtual |
Returns whevher the node's left child is a red node.
| pure virtual |
Mark the node as a black node.
| pure virtual |
Mark the node as a red node.
| pure virtual |
Returns whevher the node's right child is a red node.
| pure virtual |
| pure virtual |
Sets the range length of the text range node.
| length | - length of the node. |
| pure virtual |
Sets the start index offset of the text range node from its parent.
| newOffset | - start index offset of the node. |