InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICellFocus.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Mat Marcus
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 // This interface describes a Table selection. It describes the range
24 // and the table selected.
25 // In the planned implementation, the TableModel will have a TableFocusManager
26 // that maintains the foci positions through editing.
27 //
28 //========================================================================================
29 
30 #ifndef __ICellFocus__
31 #define __ICellFocus__
32 
33 #include "IPMUnknown.h"
34 #include "TablesID.h"
35 #include "TableTypes.h"
36 
37 class ITableModel;
38 class UIDRef;
39 
44 class ICellFocus : public IPMUnknown
45 {
46 public:
47  enum { kDefaultIID = IID_ICELLFOCUS };
48 
53  virtual ITableModel* QueryModel() const = 0;
54 
59  virtual UIDRef GetModel() const = 0;
60 
65  virtual void SetRange(const GridArea &area) = 0;
66 
71  virtual GridArea GetRange() const = 0;
72 
77  virtual void RowsInserted(const RowRange& rows) = 0;
82  virtual void ColsInserted(const ColRange& cols) = 0;
87  virtual void RowsDeleted (const RowRange& rows) = 0;
92  virtual void ColsDeleted (const ColRange& cols) = 0;
97  virtual void RowsConverted (const RowRange& rows) = 0;
102  virtual void CellsMerged(const GridArea& cells) = 0;
107  virtual void CellsUnmerged(const GridArea& cells) = 0;
111  virtual void TableModelDeleted() = 0;
112 
117  virtual void DeRegisterFromModel() = 0;
122  virtual void RegisterWithModel(const UIDRef& tableRef) = 0;
123 
128  virtual void CellContentChanged(const GridArea& cells) = 0;
129 
134  virtual void CellContentDeleted(const GridArea& cells) = 0;
135 };
136 
137 
138 #endif //__ICellFocus__