InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IRenderingObjectApplyAction.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 _RenderingObjectApplyAction_
25 #define _RenderingObjectApplyAction_
26 //========================================================================================
27 //________________________________________________________________________________________
28 // INCLUDES
29 //________________________________________________________________________________________
30  #include "IPMUnknown.h"
31  #include "IAttributePrePost.h"
32  #include "IPersistUIDData.h"
33  #include "GraphicStylesID.h"
34 //========================================================================================
35 //________________________________________________________________________________________
36 // CLASS FORWARDS
37 //________________________________________________________________________________________
38  class IClassIDListData;
39  class ITextModel;
40  class IFocusCache;
41 //________________________________________________________________________________________
42 // CLASS DECLARATIONS
43 //________________________________________________________________________________________
44 
62  {
63  //____________________________________________________________________________________
64  // Member Functions
65  //____________________________________________________________________________________
66  public:
67  enum { kDefaultIID = IID_IRENDERINGOBJECTAPPLYACTION };
68 
77  virtual void PreGraphicApply (IPMUnknown* newAttr, IAttributePrePost::ActionType attrActionType,
78  UIDRef pageItem, IClassIDListData*, IPMUnknown* origAttr,
79  ClassID origRendObjClassID, ClassID newRendObjClassID) const = 0;
89  UIDRef pageItem, IClassIDListData*, IPMUnknown* origAttr,
90  ClassID origRendObjClassID, ClassID newRendObjClassID) const = 0;
91 
101  virtual void CleanUpPageItemAttr (K2Vector<IPMUnknown*>* origAttrs, K2Vector<IPMUnknown*>* newAttrs,
102  UIDList* pageItemList, IClassIDListData* iClassIDList) = 0;
110  virtual void PreTextApply (ITextModel *model, TextIndex start, int32 len, ClassID textRenderAttrClass, IFocusCache *listOfAll) const = 0;
118  virtual void PostTextApply (ITextModel *model, TextIndex start, int32 len, ClassID textRenderAttrClass, IFocusCache *listOfAll) const = 0;
119 
133  virtual void SwapGraphicStrokeAndFill (IPMUnknown* iFillRenderingObject,
134  ClassID fillRenderingClassID,
135  IPMUnknown* iStrokeRenderingObject,
136  ClassID strokeRenderingClassID,
137  UIDRef pageItem,
138  IClassIDListData* iAttributesModified) const = 0;
139  };
140 
141 #endif
142  // _RenderingObjectApplyAction_