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

Public Types | |
| enum | { kDefaultIID = IID_ISECTIONLIST } |
| enum | { kAtTheEnd = -1 } |
Public Member Functions | |
| virtual UID | NewSection ()=0 |
| virtual void | InsertSections (const UIDList §ionsToInsert, int32 posForInsert)=0 |
| virtual void | RemoveSections (int32 firstIndex, int32 count)=0 |
| virtual void | MoveSection (int32 from, int32 to)=0 |
| virtual ISection * | QueryNthSection (int32 sectionIndex)=0 |
| virtual UID | GetNthSectionUID (int32 sectionIndex)=0 |
| virtual int32 | GetSectionCount ()=0 |
| virtual int32 | GetSectionIndex (ISection *section)=0 |
| virtual int32 | GetSectionIndex (UID sectionUID)=0 |
| virtual void | GetPageString (UID pageUID, PMString *pPageString, bool16 bIncludeSectionName=kTrue, bool16 bUseIntegerStyle=kTrue, PageNumberType pageNumberType=kDefaultPageType, bool16 bAbbreviate=kTrue, bool16 bIncludePagesOfHiddenSpread=kTrue)=0 |
| virtual void | GenerateNewSectionName (PMString *pName)=0 |
| virtual UIDList * | QueryOrderedList ()=0 |
| virtual int32 | GetPageNumber (UID pageUID, bool16 bIncludePagesOfHiddenSpread=kTrue)=0 |
| virtual UIDList * | GetOrderedList ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This is an interface off the document which contains the list of sections (UIDs) in a given document. This list is persistent. IMPORTANT NOTE: The order of the sections in this list has no implicit meaning. In other words, it is not guaranteed that the sections are kept in order of the relative positions of their start pages within the pub.
| anonymous enum |
enum value for use in InsertSections and MoveSection.
| pure virtual |
Generates a unique section name, of the form "Sec1", "Sec2", .... As of CS4, we no longer use this method by default. So via our UI, sections will not have a name/prefix at all by deafult, so it is possible to have overlapping page numbers if the section doesn't use SetContinueFromPrevSection in ISection
| pName | [IN/OUT] a pointer to the returned name. |
| pure virtual |
Returns the 'sectionIndex' section's UID
| sectionIndex | the index in the list |
| pure virtual |
This call returns a UID list of section in order of the the relative positions of
their start pages within the pub. All sections have at least 1 page in this. See also ISection::GetNumPages. Note: The caller should NOT delete this list when done as it is cached and owned by the implementation of this interface.
| pure virtual |
Return the page number of the specified page, always returns a "real" page number, not an ordinal page number. (useful to determine even/oddness of a page).
| pageUID | the UID of the page to get its page number. |
| bIncludePagesOfHiddenSpread | include hidden pages while calculating page number |
| pure virtual |
Given a page UID, spread UID, masterpage UID, master spread UID, return its string representation.
| pageUID | the UID of a page, spread, master page, or master spread for which you'd like a string description. |
| OUT | pPageString the string to populate with the page numbers. |
| bIncludeSectionName | Include the section name if any with the string |
| bUseIntegerStyle | Use arabic numerals in string, or use the style of this section (e.g. iv for 4) |
| pageNumberType@see | PageNumberType |
| bAbbreviate | For spreadUIDs, use short or long form (e.g. MP or A-Master, or PB or PB: 1) |
| bIncludePagesOfHiddenSpread | - kTrue == Include Hidden Pages while calculating page number string |
| pure virtual |
Return the number of sections in this list (i.e. in the document)
| pure virtual |
| pure virtual |
Given a sections's UID, return the section's index into the section list.
| sectionUID | the UID of the section to look up in the list. |
| pure virtual |
Insert a list of sections at the given index.
| sectionsToInsert | a UIDList reference to the list of sections to move. |
| posForInsert | the int32 position for where to insert. 0 is start of list, kAtEndEnd is the end. |
| pure virtual |
Reorder the section list. Should not be necessary for client code to call this. Move the section at the given index to the a new position in the list. Note that the section is first removed from the list, then inserted at the "to" position. Caller may need to adjust indexes in order to compensate for this behavior. Note that the default section cannot be moved, nor can a section be moved into its position (0).
| from | int32 index of section to move |
| to | int32 index of position to move to |
| pure virtual |
Create a new section in the section list.
| pure virtual |
| pure virtual |
This call returns a UID list of section in order of the the relative positions of their start pages within the pub. All sections have at least 1 page in this. See also ISection::GetNumPages. Note: The caller is responsible for deleting this list when done.
| pure virtual |
Delete 'count' sections, starting at 'firstIndex'.
| firstIndex | int32 the starting index for removal. |
| count | int32 number of sections to remove from the list. |