InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextInset.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
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 // Sets the inset of a drawable pageitem.
24 // See TextInset.cpp, SetTextInsetCmd.cpp, SpreadOverlapManager.cpp
25 //
26 //========================================================================================
27 
28 #ifndef __ITextInset__
29 #define __ITextInset__
30 
31 #include "IPMUnknown.h"
32 #include "PMReal.h"
33 #include "StandOffID.h"
34 
35 class IGeometry;
36 class IStandOff;
37 class PMRect;
38 
42 class ITextInset : public IPMUnknown
43 {
44 public:
45  enum { kDefaultIID = IID_ITEXTINSET };
46 
47  enum InsetFlags
48  {
49  kLeft = 1,
50  kTop = 2,
51  kRight = 4,
52  kBottom = 8
53  };
54 
58  virtual void SetInset(PMReal nInset) = 0;
59 
65  virtual PMReal GetInset() const = 0;
66 
69  virtual bool16 SetRectInset(const PMRect &insetRect) = 0;
70 
73  virtual PMRect GetRectInset() const = 0;
74 
80  virtual PMRect GetEffectiveInset() const = 0;
81 
85  virtual void SetInsetGeometry(UID nInsetGeo) = 0;
86 
91  virtual IGeometry * QueryInsetGeometry() const = 0;
92 
99  virtual bool16 UpdateInsetGeometry(bool16 bDynamic = kFalse) = 0;
105  virtual UID GetInsetGeometry() const = 0;
106 
107 };
108 
109 #endif