InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IXPPreferences.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Matt Phillips
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 __IXPPreferences__
25 #define __IXPPreferences__
26 
27 #include "XPID.h" // for IID_IXPSETPREFERENCESCMDDATA
28 #include "IPMUnknown.h"
29 #include "ICMSSettings.h" // for renderingIntent
30 
34 class IXPPreferences : public IPMUnknown
35 {
36 public:
37  enum { kDefaultIID = IID_IXPSETPREFERENCESCMDDATA };
38 
39  // Blend Device (that is, which colorspace/profile is used for blending)
40  enum BlendDevice
41  {
42  kInvalid = 0,
43 
44  kDocumentDefault, // only applies in flattener settings, not prefs
45 
46  kDocumentRGB,
47  kDocumentCMYK
48  };
49  virtual BlendDevice GetBlendDevice() const = 0;
50  virtual void SetBlendDevice(BlendDevice dev) = 0;
51 
52  // The resolution used for transparency effects on screen. Default is 72dpi.
53  virtual PMReal GetDisplayEffectDPI() const = 0;
54  virtual void SetDisplayEffectDPI(PMReal res) = 0;
55 
56  virtual ICMSSettings::renderingIntent GetBlendRenderingIntent() const = 0;
57  virtual void SetBlendRenderingIntent(ICMSSettings::renderingIntent intent) = 0;
58 
64  virtual PMReal GetGlobalLightAngle() const = 0;
65 
71  virtual void SetGlobalLightAngle(const PMReal& angle) = 0;
72 
78  virtual PMReal GetGlobalLightAltitude() const = 0;
79 
85  virtual void SetGlobalLightAltitude(const PMReal& altitude) = 0;
86 
87 
88 };
89 
90 #endif