InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGradientFill.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Thanh Nguyen
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 // Defines the gradient fill interface for objects that support being filled.
24 //
25 //========================================================================================
26 
27 #ifndef __IGradientFill__
28 #define __IGradientFill__
29 
30 #include "IPMUnknown.h"
31 #include "IColorData.h"
32 #include "K2Vector.h"
33 #include "GradientFillID.h"
34 #include "GraphicTypes.h"
35 
43 class IGradientFill : public IPMUnknown
44 {
45 public:
46  enum { kDefaultIID = IID_IGRADIENTFILL };
47 
48 public:
49 
54  virtual void SetGradientFillType (const GradientType& gradType) = 0;
58  virtual void SetNumberOfStop(int16 gradColorNum) = 0;
66  virtual void SetNthGradientColorUID(int16 index, UID colorUID) = 0;
71  virtual void SetNthStopPosition(int16 index, PMReal boundValue) = 0;
77  virtual void SetNthGradientMidPoint(int16 index, PMReal midPoint) = 0;
78 
83  virtual void SetNthMidPointRelativeLocation(int16 index, PMReal value) = 0;
84 
92  virtual void InsertGradientColorUID (int16 index, UID colorUID) = 0;
93 
97  virtual void RemoveNthGradientColorUID (int16 index) = 0;
98 
101  virtual void ClearAll() = 0;
102 
107  virtual void QueryColorData(K2Vector<IColorData*>* colorDataList) = 0;
112  virtual IColorData* CreateNthColorData(int16 at) const = 0;
117  virtual UID GetNthGradientColorUID(int16 index) const = 0;
122  virtual GradientType GetGradientFillType() const = 0;
126  virtual int16 GetNumberOfStop() const = 0;
131  virtual PMReal GetNthStopPosition(int16 index) const = 0;
136  virtual PMReal GetNthGradientMidPoint(int16 index) const = 0;
141  virtual PMReal GetNthMidPointRelativeLocation(int16 index) const = 0;
142 
147  virtual bool16 Equals( IGradientFill* pMatch ) const = 0;
148 
154  virtual IDataBase* GetDataBase (void) = 0;
155 };
156 
157 #endif // __IGradientFill__
158 
159 
160 
161 
162 
163 
164