InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITableAttrGradient.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jesse Jones
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 __ITableAttrGradient__
25 #define __ITableAttrGradient__
26 
27 #include "IPMUnknown.h"
28 #include "PMPoint.h"
29 #include "TablesID.h"
30 #include "PMRect.h"
31 
32 const PMRect kUnitArea(0.0, 0.0, 1.0, 1.0);
38 
39 public:
40  enum {kDefaultIID = IID_ITABLEATTRGRADIENT};
41 
52  virtual PMPoint GetStartPt(const PMRect& area = kUnitArea) const = 0;
53 
64  virtual void SetStartPt(const PMPoint& value, const PMRect& area = kUnitArea) = 0;
65 
78  virtual PMReal GetAngle(const PMRect& area = kUnitArea) const = 0;
79 
86  virtual PMReal GetLength(const PMRect& area = kUnitArea) const = 0;
87 
95  virtual void SetEndPt(const PMReal& length, const PMReal& angle, const PMRect& area = kUnitArea) = 0;
96 
106  virtual PMReal GetHiliteAngle(const PMRect& area = kUnitArea) const = 0;
107 
114  virtual PMReal GetHiliteLength(const PMRect& area = kUnitArea) const = 0;
115 
123  virtual void SetHilite(const PMReal& length, const PMReal& angle, const PMRect& area = kUnitArea) = 0;
124 
131  virtual bool16 IsEqual(const ITableAttrGradient* rhs) const = 0;
132 
133 
142  virtual void SetAngle(const PMReal& angle) = 0;
143 
151  virtual void SetLength(const PMReal& length) = 0;
152 
153 };
154 
155 #endif