InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISection.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 __ISECTION__
25 #define __ISECTION__
26 
28 #define kMinPageNumber 1
29 
31 #define kMaxPageNumber 999999
32 
33 
34 #ifndef __ODFRC__
35 
36 #include "IPMUnknown.h"
37 #include "SectionID.h"
38 
39 class PMString;
40 class SectionStyle;
41 
48 class ISection : public IPMUnknown
49 {
50 public:
51  enum { kDefaultIID = IID_ISECTION };
52 
65  virtual void Set(PMString& sectionName,
66  PMString& sectionMarker,
67  UID startPageUID,
68  int32 startPageNumber,
69  ClassID styleProviderClassID,
70  bool16 bContinueFromPrevSection = kFalse,
71  int32 offsetFromPrevSection = 0) = 0;
72 
76  virtual void SetName(PMString& sectionName) = 0;
77 
81  virtual void SetMarker(PMString& markerName) = 0;
82 
86  virtual void SetStartPageUID(UID startPageUID) = 0;
87 
91  virtual void SetStartPageNumber(int32 startPageNumber) = 0;
92 
100  virtual void SetNonHiddenStartPageNumber(int32 nonHiddenStartPageNumber) = 0 ;
101 
102 
110  virtual void SetStyleInfo(ClassID styleProviderClassID) = 0;
111 
116  virtual void SetContinueFromPrevSection(bool16 bContinueFromPrevSection, int32 offset = 0) = 0;
117 
121  virtual void SetPageNumberIncludeSectionPrefix(bool16 includeSectionPrefix) = 0;
122 
126  virtual void SetNamedLayout(const PMString& namedLayout) = 0;
127 
131  virtual void GetName(PMString* pName) = 0;
132 
136  virtual void GetMarker(PMString* pMarker) = 0;
137 
141  virtual UID GetStartPageUID() = 0;
142 
146  virtual UID GetNonHiddenStartPageUID() = 0;
147 
153  virtual int32 GetStartPageNumber() = 0;
154 
160  virtual int32 GetNonHiddenStartPageNumber() = 0;
161 
166  virtual void GetStyleInfo(ClassID* styleProviderClassID) = 0;
167 
171  virtual bool16 IsDefaultSection() = 0;
172 
176  virtual bool16 GetContinueFromPrevSection() = 0;
177 
181  virtual int32 GetOffsetFromPrevSection() = 0;
182 
186  virtual bool16 GetPageNumberIncludeSectionPrefix() = 0;
187 
193  virtual int32 GetNumPages(const bool16 bRequireNamedLayout = kFalse) = 0;
194 
198  virtual void GetNamedLayout(PMString* pNamedLayout) = 0;
199 
201  typedef enum
202  {
203  kInvalidPaginationOption = -1,
207 
213 
217  virtual void SetPaginationOption(PaginationOption option) = 0;
218 
222  virtual UID GetPaginationMaster() = 0;
223 
227  virtual void SetPaginationMaster(UID masterUID) = 0;
228 
232  virtual void RecalculateNonHiddenPageUID() = 0;
233 };
234 
235 #endif // __ODFRC__
236 #endif // __ISECTION__