InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILayoutObject.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Shawn Sheridan
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: All information contained herein is, and remains
20 // the property of Adobe Systems Incorporated and its suppliers,
21 // if any. The intellectual and technical concepts contained
22 // herein are proprietary to Adobe Systems Incorporated and its
23 // suppliers and may be covered by U.S. and Foreign Patents,
24 // patents in process, and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 #ifndef __ILayoutObject__
31 #define __ILayoutObject__
32 
33 #include "SpreadID.h"
34 #include "IPMUnknown.h"
35 
36 
43 class ILayoutObject : public IPMUnknown
44 {
45 public:
46  enum { kDefaultIID = IID_ILAYOUTOBJECT };
47 
63  enum LayoutPolicy {
64  kPreserveLayoutPolicy = -1, // Means leave unchanged
65  kNoLayoutPolicy = 0, // Off
66  kRecenterLayoutPolicy, // Re-center
67  kRepositionLayoutPolicy, // Object-based
68  kScaleLayoutPolicy, // Scale
69  kGuideSliceLayoutPolicy, // Guide-based
70 // kInterpolationLayoutPolicy,
71  kUseMasterLayoutPolicy // Controlled by Master
72  };
73 
76 
80  virtual LayoutPolicy GetLayoutPolicy() const = 0;
81 
85  virtual void SetLayoutPolicy( LayoutPolicy policy) = 0;
86 };
87 
88 DECLARE_BASE_TYPE(ILayoutObject::LayoutPolicy);
89 
90 
91 #endif // __ILayoutObject__