InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITranFxSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 _ITranFxSuite_
25 #define _ITranFxSuite_
26 
27 // Interface includes:
28 #include "IPMUnknown.h"
29 #include "TranFxID.h"
30 
37 class ITranFxSuite : public IPMUnknown
38 {
39  public:
40  enum { kDefaultIID = IID_ITRANFXSUITE };
41 
42  public:
50  typedef enum {eNoValue, eCommonValue, eMixedValue} AttrState;
51 
55  virtual void HasAdornment(AttrState& attrState) const = 0;
56 
61  virtual void HasXOffset(AttrState& attrState, PMReal& value) const = 0;
62 
67  virtual void HasYOffset(AttrState& attrState, PMReal& value) const = 0;
68 
75  virtual void HasUseBlackAsOpaque(AttrState& attrState, bool16& value) const = 0;
76 
83  virtual void HasUseAlpha(AttrState& attrState, bool16& value) const = 0;
84 
91  virtual void HasUseBlur(AttrState& attrState, bool16& value) const = 0;
92 
93  public:
97  virtual bool16 CanApplyAdornment() const = 0;
98 
102  virtual bool16 CanApplyXOffset() const = 0;
103 
107  virtual bool16 CanApplyYOffset() const = 0;
108 
112  virtual bool16 CanApplyUseBlackAsOpaque() const = 0;
113 
117  virtual bool16 CanApplyUseAlpha() const = 0;
118 
122  virtual bool16 CanApplyUseBlur() const = 0;
123 
124  public:
129  virtual ErrorCode ApplyAdornment(const bool16 isAdd) = 0;
130 
135  virtual ErrorCode ApplyXOffset(const PMReal& value) = 0;
136 
141  virtual ErrorCode ApplyYOffset(const PMReal& value) = 0;
142 
154  virtual ErrorCode ApplyUseBlackAsOpaque(const bool16 value) = 0;
155 
160  virtual ErrorCode ApplyUseAlpha(const bool16 value) = 0;
161 
166  virtual ErrorCode ApplyUseBlur(const bool16 value) = 0;
167 };
168 
169 #endif // _ITranFxSuite_
170