InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGeneralXMLPreferences.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Ryan Gano
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 // This interface is used for action components to update the state of their actions.
24 // It is NOT a standard boss interface - it does not inherit from IPMUnknown!
25 //
26 //========================================================================================
27 
28 #ifndef __IGeneralXMLPreferences__
29 #define __IGeneralXMLPreferences__
30 
31 #include "XMLID.h"
32 
38 {
39 public:
40  enum { kDefaultIID = IID_IGENERALXMLPREFERENCES };
41 
46  typedef enum {
65  } kElementType;
66 
72  virtual ErrorCode Set(IGeneralXMLPreferences *data) = 0;
73 
80  virtual void SetData(IGeneralXMLPreferences::kElementType which, const WideString &name, UID color) = 0;
81 
88  virtual void GetData(IGeneralXMLPreferences::kElementType which, WideString *name, UID *color) const = 0;
89 
96 
102  virtual UID GetColor(IGeneralXMLPreferences::kElementType which) const = 0;
103 
113 
124  virtual int32 GetDefaultColor(IGeneralXMLPreferences::kElementType which) const = 0;
130  virtual bool16 operator==(const IGeneralXMLPreferences &o) = 0;
131 };
132 
133 #endif // __IIGeneralXMLPreferences__