InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IUIColorSpec.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Lin Xia
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 __IUIColorSpec_h__
25 #define __IUIColorSpec_h__
26 
27 #include "IPMUnknown.h"
28 #include "widgetid.h"
29 
30 class RealAGMColor;
31 //========================================================================================
32 // CLASS IUIColorSpec
33 //========================================================================================
34 
35 class IUIColorSpec : public IPMUnknown
36 {
37 public:
38  enum { kDefaultIID = IID_IUICOLORSPEC };
39  // Get and Set the color ID. This is an ID that can be used to look up the
40  // corresponding interface color in InterfaceColorDefines.h.
41 
43  // TEXT COLOR
47  virtual void SetTextColorID(const int32& interfaceColorId) = 0;
48 
52  virtual void SetTextColorAGM(const RealAGMColor &newColor) = 0;
53 
57  virtual int32 GetTextColorID() const = 0;
58 
62  virtual RealAGMColor GetTextColorAGM() const = 0;
63 
67  virtual void SetTextHiliteColorID(const int32& interfaceColorId) = 0;
68 
72  virtual void SetTextHiliteColorAGM(const RealAGMColor &newColor) = 0;
73 
77  virtual int32 GetTextHiliteColorID() const = 0;
78 
82  virtual RealAGMColor GetTextHiliteColorAGM() const = 0;
83 
84 
86  // BACKGROUND COLOR
90  virtual void SetBackgroundColorID(const int32& interfaceColorId) = 0;
91 
95  virtual void SetTextBackgroundColorAGM(const RealAGMColor &newColor) = 0;
96 
100  virtual int32 GetBackgroundColorID() const = 0;
101 
105  virtual RealAGMColor GetTextBackgroundColorAGM() const = 0;
106 
110  virtual void SetBackgroundHiliteColorID(const int32& interfaceColorId) = 0;
111 
115  virtual void SetTextBackgroundHiliteColorAGM(const RealAGMColor &newColor) = 0;
116 
120  virtual int32 GetBackgroundHiliteColorID() const = 0;
121 
125  virtual RealAGMColor GetTextBackgroundHiliteColorAGM() const = 0;
126 };
127 
128 #endif // __IUIColorSpec_h__