CFx SDK Documentation  2022 SP0
DbFormattedTableData.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 #ifndef OD_DBFORMATTEDTABLEDATA_H
27 #define OD_DBFORMATTEDTABLEDATA_H
28 
29 #include "DbObject.h"
30 #include "DbLinkedTableData.h"
31 
32 #include "TD_PackPush.h"
33 
43 {
44 public:
46 
48 
50  OdInt32 nIndex,
51  OdInt32 nInheritFrom,
52  OdInt32 nNumRows);
53 
55  OdInt32 nIndex,
56  OdInt32 nInheritFrom,
57  OdInt32 nNumCols);
58 
59  virtual void setFieldId(
60  OdInt32 nRow,
61  OdInt32 nCol,
62  const OdDbObjectId& idField,
63  OdDb::CellOption nFlag);
64 
65  virtual void setFieldId(
66  OdInt32 nRow,
67  OdInt32 nCol,
68  OdUInt32 nContent,
69  const OdDbObjectId& idField,
70  OdDb::CellOption nFlag);
71 
72  virtual void merge(
73  const OdCellRange& range);
74 
75  virtual void unmerge(
76  const OdCellRange& range);
77 
78  virtual bool isMerged(
79  OdInt32 nRow,
80  OdInt32 nCol) const;
81 
83  OdInt32 nRow,
84  OdInt32 nCol) const;
85 
86  virtual bool isMergeAllEnabled(
87  OdInt32 nRow,
88  OdInt32 nCol) const;
89 
90  virtual void enableMergeAll(
91  OdInt32 nRow,
92  OdInt32 nCol,
93  bool bEnable);
94 
95  virtual bool isFormatEditable(
96  OdInt32 nRow,
97  OdInt32 nCol) const;
98 
99  virtual double rotation(
100  OdInt32 nRow,
101  OdInt32 nCol) const;
102 
103  virtual double rotation(
104  OdInt32 nRow,
105  OdInt32 nCol,
106  OdInt32 nContent) const;
107 
108  virtual void setRotation(
109  OdInt32 nRow,
110  OdInt32 nCol,
111  double fRotation);
112 
113  virtual void setRotation(
114  OdInt32 nRow,
115  OdInt32 nCol,
116  OdInt32 nContent,
117  double fRotation);
118 
119  virtual double scale(
120  OdInt32 nRow,
121  OdInt32 nCol) const;
122 
123  virtual double scale(
124  OdInt32 nRow,
125  OdInt32 nCol,
126  OdInt32 nContent) const;
127 
128  virtual void setScale(
129  OdInt32 nRow,
130  OdInt32 nCol,
131  double fScale);
132 
133  virtual void setScale(
134  OdInt32 nRow,
135  OdInt32 nCol,
136  OdInt32 nContent,
137  double fScale);
138 
139  virtual bool isAutoScale(
140  OdInt32 nRow,
141  OdInt32 nCol) const;
142 
143  virtual bool isAutoScale(
144  OdInt32 nRow,
145  OdInt32 nCol,
146  OdInt32 nContent) const;
147 
148  virtual void setAutoScale(
149  OdInt32 nRow,
150  OdInt32 nCol,
151  bool bAutoScale);
152 
153  virtual void setAutoScale(
154  OdInt32 nRow,
155  OdInt32 nCol,
156  OdInt32 nContent,
157  bool bAutoScale);
158 
160  OdInt32 nRow,
161  OdInt32 nCol) const;
162 
163  virtual void setAlignment(
164  OdInt32 nRow,
165  OdInt32 nCol,
166  OdDb::CellAlignment nAlignment);
167 
169  OdInt32 nRow,
170  OdInt32 nCol) const;
171 
173  OdInt32 nRow,
174  OdInt32 nCol,
175  OdInt32 nContent) const;
176 
177  virtual void setContentColor(
178  OdInt32 nRow,
179  OdInt32 nCol,
180  const OdCmColor& color);
181 
182  virtual void setContentColor(
183  OdInt32 nRow,
184  OdInt32 nCol,
185  OdInt32 nContent,
186  const OdCmColor& color);
187 
189  OdInt32 nRow,
190  OdInt32 nCol) const;
191 
193  OdInt32 nRow,
194  OdInt32 nCol,
195  OdInt32 nContent) const;
196 
197  virtual void setTextStyle(
198  OdInt32 nRow,
199  OdInt32 nCol,
200  const OdDbObjectId& idTextStyle);
201 
202  virtual void setTextStyle(
203  OdInt32 nRow,
204  OdInt32 nCol,
205  OdInt32 nContent,
206  const OdDbObjectId& idTextStyle);
207 
208  virtual double textHeight(
209  OdInt32 nRow,
210  OdInt32 nCol) const;
211 
212  virtual double textHeight(
213  OdInt32 nRow,
214  OdInt32 nCol,
215  OdInt32 nContent) const;
216 
217  virtual void setTextHeight(
218  OdInt32 nRow,
219  OdInt32 nCol,
220  double fTextHeight);
221 
222  virtual void setTextHeight(
223  OdInt32 nRow,
224  OdInt32 nCol,
225  OdInt32 nContent,
226  double fTextHeight);
227 
229  OdInt32 nCol) const;
230 
231  virtual void setBackgroundColor(
232  OdInt32 nRow,
233  OdInt32 nCol,
234  const OdCmColor& color);
235 
237  OdInt32 nRow,
238  OdInt32 nCol) const;
239 
240  virtual void setContentLayout(
241  OdInt32 nRow,
242  OdInt32 nCol,
243  OdDb::CellContentLayout nLayout);
244 
246 
247  virtual void setFlowDirection(
248  OdDb::FlowDirection nDir);
249 
250  virtual double margin(
251  OdInt32 nRow,
252  OdInt32 nCol,
253  OdDb::CellMargin nMargin) const;
254 
255  virtual void setMargin(
256  OdInt32 nRow,
257  OdInt32 nCol,
258  OdDb::CellMargin nMargins,
259  double fMargin);
260 
262  OdInt32 nRow,
263  OdInt32 nCol,
264  OdDb::GridLineType nGridLineType) const;
265 
266  virtual void setGridLineStyle(
267  OdInt32 nRow,
268  OdInt32 nCol,
269  OdDb::GridLineType nGridLineTypes,
270  OdDb::GridLineStyle nLineStyle);
271 
273  OdInt32 nRow,
274  OdInt32 nCol,
275  OdDb::GridLineType nGridLineType) const;
276 
277  virtual void setGridLineWeight(
278  OdInt32 nRow,
279  OdInt32 nCol,
280  OdDb::GridLineType nGridLineTypes,
281  OdDb::LineWeight nLineWeight);
282 
284  OdInt32 nRow,
285  OdInt32 nCol,
286  OdDb::GridLineType nGridLineType) const;
287 
288  virtual void setGridLinetype(
289  OdInt32 nRow,
290  OdInt32 nCol,
291  OdDb::GridLineType nGridLineTypes,
292  const OdDbObjectId& idLinetype);
293 
295  OdInt32 nRow,
296  OdInt32 nCol,
297  OdDb::GridLineType nGridLineType) const;
298 
299  virtual void setGridColor(
300  OdInt32 nRow,
301  OdInt32 nCol,
302  OdDb::GridLineType nGridLineTypes,
303  const OdCmColor& color);
304 
306  OdInt32 nRow,
307  OdInt32 nCol,
308  OdDb::GridLineType nGridLineType) const;
309 
310  virtual void setGridVisibility(
311  OdInt32 nRow,
312  OdInt32 nCol,
313  OdDb::GridLineType nGridLineTypes,
314  OdDb::Visibility nVisibility);
315 
316  virtual double gridDoubleLineSpacing(
317  OdInt32 nRow,
318  OdInt32 nCol,
319  OdDb::GridLineType nGridLineType) const;
320 
322  OdInt32 nRow,
323  OdInt32 nCol,
324  OdDb::GridLineType nGridLineTypes,
325  double fSpacing);
326 
327  virtual void getGridProperty(
328  OdInt32 nRow,
329  OdInt32 nCol,
330  OdDb::GridLineType nGridLineType,
331  OdGridProperty& gridProp) const;
332 
333  virtual void setGridProperty(
334  OdInt32 nRow,
335  OdInt32 nCol,
336  OdDb::GridLineType nGridLineTypes,
337  const OdGridProperty& gridProp);
338 
339  virtual void setGridProperty(
340  const OdCellRange& range,
341  OdDb::GridLineType nGridLineTypes,
342  const OdGridProperty& gridProp);
343 
345  OdInt32 nRow,
346  OdInt32 nCol,
347  OdInt32 nContent) const;
348 
350  OdInt32 nRow,
351  OdInt32 nCol,
352  OdDb::GridLineType nGridLineType) const;
353 
354  virtual void setOverride(
355  OdInt32 nRow,
356  OdInt32 nCol,
357  OdInt32 nContent,
358  OdDb::CellProperty nOverride);
359 
360  virtual void setOverride(
361  OdInt32 nRow,
362  OdInt32 nCol,
363  OdDb::GridLineType nGridLineType,
364  OdDb::GridProperty nOverride);
365 
366  virtual void removeAllOverrides(
367  OdInt32 nRow,
368  OdInt32 nCol);
369 
371  OdDbDwgFiler* pFiler);
372  virtual void dwgOutFields(
373  OdDbDwgFiler* pFiler) const;
375  OdDbDxfFiler* pFiler);
376  virtual void dxfOutFields(
377  OdDbDxfFiler* pFiler) const;
378 };
379 
381 
382 #include "TD_PackPop.h"
383 
384 #endif // OD_DBFORMATTEDTABLEDATA_H
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbFormattedTableData > OdDbFormattedTableDataPtr
unsigned int OdUInt32
int OdInt32
OdResult
Definition: OdResult.h:29
virtual bool isMergeAllEnabled(OdInt32 nRow, OdInt32 nCol) const
virtual void getGridProperty(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType, OdGridProperty &gridProp) const
virtual void enableMergeAll(OdInt32 nRow, OdInt32 nCol, bool bEnable)
virtual OdDb::CellContentLayout contentLayout(OdInt32 nRow, OdInt32 nCol) const
virtual void setGridDoubleLineSpacing(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, double fSpacing)
virtual void setAutoScale(OdInt32 nRow, OdInt32 nCol, bool bAutoScale)
virtual OdDb::CellAlignment alignment(OdInt32 nRow, OdInt32 nCol) const
virtual void setTextStyle(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, const OdDbObjectId &idTextStyle)
virtual OdCmColor backgroundColor(OdInt32 nRow, OdInt32 nCol) const
virtual bool isAutoScale(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
virtual void setGridProperty(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, const OdGridProperty &gridProp)
virtual bool isMerged(OdInt32 nRow, OdInt32 nCol) const
virtual OdCmColor gridColor(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
virtual void setTextHeight(OdInt32 nRow, OdInt32 nCol, double fTextHeight)
virtual double rotation(OdInt32 nRow, OdInt32 nCol) const
virtual void setOverride(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, OdDb::CellProperty nOverride)
virtual void setGridLineWeight(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, OdDb::LineWeight nLineWeight)
virtual double scale(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual bool isAutoScale(OdInt32 nRow, OdInt32 nCol) const
virtual void merge(const OdCellRange &range)
virtual OdCmColor contentColor(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
virtual double textHeight(OdInt32 nRow, OdInt32 nCol) const
virtual OdCellRange getMergeRange(OdInt32 nRow, OdInt32 nCol) const
virtual void setBackgroundColor(OdInt32 nRow, OdInt32 nCol, const OdCmColor &color)
virtual bool isFormatEditable(OdInt32 nRow, OdInt32 nCol) const
virtual OdDb::GridProperty getOverride(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
virtual void setGridLineStyle(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, OdDb::GridLineStyle nLineStyle)
virtual OdDbObjectId textStyle(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
virtual void setGridVisibility(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, OdDb::Visibility nVisibility)
virtual OdDbObjectId textStyle(OdInt32 nRow, OdInt32 nCol) const
virtual double textHeight(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
virtual void setScale(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, double fScale)
virtual void setMargin(OdInt32 nRow, OdInt32 nCol, OdDb::CellMargin nMargins, double fMargin)
virtual void setFieldId(OdInt32 nRow, OdInt32 nCol, const OdDbObjectId &idField, OdDb::CellOption nFlag)
virtual OdDb::CellProperty getOverride(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
virtual void setGridProperty(const OdCellRange &range, OdDb::GridLineType nGridLineTypes, const OdGridProperty &gridProp)
virtual void setFlowDirection(OdDb::FlowDirection nDir)
virtual OdDb::LineWeight gridLineWeight(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
virtual void setTextHeight(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, double fTextHeight)
virtual void setFieldId(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdDbObjectId &idField, OdDb::CellOption nFlag)
virtual void setGridColor(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, const OdCmColor &color)
virtual void setGridLinetype(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, const OdDbObjectId &idLinetype)
ODDB_DECLARE_MEMBERS(OdDbFormattedTableData)
virtual OdDb::FlowDirection flowDirection() const
virtual OdInt32 insertRowAndInherit(OdInt32 nIndex, OdInt32 nInheritFrom, OdInt32 nNumRows)
virtual OdDb::GridLineStyle gridLineStyle(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
virtual OdDb::Visibility gridVisibility(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
virtual void removeAllOverrides(OdInt32 nRow, OdInt32 nCol)
virtual void setAlignment(OdInt32 nRow, OdInt32 nCol, OdDb::CellAlignment nAlignment)
virtual void setOverride(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType, OdDb::GridProperty nOverride)
virtual OdDbObjectId gridLinetype(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
virtual void setAutoScale(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, bool bAutoScale)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual void setRotation(OdInt32 nRow, OdInt32 nCol, double fRotation)
virtual void setContentColor(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, const OdCmColor &color)
virtual void setTextStyle(OdInt32 nRow, OdInt32 nCol, const OdDbObjectId &idTextStyle)
virtual void setContentLayout(OdInt32 nRow, OdInt32 nCol, OdDb::CellContentLayout nLayout)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual void setRotation(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, double fRotation)
virtual double gridDoubleLineSpacing(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
virtual OdCmColor contentColor(OdInt32 nRow, OdInt32 nCol) const
virtual void setContentColor(OdInt32 nRow, OdInt32 nCol, const OdCmColor &color)
virtual double margin(OdInt32 nRow, OdInt32 nCol, OdDb::CellMargin nMargin) const
virtual void setScale(OdInt32 nRow, OdInt32 nCol, double fScale)
virtual double scale(OdInt32 nRow, OdInt32 nCol) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual OdInt32 insertColumnAndInherit(OdInt32 nIndex, OdInt32 nInheritFrom, OdInt32 nNumCols)
virtual double rotation(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
virtual void unmerge(const OdCellRange &range)
GLenum GLint * range
Definition: gles2_ext.h:563
GridLineType
Definition: DbTableStyle.h:102
CellContentLayout
Definition: DbTableStyle.h:161
FlowDirection
Definition: DbTableStyle.h:74
CellAlignment
Definition: DbTableStyle.h:89
GridLineStyle
Definition: DbTableStyle.h:145
LineWeight
Definition: OdaDefs.h:382
GridProperty
Definition: DbTableStyle.h:184
CellProperty
Definition: DbTableStyle.h:203
Visibility
Definition: DbObject.h:144