InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISectionList.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Tommy Donovan
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __ISECTIONLIST__
25 #define __ISECTIONLIST__
26 
27 #include "IPMUnknown.h"
28 #include "IPageList.h"
29 #include "SpreadID.h"
30 #include "SectionID.h"
31 
32 class ISection;
33 class UIDList;
34 class PMString;
35 
46 class ISectionList : public IPMUnknown
47 {
48 public:
49  enum { kDefaultIID = IID_ISECTIONLIST };
50 
53  enum { kAtTheEnd = -1 };
54 
59  virtual UID NewSection() = 0;
60 
66  virtual void InsertSections(const UIDList& sectionsToInsert, int32 posForInsert) = 0;
67 
73  virtual void RemoveSections(int32 firstIndex, int32 count) = 0;
74 
86  virtual void MoveSection(int32 from, int32 to) = 0;
87 
94  virtual ISection * QueryNthSection(int32 sectionIndex) = 0;
95 
100  virtual UID GetNthSectionUID(int32 sectionIndex) = 0;
101 
105  virtual int32 GetSectionCount() = 0;
106 
111  virtual int32 GetSectionIndex(ISection * section) = 0;
112 
117  virtual int32 GetSectionIndex(UID sectionUID) = 0;
118 
129  virtual void GetPageString(UID pageUID, PMString* pPageString,
130  bool16 bIncludeSectionName = kTrue,
131  bool16 bUseIntegerStyle = kTrue,
132  PageNumberType pageNumberType = kDefaultPageType,
133  bool16 bAbbreviate = kTrue,
134  bool16 bIncludePagesOfHiddenSpread = kTrue) = 0;
135 
136 
145  virtual void GenerateNewSectionName(PMString* pName) = 0;
146 
155  virtual UIDList* QueryOrderedList() = 0;
156 
163  virtual int32 GetPageNumber(UID pageUID, bool16 bIncludePagesOfHiddenSpread = kTrue) = 0;
164 
173  virtual UIDList* GetOrderedList() = 0;
174 };
175 
176 
177 #endif // __ISECTIONLIST__
178