InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPagesPanelPrefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Paul Sorrick
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 __IPagesPanelPrefs__
25 #define __IPagesPanelPrefs__
26 
27 #include "IPMUnknown.h"
28 #include "PagesPanelID.h"
29 
30 class IGeometry;
31 class ISpread;
32 class IControlView;
37 {
38 public:
39 
41  enum
42  {
47  kExtraSmall = kExtraSmallPageIconSize,
50  kSmall = kSmallPageIconSize,
53  kMedium = kMediumPageIconSize,
56  kLarge = kLargePageIconSize,
59  kGradeAJumbo = kExtraLargePageIconSize,
60  kExtraExtraLargePageIconSize = 5
61  };
62  typedef int32 IconSize;
63 
66  typedef enum
67  {
68  kInvalidView = -1,
72  } ViewSetting;
73 
77  virtual void SetIconSize(IconSize iconSize) = 0;
78 
82  virtual IconSize GetLayoutIconSize() = 0;
83 
88  virtual void SetViewSetting(ViewSetting setting) = 0;
89 
93  virtual ViewSetting GetViewSetting() = 0;
94 
98  virtual void SetMasterIconSize(IconSize iconSize) = 0;
99 
103  virtual IconSize GetMasterIconSize() = 0;
104 
108  virtual void SetMasterVerticalView(bool16 on) = 0;
109 
113  virtual bool16 GetMasterVerticalView() = 0;
114 
118  virtual void SetPagesFixedSize(bool16 on) = 0;
119 
123  virtual bool16 GetPagesFixedSize() = 0;
124 
128  virtual void SetMasterFixedSize(bool16 on) = 0;
129 
133  virtual bool16 GetMasterFixedSize() = 0;
134 
138  virtual void SetPagesOnTop(bool16 on) = 0;
139 
143  virtual bool16 GetPagesOnTop() = 0;
144 
148  virtual void SetPagesThumbnails(bool16 on) = 0;
149 
153  virtual bool16 GetPagesThumbnails() = 0;
154 
158  virtual void SetMastersThumbnails(bool16 on) = 0;
159 
163  virtual bool16 GetMastersThumbnails() = 0;
164 
168  virtual void SetShowTransparencyIcon(bool16 on) = 0;
169 
174  virtual bool16 GetShowTransparencyIcon() = 0;
175 
179  virtual void SetShowTransitionsIcon(bool16 on) = 0;
180 
184  virtual bool16 GetShowTransitionsIcon() = 0;
185 
189  virtual void SetShowRotationIcon(bool16 on) = 0;
190 
194  virtual bool16 GetShowRotationIcon() = 0;
195 
196 
197 
198 
199 
200 
202 //The following member functions are for internal use only
204 
205 
206  // The following methods define the look of the pages panel - they are not backed by saved
207  // data, they return values that are a function of the above get/set methods.
208 
214  virtual int32 GetLayoutVerticalInterSpreadSpace() = 0;
215  virtual int32 GetMasterVerticalInterSpreadSpace() = 0;
216 
222  virtual int32 GetHorizontalInterSpreadSpace( IconSize iconSize) = 0;
223 
233  virtual int32 GetMasterPageRowHeight() = 0;
234  virtual int32 GetLayoutPageRowHeight() = 0;
235 
244  virtual int32 GetMasterPageTabWidth( IGeometry* thePage) = 0;
245  virtual int32 GetLayoutPageTabWidth( IGeometry* thePage) = 0;
246 
256  virtual int32 GetMasterPageTabHeight() = 0;
257  virtual int32 GetLayoutPageTabHeight() = 0;
258 
259 
264  virtual int32 GetCornerFoldSize(IconSize iconSize) = 0;
265 
271  virtual int32 GetSpreadBorderWidth(IconSize iconSize, bool16 bVerticalMode) = 0;
272 
280  virtual int32 GetSpreadBorderHeight(IconSize iconSize, int32 *spaceAbove /*= 0*/, int32 *spaceBelow /*= 0*/) = 0;
281 
287  virtual int32 GetSpreadTextOffset(IconSize iconSize) = 0;
288 
294  virtual int32 GetSpreadTextSize( IconSize iconSize) = 0;
295 
301  virtual int32 GetSectionMarkerSize(IconSize iconSize, bool16 bVerticalMode /*= kFalse*/) = 0;
302 
303 
310  virtual int32 GetPanelBorder(IconSize iconSize, int32 *spaceAtTop /*= 0*/, int32 *spaceAtBottom /*= 0*/) = 0;
311 
312 
318  virtual PMPoint GetColorLabelSize(IconSize iconSize) = 0;
319 
320 
321 
322 };
323 
324 #endif