InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICellAdornment.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jesse Jones (jejones)
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 __ICellAdornment__
25 #define __ICellAdornment__
26 
27 #include "IPMUnknown.h"
28 #include "TablesID.h"
29 #include "TableTypes.h"
30 
31 
32 //-----------------------------------
33 // Forward References
34 //
35 class IGraphicsPort;
36 class ITableFrame;
37 class PMMatrix;
38 class ICallback;
39 
40 
41 // ===================================================================================
42 // class ICellAdornment
43 // ===================================================================================
52 class ICellAdornment : public IPMUnknown {
53 
54 //-----------------------------------
55 // API
56 //
57 public:
58  // ----- Constants -----
59  enum {kDefaultIID = IID_ICELLADORNMENT};
60 
61  typedef enum { kPassBeforeCell = -1, kPassAfterCell = 1 } DrawPass;
63 
64  // ----- API -----
72  virtual void Draw(IGraphicsPort* port, int32 shapeFlags, DrawPass pass,
73  const ITableFrame* frame, const K2Vector<GridAddress>& cells) const = 0;
74 
75 
85  virtual void Hilite(IGraphicsPort* port, const ITableFrame* frame, const K2Vector<GridAddress>& cells) const = 0;
86 
91  virtual void GetPassInfo(DrawPassList& passes) const = 0;
92 
100  virtual void IterateCellAdornmentDrawOrder(const ITableFrame* frame,
101  const K2Vector<GridAddress>& cells,
102  const PMMatrix *xform,
103  ICallback *callbackInfo,
104  int32 iShapeFlags = 0) = 0;
105 
106 };
107 
108 DECLARE_BASE_TYPE(ICellAdornment::DrawPass);
109 
110 #endif // __ICellAdornment__