InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IXMLTableParsingContext.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Lonnie Millett
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:
24 // An interface for keeping track of the table specific parsing information when importing
25 // XML content.
26 //
27 //========================================================================================
28 
29 #ifndef __IXMLTableParsingContext_h__
30 #define __IXMLTableParsingContext_h__
31 
32 #include "IPMUnknown.h"
33 #include "TableTypes.h"
34 #include "XMLID.h"
35 
42 {
43  public:
44  enum { kDefaultIID = IID_IXMLTABLEPARSINGCONTEXT };
45 
51  virtual void Set(IXMLTableParsingContext* tableContext) = 0;
52 
56  virtual void Reset() = 0;
57 
59  virtual UIDRef GetTableRef() const = 0;
60 
65  virtual void SetTableRef(const UIDRef& tableRef) = 0;
66 
68  virtual RowRange GetTotalRows() const = 0;
69 
75  virtual void SetTotalRows(int32 start, int32 count) = 0;
76 
78  virtual RowRange GetHeaderRows() const = 0;
79 
85  virtual void SetHeaderRows(int32 start, int32 count) = 0;
86 
88  virtual RowRange GetFooterRows() const = 0;
89 
95  virtual void SetFooterRows(int32 start, int32 count) = 0;
96 
98  virtual GridCoord GetNumOfCols() const = 0;
99 
104  virtual void SetNumOfCols(GridCoord numOfCols) = 0;
105 
107  virtual GridCoord GetMaxNumOfCols() const = 0;
108 
113  virtual void SetMaxNumOfCols(GridCoord maxNumOfCols) = 0;
114 
116  virtual bool16 InTable() const = 0;
117 
122  virtual void SetInTable(bool16 inTable) = 0;
123 
125  virtual bool16 InHeader() const = 0;
126 
131  virtual void SetInHeader(bool16 inHeader) = 0;
132 
134  virtual bool16 InBody() const = 0;
135 
140  virtual void SetInBody(bool16 inBody) = 0;
141 
143  virtual bool16 InFooter() const = 0;
144 
149  virtual void SetInFooter(bool16 inFooter) = 0;
150 
152  virtual bool16 InRow() const = 0;
153 
158  virtual void SetInRow(bool16 inRow) = 0;
159 
161  virtual bool16 InCell() const = 0;
162 
167  virtual void SetInCell(bool16 inCell) = 0;
168 
170  virtual TextIndex GetInsertPos() const = 0;
171 
176  virtual void SetInsertPos(TextIndex insertPos) = 0;
177 
179  virtual bool16 InTableCell() const = 0;
180 };
181 
182 #endif