CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbLinkedTableData.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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#include "DbTableIterator.h"
37
49{
50public:
51 //DOM-IGNORE-BEGIN
53 //DOM-IGNORE-END
54
59
70 virtual void setSize(
71 OdInt32 nRows,
72 OdInt32 nCols);
73
77 virtual OdInt32 numColumns() const;
78
86 OdInt32 nIndex) const;
87
94 virtual void setColumnName(
95 OdInt32 nIndex,
96 const OdString name);
97
108 OdInt32 nNumCols);
109
122 OdInt32 nIndex,
123 OdInt32 nNumCols);
124
135 virtual void deleteColumn(
136 OdInt32 nIndex,
137 OdInt32 nNumColsToDelete);
138
145 virtual OdInt32 numRows() const;
146
154 virtual bool canInsert(
155 OdInt32 nIndex,
156 bool bRow) const;
157
168 OdInt32 nNumRows);
169
182 OdInt32 nIndex,
183 OdInt32 nNumRows);
184
193 virtual bool canDelete(
194 OdInt32 nIndex,
195 OdInt32 nCount,
196 bool bRow) const;
197
208 virtual void deleteRow(
209 OdInt32 nIndex,
210 OdInt32 nNumRowsToDelete);
211
219 virtual bool isContentEditable(
220 OdInt32 nRow,
221 OdInt32 nCol) const;
222
249 OdInt32 nRow,
250 OdInt32 nCol) const;
251
281 virtual void setCellState(
282 OdInt32 nRow,
283 OdInt32 nCol,
284 OdDb::CellState nCellState);
285
294 OdInt32 nRow,
295 OdInt32 nCol) const;
296
304 virtual void setToolTip(
305 OdInt32 nRow,
306 OdInt32 nCol,
307 const OdString& sToolTip);
308
319 OdInt32 nRow,
320 OdInt32 nCol) const;
321
331 virtual void setCustomData(
332 OdInt32 nRow,
333 OdInt32 nCol,
334 OdInt32 nData);
335
346 OdInt32 nRow,
347 OdInt32 nCol,
348 const OdString& sKey ) const;
349
360 virtual void setCustomData(
361 OdInt32 nRow,
362 OdInt32 nCol,
363 const OdString& sKey,
364 const OdValue* pData);
365
377 OdInt32 nRow,
378 OdInt32 nCol) const;
379
392 OdInt32 nRow,
393 OdInt32 nCol,
394 OdInt32 nIndex);
395
407 virtual void moveContent(
408 OdInt32 nRow,
409 OdInt32 nCol,
410 OdInt32 nFromIndex,
411 OdInt32 nToIndex);
412
426 virtual void deleteContent(
427 OdInt32 nRow,
428 OdInt32 nCol,
429 OdUInt32 nContent);
430
443 virtual void deleteContent(
444 OdInt32 nRow,
445 OdInt32 nCol);
446
452 virtual void deleteContent(
453 const OdCellRange& range);
454
473 OdInt32 nRow,
474 OdInt32 nCol) const;
475
495 OdInt32 nRow,
496 OdInt32 nCol,
497 OdUInt32 nContent) const;
498
542 virtual void getDataType(
543 OdInt32 nRow,
544 OdInt32 nCol,
545 OdValue::DataType& nDataType,
546 OdValue::UnitType& nUnitType) const;
547
592 virtual void getDataType(
593 OdInt32 nRow,
594 OdInt32 nCol,
595 OdUInt32 nContent,
596 OdValue::DataType& nDataType,
597 OdValue::UnitType& nUnitType) const;
598
646 virtual void setDataType(
647 OdInt32 nRow,
648 OdInt32 nCol,
649 OdValue::DataType nDataType,
650 OdValue::UnitType nUnitType);
651
698 virtual void setDataType(
699 OdInt32 nRow,
700 OdInt32 nCol,
701 OdUInt32 nContent,
702 OdValue::DataType nDataType,
703 OdValue::UnitType nUnitType);
704
713 OdInt32 nRow,
714 OdInt32 nCol) const;
715
724 OdInt32 nRow,
725 OdInt32 nCol,
726 OdUInt32 nContent) const;
727
741 virtual void setDataFormat(
742 OdInt32 nRow,
743 OdInt32 nCol,
744 const OdString sFormat);
745
760 virtual void setDataFormat(
761 OdInt32 nRow,
762 OdInt32 nCol,
763 OdUInt32 nContent,
764 const OdString sFormat);
765
774 OdInt32 nRow,
775 OdInt32 nCol) const;
776
798 OdInt32 nRow,
799 OdInt32 nCol,
800 OdUInt32 nContent,
801 OdValue::FormatOption nOption) const;
802
816 virtual void setValue(
817 OdInt32 nRow,
818 OdInt32 nCol,
819 const OdValue& value);
820
835 virtual void setValue(
836 OdInt32 nRow,
837 OdInt32 nCol,
838 OdUInt32 nContent,
839 const OdValue& value);
840
868 virtual void setValue(
869 OdInt32 nRow,
870 OdInt32 nCol,
871 OdUInt32 nContent,
872 const OdValue& value,
873 OdValue::ParseOption nOption);
874
883 OdInt32 nRow,
884 OdInt32 nCol) const;
885
895 OdInt32 nRow,
896 OdInt32 nCol,
897 OdUInt32 nContent) const;
898
920 OdInt32 nRow,
921 OdInt32 nCol,
922 OdUInt32 nContent,
923 OdValue::FormatOption nOption) const;
924
938 virtual void setText(
939 OdInt32 nRow,
940 OdInt32 nCol,
941 const OdString& sText);
942
957 virtual void setText(
958 OdInt32 nRow,
959 OdInt32 nCol,
960 OdUInt32 nContent,
961 const OdString& sText);
962
972 virtual bool hasFormula(
973 OdInt32 nRow,
974 OdInt32 nCol,
975 OdUInt32 nContent) const;
976
987 OdInt32 nRow,
988 OdInt32 nCol,
989 OdUInt32 nContent) const;
990
1002 virtual void setFormula(
1003 OdInt32 nRow,
1004 OdInt32 nCol,
1005 OdUInt32 nContent,
1006 const OdString sFormula);
1007
1016 OdInt32 nRow,
1017 OdInt32 nCol) const;
1018
1029 OdInt32 nRow,
1030 OdInt32 nCol,
1031 OdUInt32 nContent) const;
1032
1046 virtual void setFieldId(
1047 OdInt32 nRow,
1048 OdInt32 nCol,
1049 const OdDbObjectId& idField);
1050
1065 virtual void setFieldId(
1066 OdInt32 nRow,
1067 OdInt32 nCol,
1068 OdUInt32 nContent,
1069 const OdDbObjectId& idField);
1070
1091 OdInt32 nRow,
1092 OdInt32 nCol,
1093 OdUInt32 nContent,
1094 OdDb::OpenMode mode) const;
1095
1105 OdInt32 nRow,
1106 OdInt32 nCol) const;
1107
1118 OdInt32 nRow,
1119 OdInt32 nCol,
1120 OdUInt32 nContent) const;
1121
1137 OdInt32 nRow,
1138 OdInt32 nCol,
1139 const OdDbObjectId& idBTR);
1140
1157 OdInt32 nRow,
1158 OdInt32 nCol,
1159 OdUInt32 nContent,
1160 const OdDbObjectId& idBTR);
1161
1175 OdInt32 nRow,
1176 OdInt32 nCol,
1177 const OdDbObjectId& idAttDef) const;
1178
1193 OdInt32 nRow,
1194 OdInt32 nCol,
1195 OdUInt32 nContent,
1196 const OdDbObjectId& idAttDef) const;
1197
1213 OdInt32 nRow,
1214 OdInt32 nCol,
1215 const OdDbObjectId& idAttDef,
1216 const OdString sAttValue);
1217
1234 OdInt32 nRow,
1235 OdInt32 nCol,
1236 OdUInt32 nContent,
1237 const OdDbObjectId& idAttDef,
1238 const OdString sAttValue);
1239
1247 virtual bool isLinked(
1248 OdInt32 nRow,
1249 OdInt32 nCol) const;
1250
1259 OdInt32 nRow,
1260 OdInt32 nCol) const;
1261
1281 OdInt32 nRow,
1282 OdInt32 nCol,
1283 OdDb::OpenMode mode) const;
1284
1293 const OdCellRange& pRange,
1294 OdDbObjectIdArray& dataLinkIds) const;
1295
1309 virtual void setDataLink(
1310 OdInt32 nRow,
1311 OdInt32 nCol,
1312 const OdDbObjectId& idDataLink,
1313 bool bUpdate);
1314
1327 virtual void setDataLink(
1328 const OdCellRange& range,
1329 const OdDbObjectId& idDataLink,
1330 bool bUpdate);
1331
1340 OdInt32 nRow,
1341 OdInt32 nCol) const;
1342
1353 virtual void removeDataLink(
1354 OdInt32 nRow,
1355 OdInt32 nCol);
1356
1360 virtual void removeDataLink(void);
1361
1399 virtual void updateDataLink(
1400 OdInt32 nRow,
1401 OdInt32 nCol,
1403 OdDb::UpdateOption nOption);
1404
1437 virtual void updateDataLink(
1439 OdDb::UpdateOption nOption);
1440
1444 virtual void clear();
1445
1451 virtual void copyFrom(
1452 const OdRxObject* pSource);
1453
1497 virtual void copyFrom(const OdDbLinkedTableData* pSrc,
1498 OdDb::TableCopyOption nOption);
1499
1546 virtual void copyFrom(const OdDbLinkedTableData* pSrc,
1547 OdDb::TableCopyOption nOption,
1548 const OdCellRange& srcRange,
1549 const OdCellRange& targetRange,
1550 OdCellRange* pNewTargetRange);
1551
1556
1580 OdDb::TableIteratorOption nOption) const;
1581
1586 OdDbDwgFiler* pFiler);
1587
1591 virtual void dwgOutFields(
1592 OdDbDwgFiler* pFiler) const;
1593
1598 OdDbDxfFiler* pFiler);
1599
1603 virtual void dxfOutFields(
1604 OdDbDxfFiler* pFiler) const;
1605};
1606
1612
1613#include "TD_PackPop.h"
1614
1615#endif // OD_DBLINKEDTABLEDATA_H
#define DBENT_EXPORT
Definition: DbExport.h:67
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)
OdDbTableIteratorPtr getIterator(const OdCellRange *pRange, OdDb::TableIteratorOption nOption) const
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)
OdDbTableIteratorPtr getIterator(void) const
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:46
ParseOption
Definition: OdValue.h:73
UnitType
Definition: OdValue.h:62
FormatOption
Definition: OdValue.h:83
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
TableIteratorOption
Definition: DbTableStyle.h:335
OpenMode
Definition: DbObjectId.h:54