CFx SDK Documentation  2022 SP0
DbLinkedTableData.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_DBLINKEDTABLEDATA_H
27 #define OD_DBLINKEDTABLEDATA_H
28 
29 #include "TD_PackPush.h"
30 
31 #include "DbObject.h"
32 #include "DbTableStyle.h"
33 #include "DbLinkedData.h"
34 #include "DbDataLink.h"
35 #include "DbField.h"
36 
47 {
48 public:
50 
52 
53  virtual void setSize(
54  OdInt32 nRows,
55  OdInt32 nCols);
56 
57  virtual OdInt32 numColumns() const;
58 
60  OdInt32 nIndex) const;
61 
62  virtual void setColumnName(
63  OdInt32 nIndex,
64  const OdString name);
65 
67  OdInt32 nNumCols);
68 
70  OdInt32 nIndex,
71  OdInt32 nNumCols);
72 
73  virtual void deleteColumn(
74  OdInt32 nIndex,
75  OdInt32 nNumColsToDelete);
76 
77  virtual OdInt32 numRows() const;
78 
79  virtual bool canInsert(
80  OdInt32 nIndex,
81  bool bRow) const;
82 
83  virtual OdInt32 appendRow(
84  OdInt32 nNumRows);
85 
86  virtual OdInt32 insertRow(
87  OdInt32 nIndex,
88  OdInt32 nNumRows);
89 
90  virtual bool canDelete(
91  OdInt32 nIndex,
92  OdInt32 nCount,
93  bool bRow) const;
94 
95  virtual void deleteRow(
96  OdInt32 nIndex,
97  OdInt32 nNumRowsToDelete);
98 
99  virtual bool isContentEditable(
100  OdInt32 nRow,
101  OdInt32 nCol) const;
102 
104  OdInt32 nRow,
105  OdInt32 nCol) const;
106 
107  virtual void setCellState(
108  OdInt32 nRow,
109  OdInt32 nCol,
110  OdDb::CellState nCellState);
111 
113  OdInt32 nRow,
114  OdInt32 nCol) const;
115 
116  virtual void setToolTip(
117  OdInt32 nRow,
118  OdInt32 nCol,
119  const OdString& sToolTip);
120 
122  OdInt32 nRow,
123  OdInt32 nCol) const;
124 
125  virtual void setCustomData(
126  OdInt32 nRow,
127  OdInt32 nCol,
128  OdInt32 nData);
129 
131  OdInt32 nRow,
132  OdInt32 nCol,
133  const OdString& sKey ) const;
134 
135  virtual void setCustomData(
136  OdInt32 nRow,
137  OdInt32 nCol,
138  const OdString& sKey,
139  const OdValue* pData);
140 
142  OdInt32 nRow,
143  OdInt32 nCol) const;
144 
146  OdInt32 nRow,
147  OdInt32 nCol,
148  OdInt32 nIndex);
149 
150  virtual void moveContent(
151  OdInt32 nRow,
152  OdInt32 nCol,
153  OdInt32 nFromIndex,
154  OdInt32 nToIndex);
155 
156  virtual void deleteContent(
157  OdInt32 nRow,
158  OdInt32 nCol,
159  OdUInt32 nContent);
160 
161  virtual void deleteContent(
162  OdInt32 nRow,
163  OdInt32 nCol);
164 
165  virtual void deleteContent(
166  const OdCellRange& range);
167 
169  OdInt32 nRow,
170  OdInt32 nCol) const;
171 
173  OdInt32 nRow,
174  OdInt32 nCol,
175  OdUInt32 nContent) const;
176 
177  virtual void getDataType(
178  OdInt32 nRow,
179  OdInt32 nCol,
180  OdValue::DataType& nDataType,
181  OdValue::UnitType& nUnitType) const;
182 
183  virtual void getDataType(
184  OdInt32 nRow,
185  OdInt32 nCol,
186  OdUInt32 nContent,
187  OdValue::DataType& nDataType,
188  OdValue::UnitType& nUnitType) const;
189 
190  virtual void setDataType(
191  OdInt32 nRow,
192  OdInt32 nCol,
193  OdValue::DataType nDataType,
194  OdValue::UnitType nUnitType);
195 
196  virtual void setDataType(
197  OdInt32 nRow,
198  OdInt32 nCol,
199  OdUInt32 nContent,
200  OdValue::DataType nDataType,
201  OdValue::UnitType nUnitType);
202 
204  OdInt32 nRow,
205  OdInt32 nCol) const;
206 
208  OdInt32 nRow,
209  OdInt32 nCol,
210  OdUInt32 nContent) const;
211 
212  virtual void setDataFormat(
213  OdInt32 nRow,
214  OdInt32 nCol,
215  const OdString sFormat);
216 
217  virtual void setDataFormat(
218  OdInt32 nRow,
219  OdInt32 nCol,
220  OdUInt32 nContent,
221  const OdString sFormat);
222 
223  virtual OdValue getValue(
224  OdInt32 nRow,
225  OdInt32 nCol) const;
226 
227  virtual OdValue getValue(
228  OdInt32 nRow,
229  OdInt32 nCol,
230  OdUInt32 nContent,
231  OdValue::FormatOption nOption) const;
232 
233  virtual void setValue(
234  OdInt32 nRow,
235  OdInt32 nCol,
236  const OdValue& value);
237 
238  virtual void setValue(
239  OdInt32 nRow,
240  OdInt32 nCol,
241  OdUInt32 nContent,
242  const OdValue& value);
243 
244  virtual void setValue(
245  OdInt32 nRow,
246  OdInt32 nCol,
247  OdUInt32 nContent,
248  const OdValue& value,
249  OdValue::ParseOption nOption);
250 
251  virtual OdString getText(
252  OdInt32 nRow,
253  OdInt32 nCol) const;
254 
255  virtual OdString getText(
256  OdInt32 nRow,
257  OdInt32 nCol,
258  OdUInt32 nContent) const;
259 
260  virtual OdString getText(
261  OdInt32 nRow,
262  OdInt32 nCol,
263  OdUInt32 nContent,
264  OdValue::FormatOption nOption) const;
265 
266  virtual void setText(
267  OdInt32 nRow,
268  OdInt32 nCol,
269  const OdString& sText);
270 
271  virtual void setText(
272  OdInt32 nRow,
273  OdInt32 nCol,
274  OdUInt32 nContent,
275  const OdString& sText);
276 
277  virtual bool hasFormula(
278  OdInt32 nRow,
279  OdInt32 nCol,
280  OdUInt32 nContent) const;
281 
283  OdInt32 nRow,
284  OdInt32 nCol,
285  OdUInt32 nContent) const;
286 
287  virtual void setFormula(
288  OdInt32 nRow,
289  OdInt32 nCol,
290  OdUInt32 nContent,
291  const OdString sFormula);
292 
294  OdInt32 nRow,
295  OdInt32 nCol) const;
296 
298  OdInt32 nRow,
299  OdInt32 nCol,
300  OdUInt32 nContent) const;
301 
302  virtual void setFieldId(
303  OdInt32 nRow,
304  OdInt32 nCol,
305  const OdDbObjectId& idField);
306 
307  virtual void setFieldId(
308  OdInt32 nRow,
309  OdInt32 nCol,
310  OdUInt32 nContent,
311  const OdDbObjectId& idField);
312 
314  OdInt32 nRow,
315  OdInt32 nCol,
316  OdUInt32 nContent,
317  OdDb::OpenMode mode) const;
318 
320  OdInt32 nRow,
321  OdInt32 nCol) const;
322 
324  OdInt32 nRow,
325  OdInt32 nCol,
326  OdUInt32 nContent) const;
327 
328  virtual void setBlockTableRecordId(
329  OdInt32 nRow,
330  OdInt32 nCol,
331  const OdDbObjectId& idBTR);
332 
333  virtual void setBlockTableRecordId(
334  OdInt32 nRow,
335  OdInt32 nCol,
336  OdUInt32 nContent,
337  const OdDbObjectId& idBTR);
338 
340  OdInt32 nRow,
341  OdInt32 nCol,
342  const OdDbObjectId& idAttDef) const;
343 
345  OdInt32 nRow,
346  OdInt32 nCol,
347  OdUInt32 nContent,
348  const OdDbObjectId& idAttDef) const;
349 
351  OdInt32 nRow,
352  OdInt32 nCol,
353  const OdDbObjectId& idAttDef,
354  const OdString sAttValue);
355 
357  OdInt32 nRow,
358  OdInt32 nCol,
359  OdUInt32 nContent,
360  const OdDbObjectId& idAttDef,
361  const OdString sAttValue);
362 
363  virtual bool isLinked(
364  OdInt32 nRow,
365  OdInt32 nCol) const;
367  OdInt32 nRow,
368  OdInt32 nCol) const;
370  OdInt32 nRow,
371  OdInt32 nCol,
372  OdDb::OpenMode mode) const;
374  const OdCellRange& pRange,
375  OdDbObjectIdArray& dataLinkIds) const;
376  virtual void setDataLink(
377  OdInt32 nRow,
378  OdInt32 nCol,
379  const OdDbObjectId& idDataLink,
380  bool bUpdate);
381  virtual void setDataLink(
382  const OdCellRange& range,
383  const OdDbObjectId& idDataLink,
384  bool bUpdate);
386  OdInt32 nRow,
387  OdInt32 nCol) const;
388  virtual void removeDataLink(
389  OdInt32 nRow,
390  OdInt32 nCol);
391  virtual void removeDataLink(void);
392 
393  virtual void updateDataLink(
394  OdInt32 nRow,
395  OdInt32 nCol,
397  OdDb::UpdateOption nOption);
398  virtual void updateDataLink(
399  OdDb::UpdateDirection nDir,
400  OdDb::UpdateOption nOption);
401 
402  virtual void clear();
403  virtual void copyFrom(
404  const OdRxObject* pSource);
405  virtual void copyFrom(const OdDbLinkedTableData* pSrc,
406  OdDb::TableCopyOption nOption);
407  virtual void copyFrom(const OdDbLinkedTableData* pSrc,
408  OdDb::TableCopyOption nOption,
409  const OdCellRange& srcRange,
410  const OdCellRange& targetRange,
411  OdCellRange* pNewTargetRange);
412 
414  OdDbDwgFiler* pFiler);
415  virtual void dwgOutFields(
416  OdDbDwgFiler* pFiler) const;
418  OdDbDxfFiler* pFiler);
419  virtual void dxfOutFields(
420  OdDbDxfFiler* pFiler) const;
421 };
422 
424 
425 #include "TD_PackPop.h"
426 
427 #endif // OD_DBLINKEDTABLEDATA_H
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbLinkedTableData > OdDbLinkedTableDataPtr
unsigned int OdUInt32
int OdInt32
OdResult
Definition: OdResult.h:29
virtual void setCustomData(OdInt32 nRow, OdInt32 nCol, OdInt32 nData)
virtual OdInt32 appendColumn(OdInt32 nNumCols)
virtual void copyFrom(const OdDbLinkedTableData *pSrc, OdDb::TableCopyOption nOption)
virtual void setFormula(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdString sFormula)
virtual void clear()
virtual void updateDataLink(OdInt32 nRow, OdInt32 nCol, OdDb::UpdateDirection nDir, OdDb::UpdateOption nOption)
virtual void setDataType(OdInt32 nRow, OdInt32 nCol, OdValue::DataType nDataType, OdValue::UnitType nUnitType)
virtual void copyFrom(const OdDbLinkedTableData *pSrc, OdDb::TableCopyOption nOption, const OdCellRange &srcRange, const OdCellRange &targetRange, OdCellRange *pNewTargetRange)
virtual OdDb::CellState cellState(OdInt32 nRow, OdInt32 nCol) const
virtual bool canInsert(OdInt32 nIndex, bool bRow) const
virtual void setBlockAttributeValue(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdDbObjectId &idAttDef, const OdString sAttValue)
virtual OdInt32 insertColumn(OdInt32 nIndex, OdInt32 nNumCols)
virtual void deleteContent(OdInt32 nRow, OdInt32 nCol)
virtual OdString getToolTip(OdInt32 nRow, OdInt32 nCol) const
virtual OdString getBlockAttributeValue(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdDbObjectId &idAttDef) const
virtual OdDb::CellContentType contentType(OdInt32 nRow, OdInt32 nCol) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual void getDataType(OdInt32 nRow, OdInt32 nCol, OdValue::DataType &nDataType, OdValue::UnitType &nUnitType) const
virtual void setDataType(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, OdValue::DataType nDataType, OdValue::UnitType nUnitType)
virtual void getDataType(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, OdValue::DataType &nDataType, OdValue::UnitType &nUnitType) const
virtual OdInt32 insertRow(OdInt32 nIndex, OdInt32 nNumRows)
virtual void deleteContent(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent)
virtual OdDbObjectId getFieldId(OdInt32 nRow, OdInt32 nCol) const
virtual OdInt32 numRows() const
virtual void setBlockAttributeValue(OdInt32 nRow, OdInt32 nCol, const OdDbObjectId &idAttDef, const OdString sAttValue)
virtual void setDataFormat(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdString sFormat)
virtual void moveContent(OdInt32 nRow, OdInt32 nCol, OdInt32 nFromIndex, OdInt32 nToIndex)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual void setCustomData(OdInt32 nRow, OdInt32 nCol, const OdString &sKey, const OdValue *pData)
virtual void setFieldId(OdInt32 nRow, OdInt32 nCol, const OdDbObjectId &idField)
virtual OdString getText(OdInt32 nRow, OdInt32 nCol) const
virtual OdDbFieldPtr getField(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, OdDb::OpenMode mode) const
virtual void setFieldId(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdDbObjectId &idField)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
ODDB_DECLARE_MEMBERS(OdDbLinkedTableData)
virtual void setSize(OdInt32 nRows, OdInt32 nCols)
virtual OdString getColumnName(OdInt32 nIndex) const
virtual void setColumnName(OdInt32 nIndex, const OdString name)
virtual void setBlockTableRecordId(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdDbObjectId &idBTR)
virtual OdString dataFormat(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent) const
virtual void deleteColumn(OdInt32 nIndex, OdInt32 nNumColsToDelete)
virtual OdDbObjectId getFieldId(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent) const
virtual void setDataLink(const OdCellRange &range, const OdDbObjectId &idDataLink, bool bUpdate)
virtual OdInt32 getDataLink(const OdCellRange &pRange, OdDbObjectIdArray &dataLinkIds) const
virtual void setValue(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdValue &value)
virtual OdInt32 appendRow(OdInt32 nNumRows)
virtual OdInt32 numColumns() const
virtual bool isContentEditable(OdInt32 nRow, OdInt32 nCol) const
virtual OdDbObjectId getBlockTableRecordId(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent) const
virtual void updateDataLink(OdDb::UpdateDirection nDir, OdDb::UpdateOption nOption)
virtual void setBlockTableRecordId(OdInt32 nRow, OdInt32 nCol, const OdDbObjectId &idBTR)
virtual void setValue(OdInt32 nRow, OdInt32 nCol, const OdValue &value)
virtual OdString dataFormat(OdInt32 nRow, OdInt32 nCol) const
virtual OdDbObjectId getDataLink(OdInt32 nRow, OdInt32 nCol) const
virtual OdString getText(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, OdValue::FormatOption nOption) const
virtual void setText(OdInt32 nRow, OdInt32 nCol, const OdString &sText)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual void setDataFormat(OdInt32 nRow, OdInt32 nCol, const OdString sFormat)
virtual OdValue getValue(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, OdValue::FormatOption nOption) const
virtual OdUInt32 numContents(OdInt32 nRow, OdInt32 nCol) const
virtual void setCellState(OdInt32 nRow, OdInt32 nCol, OdDb::CellState nCellState)
virtual OdDb::CellContentType contentType(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent) const
virtual void deleteContent(const OdCellRange &range)
virtual OdUInt32 createContent(OdInt32 nRow, OdInt32 nCol, OdInt32 nIndex)
virtual OdCellRange getDataLinkRange(OdInt32 nRow, OdInt32 nCol) const
virtual void setToolTip(OdInt32 nRow, OdInt32 nCol, const OdString &sToolTip)
virtual OdDbObjectId getBlockTableRecordId(OdInt32 nRow, OdInt32 nCol) const
virtual OdString getFormula(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent) const
virtual void deleteRow(OdInt32 nIndex, OdInt32 nNumRowsToDelete)
virtual OdDbDataLinkPtr getDataLink(OdInt32 nRow, OdInt32 nCol, OdDb::OpenMode mode) const
virtual OdString getText(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent) const
virtual void setValue(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdValue &value, OdValue::ParseOption nOption)
virtual bool canDelete(OdInt32 nIndex, OdInt32 nCount, bool bRow) const
virtual void setDataLink(OdInt32 nRow, OdInt32 nCol, const OdDbObjectId &idDataLink, bool bUpdate)
virtual void setText(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent, const OdString &sText)
virtual void copyFrom(const OdRxObject *pSource)
virtual OdValue getValue(OdInt32 nRow, OdInt32 nCol) const
virtual bool hasFormula(OdInt32 nRow, OdInt32 nCol, OdUInt32 nContent) const
virtual bool isLinked(OdInt32 nRow, OdInt32 nCol) const
virtual void removeDataLink(OdInt32 nRow, OdInt32 nCol)
virtual OdString getBlockAttributeValue(OdInt32 nRow, OdInt32 nCol, const OdDbObjectId &idAttDef) const
virtual OdValue getCustomData(OdInt32 nRow, OdInt32 nCol, const OdString &sKey) const
virtual void removeDataLink(void)
virtual OdInt32 getCustomData(OdInt32 nRow, OdInt32 nCol) const
DataType
Definition: OdValue.h:45
ParseOption
Definition: OdValue.h:72
UnitType
Definition: OdValue.h:61
FormatOption
Definition: OdValue.h:82
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLenum GLint * range
Definition: gles2_ext.h:563
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
UpdateDirection
Definition: DbDataLink.h:55
UpdateOption
Definition: DbDataLink.h:61
CellContentType
Definition: DbTableStyle.h:52
TableCopyOption
Definition: DbTableStyle.h:253
OpenMode
Definition: DbObjectId.h:54