InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISmoothPrefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Tashana Landray
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 __ISmoothPrefs__
25 #define __ISmoothPrefs__
26 
27 #include "IPMUnknown.h"
28 #include "SplineID.h"
29 
35 class ISmoothPrefs : public IPMUnknown
36 {
37  public:
38 
39  enum { kDefaultIID = IID_ISMOOTHPREFS };
40 
41 
42  // ---- [mburbidg 7-10-02] Methods that return constants. This is to work around
43  // the fact that you can't declare non-integral constants in a header file.
44  // At one point these were declared as constants in the implementation, but
45  // then they couldn't be accessed outside the plug-in of the implementation.
46 
51  static PMReal GetDefaultSmoothFidelity() { return 2.5; }
52 
57  static PMReal GetDefaultSmoothSmoothness() { return 2.5; }
58 
63  static bool16 GetDefaultSmoothSelected() { return kTrue; }
64 
69  virtual void SetFidelity(const PMReal& fidelity) = 0;
70 
75  virtual PMReal GetFidelity() = 0;
76 
81  virtual void SetSmoothness(const PMReal& smoothness) = 0;
82 
87  virtual PMReal GetSmoothness() = 0;
88 
89  //Whether or not the newly-created spline is selected
90 
95  virtual void SetSelected(const bool16 selected) = 0;
96 
101  virtual bool16 GetSelected() = 0;
102 };
103 
104 #endif