InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISectionUtils Class Referenceabstract

#include <ISectionUtils.h>

Inheritance diagram for ISectionUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ISECTIONUTILS }
 

Public Member Functions

virtual bool16 IsPageStartOfSection (const UIDRef &pageRef, int32 *sectionIndex=nil)=0
 
virtual ErrorCode RemoveEmptySection (IDocument *doc)=0
 
virtual bool16 IsLegalAlternateLayoutName (IDocument *doc, const PMString &nameToCheck, const PMString &nameToSkip)=0
 
virtual void GetSectionNames (IDocument *doc, K2Vector< PMString > &sectionNames, PageNameStyle style)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Utilities related to sections.

Member Function Documentation

virtual void ISectionUtils::GetSectionNames (IDocumentdoc,
K2Vector< PMString > & sectionNames,
PageNameStyle style 
)
pure virtual

Return the section and/or alternate layout names for the document (in the order they appear in the document, i.e. QueryOrderedList).

Parameters
doc,thedocument to get the names for
sectionNames,aK2Vector of strings that will be the OUT paramater
style,oneof a PageNameStyle enum to return sections, alternate layouts, or both.
See Also
ISectionList::QueryOrderedList
WidgetDefs.h, use one of the PageNumStyle values: kAlternateLayoutNames, kSectionNames, or kAlternateAndSectionNames
virtual bool16 ISectionUtils::IsLegalAlternateLayoutName (IDocumentdoc,
const PMStringnameToCheck,
const PMStringnameToSkip 
)
pure virtual

IsLegalAlternateLayoutName

Parameters
doc,thedocument
nameToCheck,thename to check for validity
nameToSkip,thename to skip (e.g. the name for the section you are validating). May be kNullString to avoid this check. Return kFalse if name is valid, kFalse if not (e.g. empty or duplicate)
virtual bool16 ISectionUtils::IsPageStartOfSection (const UIDRefpageRef,
int32 * sectionIndex = nil 
)
pure virtual

Is the page UID the starting page of a section? Return the section index if requested.

virtual ErrorCode ISectionUtils::RemoveEmptySection (IDocumentdoc)
pure virtual

INTERNAL USE: Remove an empty sections from the document. This is a section associated with page[0] in the document.