InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IColorPickerPanelHelper.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 // Helper interface to access the ColorPicker panels.
24 //
25 //========================================================================================
26 
27 #ifndef __IColorPickerPanelHelper__
28 #define __IColorPickerPanelHelper__
29 
30 #include "ColorPickerID.h"
31 #include "IColorData.h"
32 #include "ISliderStateData.h"
33 
34 class ISubject;
35 class IControlView;
36 
41 {
42 public:
43  enum { kDefaultIID = IID_ICOLORPICKERPANELHELPER };
44 
45  // ----- Query -----
46 
51  virtual int32 GetPickerIndexFromColorSpace(const int32 colorspace) const = 0;
56  virtual int32 GetColorSpaceFromPickerIndex(const int32 pickerIndex) const = 0;
57 
61  virtual IColorData* QueryPickerMetaData() = 0;
62 
66  virtual ISubject* QueryPickerPanelSubject() = 0;
67 
73  virtual ISliderStateData::SliderStateType GetPickerControlState( const int32 pickerIndex ) const = 0;
74 
80 
85  virtual IColorData* QueryColorspaceColorData (const int32 colorspace) = 0;
86 
90  virtual const UIDList* GetPickerNChannelInkList () = 0;
91 
98  virtual void SetPickerMetaData(const int32 pickerIndex, ColorArray& components, bool16 doNotify = kFalse) = 0;
99 
105  virtual void SetPickerMetaData(IColorData* iColorData, bool16 doNotify = kFalse) = 0;
106 
112  virtual void SetPickerMetaData(const UIDRef& colorRef, bool16 doNotify = kFalse) = 0;
113 
120  virtual void SetPickerMetaData(const ColorArray& components, const UIDList& inkUIDList, bool16 doNotify = kFalse) = 0;
121 
129  virtual void SetPickerControlStates(const int32 pickerIndex, const ISliderStateData::SliderStateType controlState, bool16 doNotify = kFalse) = 0;
130 
137  virtual void SetPickerControlStates(const ISliderStateData::SliderStateType controlState, bool16 doNotify = kFalse) = 0;
138 
139  // ----- Miscellaneous ----
140 
144  virtual void EnablePanel( const int32 pickerIndex = -1 ) =0;
148  virtual void DisablePanel( const int32 pickerIndex = -1 ) =0;
149 
152  virtual void UpdatePickerMetaData() = 0;
153 
157  virtual void SwitchPickerPanelByIndex( const int32 pickerIndex ) = 0;
158 
162  virtual void SwitchPickerPanelByColorspace( const int32 newColorspace ) = 0;
163 
166  virtual PMIID GetObservedProtocol (void) = 0;
167 
172  virtual void BroadcastChange (IControlView* iPickerView = nil) = 0;
173 
174 };
175 
176 #endif