InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IScriptCellRef.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Peter Boctor
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 area. It describes the range
24 // and the table selected. The interface is used in scripting of
25 // cells, rows and columns.
26 //
27 //========================================================================================
28 
29 #ifndef __IScriptCellRef__
30 #define __IScriptCellRef__
31 
32 #include "IPMUnknown.h"
33 #include "TablesID.h"
34 #include "TableTypes.h"
35 
36 class ITableModel;
37 class UIDRef;
38 
39 class IScriptCellRef : public IPMUnknown
40 {
41 public:
42  enum { kDefaultIID = IID_ISCRIPTCELLREF };
43 
45  virtual void SetTableModel(const ITableModel* model, bool16 registerFocus = kTrue) = 0;
46 
48  virtual ITableModel* QueryModel() const = 0;
50  virtual UIDRef GetModel() const = 0;
51 
53  virtual ErrorCode SetRange(const GridArea &area) = 0;
55  virtual ErrorCode GetRange(GridArea &area) const = 0;
56 };
57 
58 #endif //__IScriptCellRef__