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

Public Types | |
| enum | { kDefaultIID = IID_ISECTION } |
| enum | PaginationOption { kInvalidPaginationOption = -1, kAutomatic = 0, kFromLastPage } |
Public Member Functions | |
| virtual void | Set (PMString §ionName, PMString §ionMarker, UID startPageUID, int32 startPageNumber, ClassID styleProviderClassID, bool16 bContinueFromPrevSection=kFalse, int32 offsetFromPrevSection=0)=0 |
| virtual void | SetName (PMString §ionName)=0 |
| virtual void | SetMarker (PMString &markerName)=0 |
| virtual void | SetStartPageUID (UID startPageUID)=0 |
| virtual void | SetStartPageNumber (int32 startPageNumber)=0 |
| virtual void | SetNonHiddenStartPageNumber (int32 nonHiddenStartPageNumber)=0 |
| virtual void | SetStyleInfo (ClassID styleProviderClassID)=0 |
| virtual void | SetContinueFromPrevSection (bool16 bContinueFromPrevSection, int32 offset=0)=0 |
| virtual void | SetPageNumberIncludeSectionPrefix (bool16 includeSectionPrefix)=0 |
| virtual void | SetNamedLayout (const PMString &namedLayout)=0 |
| virtual void | GetName (PMString *pName)=0 |
| virtual void | GetMarker (PMString *pMarker)=0 |
| virtual UID | GetStartPageUID ()=0 |
| virtual UID | GetNonHiddenStartPageUID ()=0 |
| virtual int32 | GetStartPageNumber ()=0 |
| virtual int32 | GetNonHiddenStartPageNumber ()=0 |
| virtual void | GetStyleInfo (ClassID *styleProviderClassID)=0 |
| virtual bool16 | IsDefaultSection ()=0 |
| virtual bool16 | GetContinueFromPrevSection ()=0 |
| virtual int32 | GetOffsetFromPrevSection ()=0 |
| virtual bool16 | GetPageNumberIncludeSectionPrefix ()=0 |
| virtual int32 | GetNumPages (const bool16 bRequireNamedLayout=kFalse)=0 |
| virtual void | GetNamedLayout (PMString *pNamedLayout)=0 |
| virtual PaginationOption | GetPaginationOption ()=0 |
| virtual void | SetPaginationOption (PaginationOption option)=0 |
| virtual UID | GetPaginationMaster ()=0 |
| virtual void | SetPaginationMaster (UID masterUID)=0 |
| virtual void | RecalculateNonHiddenPageUID ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Abstract interface for describing a section. A section is an object, always owned by a page in a document, that is used for page numbering and page shuffling purposes.
| pure virtual |
Is the page number to continue from the last page number of the previous section?
| pure virtual |
Returns the section marker. Used when section marker is inserted on page.
| pMarker |
| pure virtual |
Return the name (prefix) of the section. Used in page number specification.
| pName |
| pure virtual |
Return the layout name for this section, maybe be kNullString.
| pNamedLayout |
| pure virtual |
returns the first non hidden page number of the section(non hidden pages till prev sections). If page numbering is set to continue from previous section, returns the correct page number by looking back in section list.
| pure virtual |
Returns UID of first non hidden page in the section, kInvalidUID for the default section of the document (on page 1).
| pure virtual |
Return the number of pages in this section. All sections have at least 1 page.
| bRequireNamedLayout | - if kTrue, number of pages will be all within the same named layout, which could span several non-named sections. kFalse means number of pages until next section. |
| pure virtual |
Return the offset value for numbering from previous section. Used when GetContinueFromPrevSection is kTrue.
| pure virtual |
Does the page number have the section prefix included in it?
| pure virtual |
Return the master to use when pages are added doing HTML5 pagination.
| pure virtual |
Return the pagination option for adding and removing pages used when doing HTML5 pagination.
| pure virtual |
returns the first page number of the section. If page numbering is set to continue from previous section, returns the correct page number by looking back in section list.
| pure virtual |
Returns UID of first page in the section, kInvalidUID for the default section of the document (on page 1).
| pure virtual |
Returns info about page numbering style (Roman, numberic, etc.)
| styleProviderClassID |
| pure virtual |
Is this the default section? default section cannot be deleted,
| pure virtual |
(For Internal Use Only) Recalculate the non hidden start page UID of the section
| pure virtual |
Set all the attributes of a section.
| sectionName | a PMString reference to the name of the new section |
| sectionMarker | a PMString reference to the section marker of the new section |
| startPageUID | a UID of the page to associate this section with. |
| startPageNumber | the starting page number of the section |
| styleProviderClassID | the class id for the page numbering style |
| bContinueFromPrevSection | the section numbering to continue or not from previous section. |
| offsetFromPrevSection | offset from previous section for page numbering |
| pure virtual |
Set the section numbering to continue from previous section.
| bContinueFromPrevSection | kTrue or kFalse |
| offset | int32 value |
| pure virtual |
Set the name of the section marker, can be used on the page as a special character, kTextChar_SectionName.
| markerName | the name of the marker. |
| pure virtual |
Set the name of the section (the prefix). May be empty.
| sectionName | the name of the section. |
| pure virtual |
Set the name of a named layout. May be empty.
| namedLayout | the name for the named layout. |
| pure virtual |
(For Internal Use Only) Set the non hidden starting page number of the section. Ranges from kMinPageNumber to kMaxPageNumber. The non-hidden starting page number is based on the setting that determines whether the section's page numbering continues from the previous section.
| nonHiddenStartPageNumber |
| pure virtual |
Whether the section prefix (name) should be used when making page numbers for the section.
| includeSectionPrefix |
| pure virtual |
Set the master page to use when pages are added when doing HTML5 pagination.
| UID,the | UID of a specific master spread, or kInvalidUID to automatically apply a master page. |
| pure virtual |
Set the pagination option for how pages are added and removed when doing HTML5 pagination.
| PaginationOption,one | of the values from this enum |
| pure virtual |
Set the starting page number of the section. Ranges from kMinPageNumber to kMaxPageNumber.
| startPageNumber |
| pure virtual |
The starting page UID for this section. kInvalidUID is assigned to the section on first page of document.
| startPageUID |
| pure virtual |
Set the class id for the page numbering style. This is the class id of the boss with a INumberConverter.h implementation. kArabicPageNumberingStyleServiceBoss is the default.
| styleProviderClassID |