InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGraphicStateRenderObjects.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael_Martz
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 _IGraphicStateRenderObjects_
25 #define _IGraphicStateRenderObjects_
26 //========================================================================================
27 //________________________________________________________________________________________
28 // INCLUDES
29 //________________________________________________________________________________________
30  #include "GraphicStylesID.h"
31  #include "IPMUnknown.h"
32 
33 //========================================================================================
34 //________________________________________________________________________________________
35 // CLASS FORWARDS
36 //________________________________________________________________________________________
37  class ICommand;
38  class IRenderingObject;
39  class IWorkspace;
41  class IGraphicStateData;
42 //________________________________________________________________________________________
43 // CLASS DECLARATIONS
44 //________________________________________________________________________________________
45 
50  {
51  public:
52  enum { kDefaultIID = IID_IGRAPHICSTATE_RENDEROBJECTS};
53 
57  virtual IDataBase* GetDataBase (void) = 0;
58 
65  virtual void Initialize (IGraphicStateData* iGraphicStateData) = 0;
72  virtual ErrorCode RegisterNewRenderObjectClass (ClassID renderClassID, UID renderUID) = 0;
73 
74  //____________________________________________________________________________________
75  // Rendering class Block utilities
76  //____________________________________________________________________________________
83  virtual ErrorCode SetBlock (ClassID renderClassID, bool16 blockFlag) = 0;
91  virtual ErrorCode IsBlocked (ClassID renderClassID, bool16* blockFlag) const = 0;
95  virtual void ClearEveryBlock (void) = 0;
96 
97  //____________________________________________________________________________________
98  // Rendering object utilities
99  //____________________________________________________________________________________
105  virtual const IRenderingObject* QueryRenderObject (ClassID renderClassID) const = 0;
111  virtual UID GetRenderObjectUID (ClassID renderClassID) const = 0;
119  virtual ErrorCode ChangeRenderObject (ClassID renderClassID, UID renderUID, bool16 doBroadcast = kTrue) = 0; // kTrue broadcast change; other don't
126  virtual bool16 IsRenderingObjectIndeterminant (ClassID renderClassID) const = 0;
127 
133  virtual ClassID* CreateRenderObjectClassList (int32* renderClassCount) const = 0;
138  virtual ClassID GetCurrentRenderObjectClass (void) const = 0;
139 
146  virtual void RenderObjectChanged (ClassID renderClassID, bool16 doForwardToDefinition) = 0;
147 
151  virtual void ColorManagementChanged (void) = 0;
157  virtual void EnabledRenderingTypesHaveChanged(const K2Vector<ClassID>* disabledList) = 0;
163  virtual bool16 IsRenderingObjectDisabled (const ClassID& renderClassID) = 0;
164 
175  virtual ErrorCode UpdateRenderData (ClassID renderClassID, UID renderUID) = 0;
176  };
177 
181  {
182  };
183 
188  {
189  public:
190  ClassID classID;
191  };
192 
198  {
199  public:
200  const K2Vector<ClassID> *disabledRenderingTypes;
201  };
202 
206  {
207  //________________________________________________________________________________
208  // Data Types
209  //________________________________________________________________________________
210  public:
212  {
237  };
238 
239  //________________________________________________________________________________
240  // Data Members
241  //________________________________________________________________________________
242  public:
255  };
256 
257 
258 #endif // _IGraphicStateRenderObjects_