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

Public Types | |
| enum | TabState { kOff, kOn, kMulti, kDragged, kSelected } |
Public Member Functions | |
| virtual void | SetTabStopTable (const TabStopTable &rTable)=0 |
| virtual bool16 | GetTabStopTable (TabStopTable *pTable) const =0 |
| virtual void | SelectItem (const TabRulerItem *pItem)=0 |
| virtual const TabRulerItem * | GetSelectedItem () const =0 |
| virtual const TabRulerItem * | GetSelectedTabStop () const =0 |
| virtual const TabRulerItem * | GetTabRulerItem (const PMPoint &rPoint) const =0 |
| virtual bool16 | SetNewTabStop (const TabRulerItem &rNewTabStop, bool16 bSelect=kTrue, TabStopTable *pDeleted=nil)=0 |
| virtual const TabRulerItem * | GetTabStopAt (PMReal nPosition) const =0 |
| virtual bool16 | MoveTabRulerItem (const TabRulerItem &rItem, PMReal nNewPosition, bool16 bDraw=kTrue, TabStopTable *pDeleted=0, bool16 bConstrainLeftIndent=kTrue)=0 |
| virtual bool16 | RemoveTabStop (const TabRulerItem &rStop)=0 |
| virtual void | SetDefaultTabAlignment (TabStop::TabAlignment nAlignment)=0 |
| virtual TabStop::TabAlignment | GetDefaultTabAlignment () const =0 |
| virtual void | SetDefaultTabAlignChar (textchar c)=0 |
| virtual textchar | GetDefaultTabAlignChar () const =0 |
| virtual void | SetDefaultTabLeader (PMString string)=0 |
| virtual PMString | GetDefaultTabLeader () const =0 |
| virtual bool16 | IsNewTabPosition (PMReal nPosition) const =0 |
| virtual bool16 | SetFirstIndent (PMReal nNewFirst, bool16 bConstrainedByLeftIndent=kTrue)=0 |
| virtual PMReal | GetFirstIndent () const =0 |
| virtual bool16 | SetLeftIndent (PMReal nNew, bool16 bConstrainLeftIndent=kTrue)=0 |
| virtual PMReal | GetLeftIndent () const =0 |
| virtual bool16 | SetRightIndent (PMReal nNew)=0 |
| virtual PMReal | GetRightIndent () const =0 |
| virtual bool16 | SetLeftMargin (PMReal nNew)=0 |
| virtual PMReal | GetLeftMargin () const =0 |
| virtual bool16 | SetRightMargin (PMReal nNew)=0 |
| virtual PMReal | GetRightMargin () const =0 |
| virtual void | SetScale (PMReal nScale)=0 |
| virtual PMReal | GetScale () const =0 |
| virtual const PMMatrix & | GetTabRulerItemMatrix (PMMatrix *pMatrix) const =0 |
| virtual bool16 | RepeatTab ()=0 |
| virtual void | SetDragItem (const TabRulerItem *pItem)=0 |
| virtual const TabRulerItem * | GetDragItem () const =0 |
| virtual void | SetTabRulerItemTable (const TabRulerItemTable &rTable)=0 |
| virtual const TabRulerItemTable & | GetTabRulerItemTable () const =0 |
| virtual const TabRulerItem * | GetTabStopAfter (PMReal nPosition) const =0 |
| virtual void | SetParagraphDirection (ICompositionStyle::ParagraphDirection nVal)=0 |
| virtual ICompositionStyle::ParagraphDirection | GetParagraphDirection () const =0 |
| virtual void | SetDiffFrames (PMReal diff)=0 |
| virtual PMReal | GetDiffFrames () const =0 |
| virtual void | SetFrameBoxWidth (PMReal width)=0 |
| virtual PMReal | GetFrameBoxWidth () 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 |
Interface for working with the Tab Ruler. Provides access to the TabStopTable, individual tab stops, margins and various other tab properties.
the tabstate is used for displaying the tabstops. kMulti is for ambiguous selections.
| pure virtual |
| pure virtual |
for right-to-left versus left-to-right paragraphs – tab locations are relative to the primary writing direction.
| pure virtual |
get the currently selected item (previously set by SelectItem)
| pure virtual |
returns the selected item corresponding to the selected tabstop ##rk:
| pure virtual |
get the tabstop at a position
sets and returns pMatrix, the matrix is used for hit testing and drawing of the TabRulerItem.
| pure virtual |
returns the TabRulerItem table.
| pure virtual |
| pure virtual |
returns a tabstop for a position.
| pure virtual |
returns kTrue if you can place a new tab at that position. ##rk: as opposed to a default position? only kFalse if an existing tab is there?
| pure virtual |
moves an item to a new position. It only redraws if bDraw. It also returns the deleted tabstop.
| pure virtual |
returns kFalse if no item is selected.
| pure virtual |
selects the nth tabstop of the TabStopTable.
| pure virtual |
| pure virtual |
| pure virtual |
show the original position
| pure virtual |
for right-to-left versus left-to-right paragraphs – tab locations are relative to the primary writing direction.
| pure virtual |
the scaling has to be set independently because we have to draw in pixel device and the TextRuler cannot use a IPanorama
| pure virtual |
sets the TabRulerItem table.