InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IClipSettings.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Dave Stephens
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 // Purpose:
24 // Data interface for IID_ICLIPSETTINGS used to store and obtain the Clipping Path dialog
25 // settings used to create a Clipping Path frame using edge detection algorithms.
26 //
27 //========================================================================================
28 
29 #ifndef __IClipSettings__
30 #define __IClipSettings__
31 
32 #include "IPMUnknown.h"
33 #include "ClippingDlgID.h"
34 
40 class IClipSettings : public IPMUnknown
41 {
42 public:
46  enum { kDefaultIID = IID_ICLIPSETTINGS };
47 
51  typedef enum {
52  kClipNone = 0,
53  kClipEdgeDetection = 1,
54  kClipAlpha = 2,
55  kClipEmbeddedPath = 3,
56  kClipUserPath = 4 // User-edited path
57  } ClipType;
58 
59  enum {
60  kDefaultClipIndex = -1
61  };
62 
66  virtual ClipType GetClipType() const = 0;
67 
71  virtual PMReal GetTolerance() const = 0;
72 
76  virtual PMReal GetInset() const = 0;
77 
81  virtual uint8 GetThreshold() const = 0;
82 
86  virtual uint8 GetInvert() const = 0;
87 
91  virtual uint8 GetUseHighRes() const = 0;
92 
96  virtual uint8 GetAllowHoles() const = 0;
97 
102  virtual void SetClipType(ClipType clipType) = 0;
103 
112  virtual void SetTolerance( PMReal Tolerance) = 0;
113 
118  virtual void SetInset( PMReal Inset) = 0;
119 
124  virtual void SetThreshold(uint8 Threshold) = 0;
125 
130  virtual void SetInvert(bool8 Invert) = 0;
131 
137  virtual void SetUseHighRes(bool8 UseHighRes) = 0;
138 
143  virtual void SetAllowHoles(bool8 AllowHoles) = 0;
144 
151  virtual void SetRestrictToFrame( bool8 yesno ) = 0;
152 
157  virtual bool8 GetRestrictToFrame( void ) const = 0;
158 
159 
165  virtual void SetAlphaIndex( int16 index ) = 0;
166 
171  virtual int16 GetAlphaIndex( void ) const = 0;
172 
182  virtual void SetEmbeddedPathIndex( int16 index ) = 0;
183 
191  virtual int16 GetEmbeddedPathIndex( void ) const = 0;
192 };
193 
194 #endif