InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPageSetupPrefs.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 __IPageSetupPrefs__
25 #define __IPageSetupPrefs__
26 
27 #include "IPMUnknown.h"
28 #include "PMPageSize.h"
29 #include "SpreadID.h"
30 #include "K2Pair.h"
31 
34 typedef enum
35 {
36  kUnchangedIntent = -1,
37  kPrintIntent = 0,
38  kWebIntent,
39  kMobileIntent,
40 } DocumentIntent;
41 
43 {
44 public:
45  enum { kDefaultIID = IID_IPAGEPREFERENCES } ;
46 
50 
51  // Default page size
52  virtual void SetPageSizePref(const PMPageSize& pageSize) = 0;
53  virtual PMPageSize GetPageSizePref() const = 0;
54 
59  virtual void SetSpreadScale(const K2Pair<PMReal, PMReal>& scale) = 0;
60 
63  virtual PMReal GetSpreadWidthScale() const = 0;
64 
67  virtual PMReal GetSpreadHeightScale() const = 0;
68 
69  // Page orientation
70  virtual void SetWideOrientationPref(bool16 bWide) = 0;
71  virtual bool16 GetWideOrientationPref() const = 0;
72 
73  // Default number of pages
74  virtual void SetNumPagesPref(int32 numPages) = 0;
75  virtual int32 GetNumPagesPref() const = 0;
76 
77  // Default starting page number
78  virtual void SetStartPageNumber(int32 startPageNumber) = 0;
79  virtual int32 GetStartPageNumber() const = 0;
80 
84  virtual void SetIntent(DocumentIntent intent) = 0;
85 
90  virtual DocumentIntent GetIntent() const = 0;
91 
92  // Pages per spread
93  virtual void SetPagesPerSpreadPref(int32 numPagesPerSpread) = 0;
94  virtual int32 GetPagesPerSpreadPref() const = 0;
95 
96  // Is pages per spread fixed, or can more be allowed
97  virtual void SetAlwaysUsePagesPerSpreadPref(bool16 bAlways) = 0;
98  virtual bool16 GetAlwaysUsePagesPerSpreadPref() const = 0;
99 
100  // Right to left page binding
101  virtual void SetPageBindingPref(int32 pageBinding) = 0;
102  virtual int32 GetPageBindingPref() const = 0;
103 
104  // Restart page numbering(Set this option only if the publication
105  // will be part of a book and won't be numbered sequentially.
106  virtual void SetRestartPageNum(bool16 bRestart) = 0;
107  virtual bool16 GetRestartPageNum() const = 0;
108 
112  virtual void SetBleedBoxPref(PMRect offsets) = 0;
113 
117  virtual PMRect GetBleedBoxPref() const = 0;
118 
122  virtual void SetUseUniformBleed(bool16 bUniform) = 0;
123 
126  virtual bool16 GetUseUniformBleed() const = 0;
127 
128 
132  virtual void SetSlugBoxPref(PMRect offsets) = 0;
133 
137  virtual PMRect GetSlugBoxPref() const = 0;
138 
142  virtual void SetUseUniformSlug(bool16 bUniform) = 0;
143 
146  virtual bool16 GetUseUniformSlug() const = 0;
147 
148 };
149 
150 #endif