InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDocSetupCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Brendan O'Shea
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 // Data interface for document setup commands.
24 // includes : page size
25 // number of pages
26 // number of pages per spread
27 //
28 //========================================================================================
29 
30 #ifndef __IDocSetupCmdData__
31 #define __IDocSetupCmdData__
32 
33 #include "IPMUnknown.h"
34 #include "SpreadID.h"
35 #include "UIDRef.h"
36 #include "PMRect.h"
37 #include "PMReal.h"
38 #include "IPageSetupPrefs.h"
39 #include "K2Pair.h"
40 
41 class IDataBase;
42 
48 {
49 public:
65  virtual void SetDocSetupCmdData( const UIDRef& doc, /* which document to affect */
66  const PMPageSize& newPageSize, /* dimensions of the new page size */
67  int16 newNPages, /* how many pages should exist */
68  int16 newNPagesPerSpread, /* how many pages should be in each spread */
69  bool16 bWide, /* is page tall or wide? */
70  int32 pageBinding, /* do pages read from right to left? */
71  bool16 bRestartPageNum = kFalse) = 0; /* restart page number or not */
72  /* Note: new bleed and slug parms NOT in Set rtn. See below */
73 
80  virtual void SetDocument(const UIDRef& doc) = 0;
81 
88  virtual void SetDocumentPageSize(const PMPageSize& newPageSize) = 0;
89 
96  virtual void SetNPages(const int16 newNPages) = 0;
97 
104  virtual void SetNPagesPerSpread(const int16 newNPagesPerSpread) = 0;
105 
112  virtual void SetPageOrientationIsWide(const bool16 bWide) = 0;
113 
120  virtual void SetPageBinding(const int32 pageBinding) = 0;
121 
128  virtual void SetRestartPageNum(const bool16 bRestartPageNum) = 0;
129 
136  virtual void SetBleedBox(const PMRect& offsets) = 0;
137 
144  virtual void SetUseUniformBleed(bool16 bUniform) = 0;
145 
152  virtual void SetSlugBox(const PMRect& offsets) = 0;
153 
160  virtual void SetUseUniformSlug(bool16 bUniform) = 0;
161 
168  virtual void SetStartPageNumber(int32 startPageNumber) = 0;
169 
174  virtual void SetIntent(DocumentIntent intent) = 0;
175 
181  virtual const UIDRef& GetDocument() const = 0;
182 
188  virtual const PMPageSize& GetDocumentPageSize() const = 0;
189 
195  virtual const int16 GetNPages() const = 0;
196 
202  virtual const int16 GetNPagesPerSpread() const = 0;
203 
209  virtual const bool16 GetPageOrientationIsWide() const = 0;
210 
216  virtual const int32 GetPageBinding() const = 0;
217 
223  virtual const bool16 GetRestartPageNum() const = 0;
224 
230  virtual const PMRect& GetBleedBox() const = 0;
231 
237  virtual const bool16 GetUseUniformBleed() const = 0;
238 
244  virtual const PMRect& GetSlugBox() const = 0;
245 
251  virtual const bool16 GetUseUniformSlug() const = 0;
252 
258  virtual const int32 GetStartPageNumber() const = 0;
259 
265  virtual const DocumentIntent GetIntent() const = 0;
266 
271  virtual void SetSpreadScale(const K2Pair<PMReal, PMReal>& scale) = 0;
272 
275  virtual PMReal GetSpreadWidthScale() const = 0;
276 
279  virtual PMReal GetSpreadHeightScale() const = 0;
280 
281 };
282 
283 
284 
285 
286 #endif // __IDocSetupCmdData__