CFx SDK Documentation  2020SP3
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
OdResult
OdResult
Definition: OdResult.h:29
OdDbFormattedTableData::textHeight
virtual double textHeight(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
OdDbFormattedTableData::removeAllOverrides
virtual void removeAllOverrides(OdInt32 nRow, OdInt32 nCol)
OdDbFormattedTableData::setGridVisibility
virtual void setGridVisibility(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, OdDb::Visibility nVisibility)
OdDbFormattedTableData::setOverride
virtual void setOverride(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, OdDb::CellProperty nOverride)
OdDbFormattedTableData::isMergeAllEnabled
virtual bool isMergeAllEnabled(OdInt32 nRow, OdInt32 nCol) const
OdDbFormattedTableData::alignment
virtual OdDb::CellAlignment alignment(OdInt32 nRow, OdInt32 nCol) const
OdDbFormattedTableData::contentLayout
virtual OdDb::CellContentLayout contentLayout(OdInt32 nRow, OdInt32 nCol) const
OdDbFormattedTableData::setGridColor
virtual void setGridColor(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, const OdCmColor &color)
OdDbFormattedTableData::backgroundColor
virtual OdCmColor backgroundColor(OdInt32 nRow, OdInt32 nCol) const
OdDbFormattedTableData::gridLineWeight
virtual OdDb::LineWeight gridLineWeight(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
DbObject.h
range
GLenum GLint * range
Definition: gles2_ext.h:563
OdDbObjectId
Definition: DbObjectId.h:99
OdDbFormattedTableDataPtr
OdSmartPtr< OdDbFormattedTableData > OdDbFormattedTableDataPtr
Definition: DbFormattedTableData.h:380
OdDbFormattedTableData::flowDirection
virtual OdDb::FlowDirection flowDirection() const
OdDbFormattedTableData::setBackgroundColor
virtual void setBackgroundColor(OdInt32 nRow, OdInt32 nCol, const OdCmColor &color)
OdDbFormattedTableData::setMargin
virtual void setMargin(OdInt32 nRow, OdInt32 nCol, OdDb::CellMargin nMargins, double fMargin)
OdDbFormattedTableData::setGridProperty
virtual void setGridProperty(const OdCellRange &range, OdDb::GridLineType nGridLineTypes, const OdGridProperty &gridProp)
OdDbFormattedTableData::setAutoScale
virtual void setAutoScale(OdInt32 nRow, OdInt32 nCol, bool bAutoScale)
OdDbFormattedTableData::getOverride
virtual OdDb::GridProperty getOverride(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
OdDbFormattedTableData::contentColor
virtual OdCmColor contentColor(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
OdDbFormattedTableData::gridLineStyle
virtual OdDb::GridLineStyle gridLineStyle(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
OdDbFormattedTableData::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
TD_PackPop.h
OdDbFormattedTableData::setScale
virtual void setScale(OdInt32 nRow, OdInt32 nCol, double fScale)
OdDbFormattedTableData::setGridLinetype
virtual void setGridLinetype(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, const OdDbObjectId &idLinetype)
OdDbFormattedTableData::setFlowDirection
virtual void setFlowDirection(OdDb::FlowDirection nDir)
OdDbFormattedTableData::textStyle
virtual OdDbObjectId textStyle(OdInt32 nRow, OdInt32 nCol) const
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdDbFormattedTableData::textStyle
virtual OdDbObjectId textStyle(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
OdDbFormattedTableData::merge
virtual void merge(const OdCellRange &range)
OdDbFormattedTableData::insertRowAndInherit
virtual OdInt32 insertRowAndInherit(OdInt32 nIndex, OdInt32 nInheritFrom, OdInt32 nNumRows)
OdDb::CellAlignment
CellAlignment
Definition: DbTableStyle.h:89
OdDb::CellMargin
CellMargin
Definition: DbTableStyle.h:151
OdDb::FlowDirection
FlowDirection
Definition: DbTableStyle.h:74
OdDbFormattedTableData::setContentLayout
virtual void setContentLayout(OdInt32 nRow, OdInt32 nCol, OdDb::CellContentLayout nLayout)
OdDbFormattedTableData::setGridDoubleLineSpacing
virtual void setGridDoubleLineSpacing(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, double fSpacing)
OdDbFormattedTableData::gridColor
virtual OdCmColor gridColor(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
OdSmartPtr
Definition: SmartPtr.h:58
OdDbFormattedTableData::isAutoScale
virtual bool isAutoScale(OdInt32 nRow, OdInt32 nCol) const
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
OdDbFormattedTableData::textHeight
virtual double textHeight(OdInt32 nRow, OdInt32 nCol) const
OdDbFormattedTableData::isMerged
virtual bool isMerged(OdInt32 nRow, OdInt32 nCol) const
OdDbFormattedTableData::setFieldId
virtual void setFieldId(OdInt32 nRow, OdInt32 nCol, const OdDbObjectId &idField, OdDb::CellOption nFlag)
OdDbFormattedTableData::setRotation
virtual void setRotation(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, double fRotation)
OdDbFormattedTableData::setAutoScale
virtual void setAutoScale(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, bool bAutoScale)
OdDbFormattedTableData::setFieldId
virtual void setFieldId(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdDbObjectId &idField, OdDb::CellOption nFlag)
OdDbFormattedTableData::rotation
virtual double rotation(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
OdDbFormattedTableData::scale
virtual double scale(OdInt32 nRow, OdInt32 nCol) const
OdDb::CellOption
CellOption
Definition: DbTableStyle.h:197
OdDbFormattedTableData::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbFormattedTableData::getOverride
virtual OdDb::CellProperty getOverride(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
OdDbFormattedTableData::rotation
virtual double rotation(OdInt32 nRow, OdInt32 nCol) const
OdDbFormattedTableData::isFormatEditable
virtual bool isFormatEditable(OdInt32 nRow, OdInt32 nCol) const
OdDb::Visibility
Visibility
Definition: DbObject.h:144
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbFormattedTableData::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbFormattedTableData::setContentColor
virtual void setContentColor(OdInt32 nRow, OdInt32 nCol, const OdCmColor &color)
OdDbFormattedTableData::unmerge
virtual void unmerge(const OdCellRange &range)
OdDbFormattedTableData::contentColor
virtual OdCmColor contentColor(OdInt32 nRow, OdInt32 nCol) const
OdDb::GridLineType
GridLineType
Definition: DbTableStyle.h:102
TD_PackPush.h
OdDbFormattedTableData::getMergeRange
virtual OdCellRange getMergeRange(OdInt32 nRow, OdInt32 nCol) const
OdDbFormattedTableData::gridVisibility
virtual OdDb::Visibility gridVisibility(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
OdDbFormattedTableData::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbFormattedTableData::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbFormattedTableData)
OdDbFormattedTableData::setScale
virtual void setScale(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, double fScale)
OdCellRange
Definition: DbTableStyle.h:342
OdDbFormattedTableData::setAlignment
virtual void setAlignment(OdInt32 nRow, OdInt32 nCol, OdDb::CellAlignment nAlignment)
OdDb::GridProperty
GridProperty
Definition: DbTableStyle.h:184
OdDbFormattedTableData::setTextHeight
virtual void setTextHeight(OdInt32 nRow, OdInt32 nCol, double fTextHeight)
OdDbFormattedTableData::setRotation
virtual void setRotation(OdInt32 nRow, OdInt32 nCol, double fRotation)
OdDbFormattedTableData::setGridProperty
virtual void setGridProperty(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, const OdGridProperty &gridProp)
OdDbFormattedTableData::setTextStyle
virtual void setTextStyle(OdInt32 nRow, OdInt32 nCol, const OdDbObjectId &idTextStyle)
OdDbFormattedTableData
Definition: DbFormattedTableData.h:43
OdDbFormattedTableData::setGridLineWeight
virtual void setGridLineWeight(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, OdDb::LineWeight nLineWeight)
OdDb::LineWeight
LineWeight
Definition: OdaDefs.h:382
OdDbFormattedTableData::enableMergeAll
virtual void enableMergeAll(OdInt32 nRow, OdInt32 nCol, bool bEnable)
OdDb::CellContentLayout
CellContentLayout
Definition: DbTableStyle.h:161
OdDbFormattedTableData::isAutoScale
virtual bool isAutoScale(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
OdDbFormattedTableData::setGridLineStyle
virtual void setGridLineStyle(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineTypes, OdDb::GridLineStyle nLineStyle)
OdDb::CellProperty
CellProperty
Definition: DbTableStyle.h:203
OdDbFormattedTableData::setTextHeight
virtual void setTextHeight(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, double fTextHeight)
OdDb::GridLineStyle
GridLineStyle
Definition: DbTableStyle.h:145
OdDbFormattedTableData::setContentColor
virtual void setContentColor(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, const OdCmColor &color)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbFormattedTableData::setOverride
virtual void setOverride(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType, OdDb::GridProperty nOverride)
OdDbFormattedTableData::scale
virtual double scale(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent) const
OdDbFormattedTableData::margin
virtual double margin(OdInt32 nRow, OdInt32 nCol, OdDb::CellMargin nMargin) const
OdDbFormattedTableData::gridLinetype
virtual OdDbObjectId gridLinetype(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
OdDbFormattedTableData::OdDbFormattedTableData
OdDbFormattedTableData()
OdDbFormattedTableData::gridDoubleLineSpacing
virtual double gridDoubleLineSpacing(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType) const
OdDbFormattedTableData::insertColumnAndInherit
virtual OdInt32 insertColumnAndInherit(OdInt32 nIndex, OdInt32 nInheritFrom, OdInt32 nNumCols)
OdDbFormattedTableData::getGridProperty
virtual void getGridProperty(OdInt32 nRow, OdInt32 nCol, OdDb::GridLineType nGridLineType, OdGridProperty &gridProp) const
OdCmColor
Definition: CmColor.h:59
OdDbLinkedTableData
Definition: DbLinkedTableData.h:47
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbFormattedTableData::setTextStyle
virtual void setTextStyle(OdInt32 nRow, OdInt32 nCol, OdInt32 nContent, const OdDbObjectId &idTextStyle)
DbLinkedTableData.h
OdGridProperty
Definition: DbTableStyle.h:384