InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGradientMetaData.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 metadata interface.
24 //
25 //========================================================================================
26 
27 #ifndef __IGradientMetaData__
28 #define __IGradientMetaData__
29 
30 #include "IPMUnknown.h"
31 #include "IColorData.h"
32 
33 #include "GradientFillID.h"
34 
40 {
41 public:
42 
43  enum {kDefaultIID = IID_IGRADIENTMETADATA_OBSOLETE};
44 
45 
46  virtual void SetGradientFillType (const GradientType& gradType) = 0;
47  virtual void SetNumberOfStop(int16 gradColorNum) = 0;
48  virtual void SetNthGradientColorMetaData(int16 index, IColorData* colorData) = 0;
49  virtual void SetNthStopPosition(int16 index, PMReal boundValue) = 0;
50  virtual void SetNthGradientMidPoint(int16 index, PMReal midPoint) = 0;
51 
52  virtual void InsertGradientColorMetaData(int16 index, IColorData* colorData) = 0;
53  virtual void ClearAll() = 0;
54 
55  virtual void GetColorData(K2Vector<IColorData*>* colorDataList) = 0;
56  virtual IColorData* GetNthColorData(int16 at) = 0;
57  virtual GradientType GetGradientFillType() const = 0;
58  virtual int16 GetNumberOfStop() = 0;
59 
60  virtual PMReal GetNthStopPosition(int16 index) const = 0;
61  virtual PMReal GetNthGradientMidPoint(int16 index) const = 0;
62 
63  virtual void RemoveNthColorData(int16 at) = 0;
64 };
65 
66 #endif // __IGradientMetaData__
67 
68 
69 
70 
71 
72 
73