InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITrapStyle.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: James Jardee-Borquist
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 __ITrapStyle__
25 #define __ITrapStyle__
26 
27 #if PRAGMA_ONCE
28 #endif
29 
30 #ifndef __ODFRC__ // when used for core resource compilation, provide just the parameter range constants
31 
32 #include "IPMUnknown.h"
33 #include "PrintID.h"
34 
35 //_______________________________________________________________________________________
36 // Default value for each of the Trap style properties are defined below.
37 //_______________________________________________________________________________________
38 
39 //_______________________________________________________________________________________
40 // CLASS ITrapStyle
41 //_______________________________________________________________________________________
42 
45 class ITrapStyle : public IPMUnknown
46 {
47 public:
48  enum { kDefaultIID = IID_ITRAPSTYLE };
49 
53  virtual void SetName(const PMString &inName) = 0;
54  virtual PMString GetName() const = 0;
57 
58 
59  enum {
66  };
67 
71  virtual void SetImg2Obj(int32 inImg2Obj) = 0;
72 
75  virtual int32 GetImg2Obj() const = 0;
76 
77  enum {
84  };
85 
89  virtual void SetImg2Img(int32 inImg2Img) = 0;
90 
93  virtual int32 GetImg2Img() const = 0;
94 
95  enum {
102  };
103 
107  virtual void SetInternalImg(int32 inInternalImg) = 0;
108 
111  virtual int32 GetInternalImg() const = 0;
112 
116  virtual void SetDfltWidth(const PMReal &inDfltWidth/*0.0 to 8.0*/) = 0;
117 
120  virtual PMReal GetDfltWidth() const = 0;
121 
125  virtual void SetBlkWidth(const PMReal &inBlkWidth/*0.0 to 8.0*/) = 0;
126 
129  virtual PMReal GetBlkWidth() const = 0;
130 
134  virtual void SetClrScaling(const PMReal &inClrScaling/*0.0 to 100.0*/) = 0;
135 
138  virtual PMReal GetClrScaling() const = 0;
139 
143  virtual void SetStepTH(const PMReal &inStepTH/*1.0 to 100.0*/) = 0;
144 
147  virtual PMReal GetStepTH() const = 0;
148 
152  virtual void SetBlkColorTH(const PMReal &inBlkColorTH/*0.0 to 100.0*/) = 0;
153 
156  virtual PMReal GetBlkColorTH() const = 0;
157 
161  virtual void SetBlkDnstyTH(const PMReal &inBlkDnstyTH/*0.001 to 12.0*/) = 0;
162 
165  virtual PMReal GetBlkDnstyTH() const = 0;
166 
170  virtual void SetSlidingTH(const PMReal &inSlidingTH/*0.0 to 100.0*/) = 0;
171 
174  virtual PMReal GetSlidingTH() const = 0;
175 
178  enum {
191  };
192 
196  virtual void SetImgPlacement(int32 inImgPlacement) = 0;
197 
200  virtual int32 GetImgPlacement() const = 0;
201 
202  enum {
209  };
210 
214  virtual void SetImagemasks(int32 inImagemasks) = 0;
215 
218  virtual int32 GetImagemasks() const = 0;
219 
222  enum {
232  };
233 
237  virtual void SetTrapJoinStyle(int32 inTrapJoinStyle) = 0;
238 
241  virtual int32 GetTrapJoinStyle() const = 0;
242 
245  enum {
253  };
254 
258  virtual void SetTrapEndStyle(int32 inTrapEndStyle) = 0;
261  virtual int32 GetTrapEndStyle() const = 0;
262 
266  virtual void CopyData(const ITrapStyle *inTrapStyle) = 0;
267 
270  virtual void Reset2DefaultValue() = 0;
271 
272  enum {
275  kNameFlag = (1 << 0),
278  kImg2ObjFlag = (1 << 1),
281  kInternalImgFlag = (1 << 2),
284  kDfltWidthFlag = (1 << 3),
287  kBlkWidthFlag = (1 << 4),
290  kClrScalingFlag = (1 << 5),
293  kStepTHFlag = (1 << 6),
296  kBlkColorTHFlag = (1 << 7),
299  kBlkDnstyTHFlag = (1 << 8),
302  kSlidingTHFlag = (1 << 9),
305  kImgPlacementFlag = (1 << 10),
308  kImagemasksFlag = (1 << 11),
311  kJoinStyleFlag = (1 << 12),
314  kEndStyleFlag = (1 << 13),
317  kImg2ImgFlag = (1 << 14)
318  };
319 
324  virtual bool16 GetFlag(int32 inFlag) const = 0;
325 };
326 
327 #endif //ODFRC
328 
329 //_______________________________________________________________________________________
330 // Minimum and maximum values allow for each TrapStyle property.
331 // Default values
332 //_______________________________________________________________________________________
335 const PMReal kTrapStyleMinBlackWidth = 0;
338 const PMReal kTrapStyleMaxBlackWidth = 8.0;
341 const PMReal kTrapStyleMinDefaultWidth = 0;
344 const PMReal kTrapStyleMaxDefaultWidth = 8.0;
347 const PMReal kTrapStyleMinStep = 1.0;
350 const PMReal kTrapStyleMaxStep = 100.0;
353 const PMReal kTrapStyleMinBlackColor = 0.0;
356 const PMReal kTrapStyleMaxBlackColor = 100.0;
359 const PMReal kTrapStyleMinBlackDensity = 0.001;
362 const PMReal kTrapStyleMaxBlackDensity = 10.0;
365 const PMReal kTrapStyleMinSlidingTrap = 0.0;
368 const PMReal kTrapStyleMaxSlidingTrap = 100.0;
369 
370 #ifndef __ODFRC__ // when used for core resource compilation, provide just the parameter range constants
371 
374 const PMReal kTrapStyleDefaultBlackWidth = 0.5;
377 const PMReal kTrapStyleDefaultWidth = 0.25;
380 const int32 kTrapStyleDefaultImagePlacement = ITrapStyle::kImgPlacement_Center;
383 const bool16 kTrapSytleDefaultObj2Image = ITrapStyle::kImg2Obj_On;
386 const bool16 kTrapSytleDefaultImage2Image = ITrapStyle::kImg2Img_On;
389 const bool16 kTrapSytleDefaultInternalImage = ITrapStyle::kInternalImg_Off;
392 const bool16 kTrapSytleDefaultImageMask = ITrapStyle::kImagemasks_On;
395 const PMReal kTrapStyleDefaultStep = 10.0;
398 const PMReal kTrapStyleDefaultBlackColor = 100.0;
401 const PMReal kTrapStyleDefaultBlackDensity = 1.60;
404 const PMReal kTrapStyleDefaultSlidingTrap = 70.0;
407 const PMReal kTrapStyleDefaultColorReduction = 1.0;
410 const int32 kTrapStyleDefaultJoinStyle = ITrapStyle::kMiterTrapJoin;
413 const int32 kTrapStyleDefaultEndStyle = ITrapStyle::kMiterTrapEnd;
414 
415 #endif //ODFRC
416 #endif // __ITrapStyle__
417 
418 // End, ITrapStyle.h.