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

#include <TOCEntryInfo.h>

Public Types

typedef object_type data_type
 

Public Member Functions

 TOCFormatEntryInfo ()
 
 TOCFormatEntryInfo (const PMString &sourceDoc, const UID paraFormatStyle, const int32 level, const bool16 bSort, const ITOCCmdData::PageNumPosition position, const UID pageNumFormatStyle, const WideString separator, const UID separatorStyle, const bool16 bRunIn, const WideString runInSep, const bool16 includeSectionName)
 
bool16 operator== (const TOCFormatEntryInfo &other) const
 
void ReadWrite (IPMStream *s)
 

Public Attributes

PMString fSourceDoc
 
UID fParaFormatStyle
 
int16 fLevel
 
bool16 fLevelSort
 
ITOCCmdData::PageNumPosition fPosition
 
UID fPageNumFormatStyle
 
WideString fSeparator
 
UID fSeparatorStyle
 
bool16 fRunIn
 
WideString fRunInSep
 
bool16 fIncludeSectionName
 

Detailed Description

Helper class to cache formating information for each table of content(TOC) entry. This class has the sort information.

Constructor & Destructor Documentation

TOCFormatEntryInfo::TOCFormatEntryInfo ()
inline

Default constructor.

TOCFormatEntryInfo::TOCFormatEntryInfo (const PMStringsourceDoc,
const UID paraFormatStyle,
const int32 level,
const bool16 bSort,
const ITOCCmdData::PageNumPosition position,
const UID pageNumFormatStyle,
const WideString separator,
const UID separatorStyle,
const bool16 bRunIn,
const WideString runInSep,
const bool16 includeSectionName 
)
inline

Copy constructor with given values.

Parameters
sourceDocIN document name from the paraFormatStyle from
paraFormatStyleIN the UID of paragraph style to format TOC entries
levelIN level of paragraph style included in TOC
bSortIN sort flag for paragraph style included in TOC
positionIN position for where page number should be inserted
pageNumFormatStyleIN the UID of character style to format page number of TOC entry
separatorIN separator between TOC entry and page number
separatorStyleIN the UID of character style to separator of TOC entry
bRunInIN run in flag for TOC entry
runInSepIN run in separator
includeSectionNameIN flag for including section name of page number

Member Function Documentation

bool16 TOCFormatEntryInfo::operator== (const TOCFormatEntryInfoother) const
inline

Equal operator for comparison.

Parameters
otherIN the object to compare with.
Returns
bool16 kTrue means equal, otherwise kFalse.
void TOCFormatEntryInfo::ReadWrite (IPMStreams)
inline

Persist the table of content entries(TOCFormatEntryInfo) in the document.

Parameters
sIN stream where we read/write object of TOCFormatEntryInfo.