InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAdaptiveLayoutPrefsCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Sachin Singhal
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 adaptive layout preference command.
24 //
25 //========================================================================================
26 
27 #ifndef __IAdaptiveLayoutPrefsCmdData__
28 #define __IAdaptiveLayoutPrefsCmdData__
29 
30 #include "IPMUnknown.h"
31 #include "AutoLayoutID.h"
32 
36 {
37 public:
49  virtual void Set( const UIDRef& doc,
50  bool16 bAdaptiveLayoutOn,
51  bool16 bScaleLockedPageItems,
52  bool16 bFontSizeandLeadingOn,
53  bool16 bFontSizeLimitOn,
54  PMReal rFontMinimunSize,
55  PMReal rFontMaximumSize,
56  bool16 bAutoAdjustMargin) = 0;
57 
61  virtual void SetAdaptiveLayoutOn(bool16 val) = 0;
62 
66  virtual void SetScaleLockedPageItems(bool16 val) = 0;
67 
71  virtual const UIDRef& GetDocument() const = 0;
72 
76  virtual const bool16 GetAdaptiveLayoutOn() const = 0;
77 
82  virtual const bool16 GetScaleLockedPageItems() const = 0;
83 
87  virtual bool16 IsFontSizeandLeadingOn()const = 0;
88 
92  virtual bool16 IsFontSizeLimitOn()const = 0;
93 
97  virtual PMReal GetMinimumFontSize()const = 0;
98 
102  virtual PMReal GetMaximumFontSize()const = 0;
103 
107  virtual void SetFontSizeandLeadingOn(bool16 val) = 0;
108 
112  virtual void SetFontSizeLimitOn(bool16 val) = 0;
113 
117  virtual void SetMinimumFontSize(PMReal val) = 0;
118 
122  virtual void SetMaximumFontSize(PMReal val)= 0;
123 
127  virtual void SetDocument(UIDRef docRef) = 0;
128 
132  virtual void SetAutoAdjustMargins(bool16 val) = 0;
133 
137  virtual bool16 IsAutoAdjustMarginsOn() = 0;
138 };
139 
140 #endif // __IDocSetupCmdData__