InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMeasureToolData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Yeming Liu
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 __IMEASURETOOLDATA__
25 #define __IMEASURETOOLDATA__
26 
27 #include "IPMUnknown.h"
28 
29 #include "MeasureToolID.h"
30 
36 {
37  public:
38  enum { kDefaultIID = IID_IMEASURETOOLDATA};
39 
45  virtual void SetStartPoint(const PMPoint& startPoint) = 0;
46 
52  virtual const PMPoint& GetStartPoint() = 0;
53 
59  virtual void SetEndPoint(const PMPoint& endPoint) = 0;
60 
66  virtual const PMPoint& GetEndPoint() = 0;
67 
73  virtual void SetMiddlePoint(const PMPoint& middlePoint) = 0;
74 
80  virtual const PMPoint& GetMiddlePoint() = 0;
81 
82  // --- Get/Set protractor flag.
83 
89  virtual void SetProtractorFlag(const bool16& isProtractor) = 0;
90 
96  virtual bool16 GetProtractorFlag() = 0;
97 
103  virtual bool16 HasMeasureLine() = 0;
104 
105  // --- Get/Set visibility of the measure line.
112  virtual void SetVisibility(const bool16& isVisible) = 0;
113 
119  virtual bool16 GetVisibility() = 0;
120 };
121 
122 #endif // __IMEASURETOOLDATA__