InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IInCopyUIColors.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Kevin Van Wiel
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 // (November 9 2000) IInCopyUIColors2 interface is added in InCopy v1.1 to provide
24 // different shades of a user's chosen Note & Track Changes color for their note versus
25 // their track change hilite. This was necessary in order to be able to see the note
26 // anchors within inserted text without having to hide the track change hilite. This
27 // interface and the corresponding GetNoteColor() and GetTrackChangeColor() methods
28 // should be used instead of the GetColor() method. GetColor() is still supported for
29 // backward compatibility but will return the InCopy v1.0 color values.
30 //
31 // Used to store and retrieve some rgb colors for use in the notes and
32 // track changes UI. List is non-editable. The ordering of the list must
33 // correspond to the color menu pop up list the notechangesprefs panel.
34 //
35 //========================================================================================
36 
37 #ifndef __IInCopyUIColors__
38 #define __IInCopyUIColors__
39 
40 #include "IPMUnknown.h"
41 #include "IInterfaceColors.h"
42 #include "InCopySharedID.h"
43 
47 {
48 public:
49  enum { kDefaultIID = IID_IINCOPYUICOLORS };
50 
54  virtual int32 GetColorCount() const = 0;
55 
60  virtual RealAGMColor GetColorValue(int32 index) const = 0;
61 
66  virtual RealAGMColor GetColorValue(PMString name) const = 0;
67 
72  virtual PMString GetColorName(int32 index) const = 0;
73 
78  virtual PMString GetColorName(RealAGMColor agmColor) const = 0;
79 
84  virtual bool SetDefault(int32 index) = 0;
85 
89  virtual RealAGMColor GetDefaultColor() const = 0;
90 
95  virtual ScriptID GetEnumeration(int32 index) const = 0;
96 
101  virtual int32 GetEnumerationIndex(ScriptID enumeration) const = 0;
102 
107  virtual int32 GetColorIndex(const PMString & colorName) const = 0;
108 };
109 
110 #endif // __IInCopyUIColors__