InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
TabStopTable Class Reference

#include <TabStop.h>

Public Types

typedef const TabStopconst_iterator
 

Public Member Functions

PMReal GetDefaultTabInterval () const
 
const TabStopGetTabStopAfter (PMReal offset) const
 
int32 size () const
 
void clear ()
 
const TabStopbegin () const
 
const TabStopend () const
 
const TabStopoperator[] (int32 index) const
 
void Insert (const TabStop &stop)
 
void Remove (int32 index)
 
void ReadWrite (IPMStream *stream)
 

Protected Attributes

K2Vector< TabStopfSortedTable
 
TabStop fDefaultTab
 
PMReal fDefaultTabInterval
 

Detailed Description

The table of tab stops for this paragraph.

Member Function Documentation

PMReal TabStopTable::GetDefaultTabInterval () const

Get the default interval between tabs.

const TabStop* TabStopTable::GetTabStopAfter (PMReal offset) const
Find the first tab stop after the given offset, if any.

Returns
nil if there are no default and other tabs.
void TabStopTable::Insert (const TabStopstop)

Insert the given tab stop. If the tab stop is not a default tab, it will replace all prior default tabs.

void TabStopTable::Remove (int32 index)
inline

Remove the tabstop at the given index

Member Data Documentation

TabStop TabStopTable::fDefaultTab
protected

A tab stop that is (re)used each time a default tab should be returned. The position is updated each time.

PMReal TabStopTable::fDefaultTabInterval
protected
Cached value of the current document settings.

See Also
ITabSettings
K2Vector<TabStop> TabStopTable::fSortedTable
protected

The table of tab stops, sorted by position.