InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICMSAttributeSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: SusanCL
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 // Defines the interface for a CMS attribute suite to be used in the new selection architecture
24 //
25 //========================================================================================
26 
27 #ifndef __ICMSAttributeSuite__
28 #define __ICMSAttributeSuite__
29 
30 // ----- Interface files
31 #include "IPMUnknown.h"
32 
33 // ----- ID files
34 #include "ColorMgmtID.h"
35 
36 #include "ICMSSettings.h"
37 #include "ICMSItemProfileSource.h"
38 
41 {
42  public:
43  enum { kDefaultIID = IID_ICMSATTRIBUTESUITE };
44 
45  //________________________________________________________________________________________
46  // Accessors
47  //________________________________________________________________________________________
48 
54  virtual int32 GetProfileColorspace () = 0;
55 
61  virtual bool16 GetRenderingIntent (ICMSSettings::renderingIntent&) = 0;
62 
68  virtual bool16 GetCMSState (bool16& onOffstate) = 0;
69 
78  virtual bool16 GetProfileName (PMString&, ICMSItemProfileSource::ProfileSourceType&) = 0;
79 
86  virtual bool16 GetEmbeddedProfileName (PMString&) = 0;
87 
88 
92  virtual bool16 CanApplyCMS () = 0;
93 
96  virtual bool16 CanApplyEmbeddedProfile () = 0;
97 
101  virtual bool16 CanCreateProfileFilter () = 0;
102 
106  virtual bool16 CreateProfileFilter (CMSMgrProfileFilter&) = 0;
107 
108  //________________________________________________________________________________________
109  // Apply attributes
110  //________________________________________________________________________________________
115  virtual ErrorCode ApplyRenderingIntent (const ICMSSettings::renderingIntent&) = 0;
116 
121  virtual ErrorCode ApplyCMSState (const bool16& cmsOnOff) = 0;
122 
126  virtual ErrorCode ApplyEmbeddedProfile (void) = 0;
127 
131  virtual ErrorCode ApplyDocDefaultProfile (void) = 0;
132 
137  virtual ErrorCode ApplyExternalProfile (const PMString&) = 0;
138 
145  virtual bool16 GetEmbeddedReadOnlyProfileName(PMString &name) = 0;
146 
147 };
148 
149 #endif // __ICMSAttributeSuite__