InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
GraphicStateDefnObserver.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 
24 #ifndef __GraphicStateDefnObserver__
25 #define __GraphicStateDefnObserver__
26 
27 #include "SelectionObserver.h"
28 
29 //----------------------------------------------------------------------------------------
30 // Forward Declarations
31 //----------------------------------------------------------------------------------------
34 //----------------------------------------------------------------------------------------
35 // Class Info
36 //----------------------------------------------------------------------------------------
37 
38 
44 {
45  public:
47  virtual ~GraphicStateDefnObserver();
48 
52  virtual void AutoAttach();
56  virtual void AutoDetach();
57 
58  protected:
59 
60  //................................................................................................
61  // Inherited from SelectionObserver
62  //................................................................................................
63 
68  virtual void HandleSelectionChanged (const ISelectionMessage* iSelectionMsg);
74  virtual void HandleSelectionAttributeChanged (const ISelectionMessage* iSelectionMsg);
75 
76  protected:
77 
82  virtual void HandleDefinitionChange (IGraphicAttributeSuite* iGraphicAttrSuite, IGraphicAttrMessage* iGraphicAttrMsg);
83 
95  virtual void UpdateDefinition (IGraphicAttributeSuite* iGraphicAttrSuite, IGraphicAttrMessage* iGraphicAttrMsg) = 0;
96 
102  virtual void UpdateFillRenderData (IGraphicAttributeSuite* iGraphicAttrSuite, UID renderUID, IGraphicAttrMessage* iGraphicAttrMsg);
103 
109  virtual void UpdateStrokeRenderData (IGraphicAttributeSuite* iGraphicAttrSuite, UID renderUID, IGraphicAttrMessage* iGraphicAttrMsg);
110 
115  virtual void UpdateSwapStrokeAndFill (IGraphicAttributeSuite* iGraphicAttrSuite, IGraphicAttrMessage* iGraphicAttrMsg);
116 
120  virtual void EnableWidget (bool16 enableFlag);
121 
122  private:
127  void HandleChangeMessage (IGraphicAttributeSuite* iGraphicAttrSuite, IGraphicAttrMessage* iGraphicAttrMsg);
128 
129 
130  protected:
133 
134  private:
136  ISelectionManager* fOriginalSelection;
137 };
138 
139 
140 #endif // __GraphicStateDefnObserver__