InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICellFocusManager.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Joe Shankar
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 // Purpose: Interface that to keep cell focuses up-to-date and handling notification
24 // from the table model.
25 //
26 //========================================================================================
27 
28 #ifndef __ICellFocusManager__
29 #define __ICellFocusManager__
30 
31 #include "IPMUnknown.h"
32 #include "TablesID.h"
33 #include "TableTypes.h"
34 
35 class ICellFocus;
36 class RowRange;
37 class ColRange;
38 class GridArea;
39 
46 {
47 public:
48  enum { kDefaultIID = IID_ICELLFOCUSMANAGER };
49 
50  //----- Focus registration management.
55  virtual void AddFocus(ICellFocus* focus) = 0;
60  virtual void RemoveFocus(ICellFocus* focus) = 0;
61 
62  //---- Internal API for notification of table structure & attributes changes.
67  virtual void RowsInserted(const RowRange& rows) const = 0;
72  virtual void ColsInserted(const ColRange& cols) const = 0;
77  virtual void RowsDeleted (const RowRange& rows) const = 0;
82  virtual void ColsDeleted (const ColRange& cols) const = 0;
87  virtual void CellsMerged (const GridArea& cells) const = 0;
92  virtual void CellsUnmerged(const GridArea& cells) const = 0;
97  virtual void RowsConverted(const RowRange& rows) const = 0;
98 
103  virtual void RowAttributesChanged(const RowRange& rows) const = 0;
108  virtual void ColAttributesChanged(const ColRange& cols) const = 0;
113  virtual void CellAttributesChanged(const GridArea& cells) const = 0;
114 
118  virtual void TableBeingDeleted(void) const = 0;
119 
124  virtual void TableDirChange(Tables::EDirection directionRTL) const = 0;
125 
130  virtual void CellContentChanged(const GridArea& cells) const = 0;
131 
136  virtual void CellContentDeleted(const GridArea& cells) const = 0;
137 };
138 
139 #endif