InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICMSSettings.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: fhaberma
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 __ICMSSettings__
25 #define __ICMSSettings__
26 
27 #if PRAGMA_ONCE
28 #endif
29 
30 #include "IPMUnknown.h"
31 #include "ColorMgmtID.h"
32 
33 class ICMSSettings : public IPMUnknown
34 {
35 public:
36  enum { kDefaultIID = IID_ICMSSETTINGS };
37 
38  enum renderingIntent
39  {
40  kImage = 0, // a.k.a. Perceptual
41  kGraphic, // a.k.a. Saturation
42  kRelative,
43  kAbsolute,
44  kOther, // Generally an invalid state
45 
46  kUseCSFImageRI = 10, // Points to current CSF (global) image RI
47  kUseCSFVectorRI, // Points to current CSF (global) vector/solid RI
48  kUseCSFPostBlendRI, // Points to current CSF (global) postblend RI
49 
50  kUseDocImageRI = 20, // Points to current document image RI
51  kUseDocVectorRI, // Points to current document vector/solid RI
52  kUseDocPostBlendRI, // Points to current document postblend RI
53 
54  kUseGStateRI = 30 // Points to current port's gstate RI, which is by default the
55  // document vector RI and controlled dynamically by
56  // IGraphicsPort::SetRenderingIntent.
57  };
58 
59  virtual bool16 IsCMSOn() const = 0;
60  //Returns whether CMS is turned on for this document or item
61  virtual void SetCMSOn(bool16 isOn)=0;
62  //Sets whether CMS is turned on for this document or item
63 
64  virtual void SetRenderingIntent(renderingIntent intent = kImage) = 0;
65  //Sets the rendering intent for this item or document. Rendering intent is used when converting out-of-gamut colors
66  virtual renderingIntent GetRenderingIntent() const = 0;
67  //Returns the rendering intent for this item or document.
68 
69 #ifdef DEBUG
70  virtual void DumpToDebugWindow() = 0;
71 #endif
72 
73 };
74 
75 #endif // __ICMSSettings__
76 
77 // End, ICMSSettings.h.
78