InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMargins.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 
24 #ifndef __IMARGINS__
25 #define __IMARGINS__
26 
27 #include "IPMUnknown.h"
28 #include "MasterPageID.h"
29 #include "PMRect.h"
30 #include "SpreadID.h"
31 
33 #define kMixedMargin -1
34 
36 #define kMinMargin 0
37 
43 class IMargins : public IPMUnknown
44 {
45 public:
46  enum { kDefaultIID = IID_IMARGINS };
47 
58  virtual void SetMargins
59  (
60  const PMReal& insideLeft, /* inside (for facing pages case) or left margin */
61  const PMReal& top, /* top margin */
62  const PMReal& outsideRight, /* outside (for facing pages case) or right margin */
63  const PMReal& bottom /* bottom margin */
64  ) = 0;
65 
77  virtual void GetMargins(PMRect *marginRect, bool16 wantMaster = kTrue) = 0;
78 
89  virtual void GetMargins(PMReal* insideLeft, PMReal* top, PMReal* outsideRight, PMReal* bottom, bool16 wantMaster = kTrue) = 0;
90 
98  virtual bool16 MarginsAreValid() = 0;
99 
109  virtual void SetMarginsAreValid(bool16 valid) = 0;
110 };
111 
112 #endif