InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
INewTableCmdData.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 // Data interface for new table commands.
24 //
25 //========================================================================================
26 
27 #ifndef __INewTableCmdData__
28 #define __INewTableCmdData__
29 
30 #include "IPMUnknown.h"
31 #include "PMReal.h"
32 #include "TablesID.h"
33 #include "TableTypes.h"
34 
35 class IDataBase;
36 
42 {
43 public:
44 
45  enum { kDefaultIID = IID_INEWTABLECMDDATA };
46 
59  virtual void Set(IDataBase* db,
60  UID textModelUID,
61  TextIndex insertionPoint,
62  int32 numBodyRows,
63  int32 numColumns,
64  const PMReal& tableWidth,
65  const PMReal& tableHeight,
66  CellType cellType,
67  bool16 useExistingAnchor = kFalse) = 0;
68 
83  virtual void Set(IDataBase* db,
84  UID textModelUID,
85  TextIndex insertionPoint,
86  int32 numHeaderRows,
87  int32 numBodyRows,
88  int32 numFooterRows,
89  int32 numColumns,
90  const PMReal& tableWidth,
91  const PMReal& tableHeight,
92  CellType cellType,
93  bool16 useExistingAnchor = kFalse) = 0;
94 
105  virtual void Get(int32& numHeaderRows,
106  int32& numBodyRows,
107  int32& numFooterRows,
108  int32& numColumns,
109  PMReal& tableWidth,
110  PMReal& tableHeight,
111  CellType& cellType) const = 0;
112 
117  virtual IDataBase* GetDataBase(void) const = 0;
118 
123  virtual UID GetTextModelUID() const = 0;
124 
129  virtual TextIndex GetTextIndex() const = 0;
130 
135  virtual bool16 GetUseExistingAnchor() const = 0;
136 
141  virtual void SetDirection(Tables::EDirection direction) = 0;
142 
147  virtual Tables::EDirection GetDirection() const = 0;
148 
149 };
150 
151 #endif // __INewTableCmdData__