InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextWrapFacade.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: David Stephens
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 __ITextWrapFacade__
25 #define __ITextWrapFacade__
26 
27 // ----- Interfaces -----
28 
29 #include "IDocumentLayer.h"
30 #include "IPMUnknown.h"
31 #include "ISpread.h"
32 #include "ISpreadList.h"
33 #include "IStandOff.h"
34 #include "IStandOffContourWrapSettings.h"
35 
36 // ----- Utility files -----
37 
38 #include "Utils.h"
39 
40 // ----- ID.h files -----
41 
42 #include "StandOffID.h"
43 
44 namespace Facade
45 {
52  class ITextWrapFacade : public IPMUnknown
53  {
54  public:
55 
56  enum { kDefaultIID = IID_ITEXTWRAPFACADE };
57  enum { kUnchanged = 0xFFFF };
58  typedef enum {
59  kDoNotIgnore = 0,
60  kIgnore = 1,
61  kLeaveUnchanged
62  } IgnoreEnum;
63 
69  virtual IStandOff::mode GetMode(const UIDRef& pageItem) const = 0;
70 
76  virtual bool32 GetUserModified(const UIDRef& pageItem) const = 0;
77 
90  virtual ErrorCode SetMode( const UIDList& pageItems, IStandOff::mode mode,
91  bool16 setUserModified = kFalse,
92  bool16 doAutoSelect = kFalse ) const = 0;
93 
94 
118  virtual ErrorCode SetContourWrapSettings( const UIDList& imageItems, IStandOffContourWrapSettings::ContourWrapType contourType,
119  int16 pathIndex,
120  int16 alphaIndex,
121  PMReal tolerance,
122  uint8 threshhold,
123  bool8 allowHoles ) const = 0;
124 
139  virtual ErrorCode GetContourWrapSettings( const UIDRef& imageItem, IStandOffContourWrapSettings::ContourWrapType* contourTypePtr,
140  int16* pathIndexPtr = nil,
141  int16* alphaIndexPtr = nil,
142  PMReal* tolerancePtr = nil,
143  uint8* threshholdPtr = nil,
144  bool8* allowHolesPtr = nil ) const = 0;
145 
152  virtual ErrorCode SetInvert(const UIDList& textWrapItems, bool8 bInvert) const = 0;
153 
159  virtual ErrorCode GetInvert(const UIDRef& textWrapItem, bool8& bInvert) const = 0;
160 
172  virtual ErrorCode SetMargins(const UIDList& textWrapItems, const PMReal& topMargin,
173  const PMReal& leftMargin,
174  const PMReal& bottomMargin,
175  const PMReal& rightMargin) const = 0;
176 
189  virtual ErrorCode GetMargins(const UIDRef& textWrapItem, PMReal& topMargin,
190  PMReal& leftMargin,
191  PMReal& bottomMargin,
192  PMReal& rightMargin,
193  bool8& singleDistance) const = 0;
194 
201  virtual ErrorCode SetActiveFromMaster(const UIDList& textWrapItems, bool16 bActive) const = 0;
202 
208  virtual ErrorCode GetActiveFromMaster(const UIDRef& textWrapItem, bool16& bActive) const = 0;
209 
217  virtual ErrorCode SetSide(const UIDList& textWrapItems, IStandOff::side Side) const = 0;
218 
224  virtual ErrorCode GetSide(const UIDRef& textWrapItem, IStandOff::side& Side) const = 0;
225 
233  virtual ErrorCode SetIgnoreWrap(const UIDList& ignoreWrapItems, bool8 bIgnore) const = 0;
234 
241  virtual ErrorCode GetIgnoreWrap(const UIDRef& ignoreWrapItem, bool8& ignore) const = 0;
242 
251  virtual ErrorCode GetSkipByLeadingHeight(const UIDRef& workspace, bool16& skipByLeading) const = 0;
252 
266  virtual ErrorCode SetSkipByLeadingHeight(const UIDRef& workspace, bool16 skipByLeading) const = 0;
267 
276  virtual ErrorCode GetZOrderBasedTextWrap(const UIDRef& workspace, bool16& zOrder) const = 0;
277 
289  virtual ErrorCode SetZOrderBasedTextWrap(const UIDRef& workspace, bool16 useZOrder) const = 0;
290 
303  virtual void CopyTextWrap(const UIDRef& srcPageItem, const UIDRef& dstPageItem) const = 0;
304 
313  virtual ErrorCode GetModifyIndentsAroundTextWrap(const UIDRef& workspace, bool16& modifyIndent) const = 0;
314 
326  virtual ErrorCode SetModifyIndentsAroundTextWrap(const UIDRef& workspace, bool16 modifyIndent) const = 0;
327 
328  };
329 }
330 
331 #endif // __ITextWrapFacade__