CFx SDK Documentation  2023 SP0
DbTable.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 #ifndef OD_DBTABLE_H
26 #define OD_DBTABLE_H
27 
28 #include "TD_PackPush.h"
29 #include "DbBlockReference.h"
30 #include "DbTableStyle.h"
31 #include "DbDataLink.h"
32 #include "UInt32Array.h"
33 
34 // typedef for OdSubentPathArray
35 //
36 
37 class OdDbTableImpl;
39 class OdDbTableTemplate;
40 
41 namespace OdDb
42 {
47  {
60  };
61 
66  {
73  };
74 
79  {
90  };
91 };
92 
102 {
103 public:
105 
110  {
112  kTitleSuppressed = 1,
114  kHeaderSuppressed = 2,
118  kHorzCellMargin = 4,
120  kVertCellMargin = 5,
122  kTitleRowColor = 6,
124  kHeaderRowColor = 7,
126  kDataRowColor = 8,
128  kTitleRowFillNone = 9,
130  kHeaderRowFillNone = 10,
132  kDataRowFillNone = 11,
134  kTitleRowFillColor = 12,
136  kHeaderRowFillColor = 13,
138  kDataRowFillColor = 14,
140  kTitleRowAlignment = 15,
142  kHeaderRowAlignment = 16,
144  kDataRowAlignment = 17,
146  kTitleRowTextStyle = 18,
148  kHeaderRowTextStyle = 19,
150  kDataRowTextStyle = 20,
152  kTitleRowTextHeight = 21,
154  kHeaderRowTextHeight = 22,
156  kDataRowTextHeight = 23,
158  kTitleRowDataType = 24,
160  kHeaderRowDataType = 25,
162  kDataRowDataType = 26,
164  kTitleHorzTopColor = 40,
166  kTitleHorzInsideColor = 41,
168  kTitleHorzBottomColor = 42,
170  kTitleVertLeftColor = 43,
172  kTitleVertInsideColor = 44,
174  kTitleVertRightColor = 45,
176  kHeaderHorzTopColor = 46,
178  kHeaderHorzInsideColor = 47,
180  kHeaderHorzBottomColor = 48,
182  kHeaderVertLeftColor = 49,
184  kHeaderVertInsideColor = 50,
186  kHeaderVertRightColor = 51,
188  kDataHorzTopColor = 52,
190  kDataHorzInsideColor = 53,
192  kDataHorzBottomColor = 54,
194  kDataVertLeftColor = 55,
196  kDataVertInsideColor = 56,
198  kDataVertRightColor = 57,
200  kTitleHorzTopLineWeight = 70,
202  kTitleHorzInsideLineWeight = 71,
204  kTitleHorzBottomLineWeight = 72,
206  kTitleVertLeftLineWeight = 73,
208  kTitleVertInsideLineWeight = 74,
210  kTitleVertRightLineWeight = 75,
212  kHeaderHorzTopLineWeight = 76,
214  kHeaderHorzInsideLineWeight = 77,
216  kHeaderHorzBottomLineWeight = 78,
218  kHeaderVertLeftLineWeight = 79,
220  kHeaderVertInsideLineWeight = 80,
222  kHeaderVertRightLineWeight = 81,
224  kDataHorzTopLineWeight = 82,
226  kDataHorzInsideLineWeight = 83,
228  kDataHorzBottomLineWeight = 84,
230  kDataVertLeftLineWeight = 85,
232  kDataVertInsideLineWeight = 86,
234  kDataVertRightLineWeight = 87,
235 
237  kTitleHorzTopVisibility = 100,
239  kTitleHorzInsideVisibility = 101,
241  kTitleHorzBottomVisibility = 102,
243  kTitleVertLeftVisibility = 103,
245  kTitleVertInsideVisibility = 104,
247  kTitleVertRightVisibility = 105,
249  kHeaderHorzTopVisibility = 106,
251  kHeaderHorzInsideVisibility = 107,
253  kHeaderHorzBottomVisibility = 108,
255  kHeaderVertLeftVisibility = 109,
257  kHeaderVertInsideVisibility = 110,
259  kHeaderVertRightVisibility = 111,
261  kDataHorzTopVisibility = 112,
263  kDataHorzInsideVisibility = 113,
265  kDataHorzBottomVisibility = 114,
267  kDataVertLeftVisibility = 115,
269  kDataVertInsideVisibility = 116,
271  kDataVertRightVisibility = 117,
272 
274  kCellAlignment = 130,
276  kCellBackgroundFillNone = 131,
278  kCellBackgroundColor = 132,
280  kCellContentColor = 133,
282  kCellTextStyle = 134,
284  kCellTextHeight = 135,
286  kCellTopGridColor = 136,
288  kCellRightGridColor = 137,
290  kCellBottomGridColor = 138,
292  kCellLeftGridColor = 139,
294  kCellTopGridLineWeight = 140,
296  kCellRightGridLineWeight = 141,
298  kCellBottomGridLineWeight = 142,
300  kCellLeftGridLineWeight = 143,
302  kCellTopVisibility = 144,
304  kCellRightVisibility = 145,
306  kCellBottomVisibility = 146,
308  kCellLeftVisibility = 147
309  };
310 
312  // virtual ~OdDbTable();
313 
314 
318  virtual OdDbObjectId tableStyle() const;
319 
328  virtual void setTableStyle(
329  const OdDbObjectId& tableStyleId);
330 
334  virtual OdGeVector3d direction() const;
335 
341  virtual void setDirection(
342  const OdGeVector3d& horizVector);
343 
350  virtual OdUInt32 numRows() const;
351 
362  virtual void setNumRows(
363  OdUInt32 numRows);
364 
368  virtual OdUInt32 numColumns() const;
369 
380  virtual void setNumColumns(OdUInt32 numColumns);
381 
385  virtual double width() const;
386 
400  virtual void setWidth(double width);
401 
407  virtual double columnWidth(OdUInt32 column) const;
408 
418  virtual void setColumnWidth(
419  OdUInt32 column,
420  double width);
421 
430  virtual void setColumnWidth(
431  double width);
432 
436  virtual double height() const;
437 
448  virtual void setHeight(
449  double height);
450 
456  virtual double rowHeight(
457  OdUInt32 row) const;
458 
468  virtual void setRowHeight(
469  OdUInt32 row,
470  double height);
471 
480  virtual void setRowHeight(
481  double height);
482 
488  virtual double minimumColumnWidth(
489  OdUInt32 column) const;
490 
496  virtual double minimumRowHeight(
497  OdUInt32 row) const;
498 
502  virtual double minimumTableWidth() const;
503 
507  virtual double minimumTableHeight() const;
508 
509  //********************************************************************
510  // Get and set methods for table style overrides
511  //********************************************************************
512 
519  virtual double horzCellMargin() const;
520 
531  virtual void setHorzCellMargin(
532  double cellMargin);
533 
540  virtual double vertCellMargin() const;
541 
552  virtual void setVertCellMargin(double cellMargin);
553 
567 
584  virtual void setFlowDirection(
585  OdDb::FlowDirection flowDirection);
586 
590  virtual bool isTitleSuppressed() const;
591 
597  virtual void suppressTitleRow(
598  bool suppress);
599 
603  virtual bool isHeaderSuppressed() const;
604 
610  virtual void suppressHeaderRow(
611  bool suppress);
612 
644  OdDb::RowType rowType = OdDb::kDataRow) const;
645 
668  OdUInt32 row,
669  OdUInt32 column) const;
670 
705  virtual void setAlignment(
706  OdDb::CellAlignment alignment,
707  OdUInt32 rowTypes = OdDb::kAllRows);
708 
734  virtual void setAlignment(
735  OdUInt32 row,
736  OdUInt32 column,
737  OdDb::CellAlignment alignment);
738 
754  virtual bool isBackgroundColorNone(
755  OdDb::RowType rowType = OdDb::kDataRow) const;
756 
763  virtual bool isBackgroundColorNone(
764  OdUInt32 row,
765  OdUInt32 column) const;
766 
787  bool disable,
788  OdUInt32 rowTypes = OdDb::kAllRows);
789 
801  OdUInt32 row,
802  OdUInt32 column,
803  bool disable);
804 
821  OdDb::RowType rowType = OdDb::kDataRow) const;
822 
830  OdUInt32 row,
831  OdUInt32 column) const;
832 
852  virtual void setBackgroundColor(
853  const OdCmColor& color,
854  OdUInt32 rowTypes = OdDb::kAllRows);
855 
866  virtual void setBackgroundColor(
867  OdUInt32 row,
868  OdUInt32 column,
869  const OdCmColor& color);
870 
887  OdDb::RowType rowType = OdDb::kDataRow) const;
888 
896  OdUInt32 row,
897  OdUInt32 column) const;
898 
918  virtual void setContentColor(
919  const OdCmColor& color,
920  OdUInt32 nRowType = OdDb::kAllRows);
921 
932  virtual void setContentColor(
933  OdUInt32 row,
934  OdUInt32 column,
935  const OdCmColor& color);
936 
953  OdDb::RowType rowType = OdDb::kDataRow) const;
954 
962  OdUInt32 row,
963  OdUInt32 column) const;
964 
965 
985  virtual void setTextStyle(
986  const OdDbObjectId& textStyleId,
987  OdUInt32 rowTypes = OdDb::kAllRows);
988 
1000  virtual void setTextStyle(
1001  OdUInt32 row,
1002  OdUInt32 column,
1003  const OdDbObjectId& textStyleId);
1004 
1020  virtual double textHeight(
1021  OdDb::RowType rowType = OdDb::kDataRow) const;
1022 
1029  virtual double textHeight(
1030  OdUInt32 row,
1031  OdUInt32 column) const;
1032 
1033 
1054  virtual void setTextHeight(
1055  double height,
1056  OdUInt32 rowTypes = OdDb::kAllRows);
1057 
1058 
1069  virtual void setTextHeight(
1070  OdUInt32 row,
1071  OdUInt32 column,
1072  double height);
1073 
1103  OdDb::GridLineType gridlineType,
1104  OdDb::RowType rowType = OdDb::kDataRow) const;
1105 
1126  OdUInt32 row,
1127  OdUInt32 column,
1128  OdDb::CellEdgeMask edgeType) const;
1129 
1162  virtual void setGridLineWeight(
1163  OdDb::LineWeight lineWeight,
1164  OdUInt32 gridlineTypes,
1165  OdUInt32 rowTypes);
1166 
1189  virtual void setGridLineWeight(
1190  OdUInt32 row,
1191  OdUInt32 column,
1192  OdInt16 edgeTypes,
1193  OdDb::LineWeight lineWeight);
1194 
1221  OdDb::GridLineType gridlineType,
1222  OdDb::RowType rowType = OdDb::kDataRow) const;
1223 
1243  OdUInt32 row,
1244  OdUInt32 column,
1245  OdDb::CellEdgeMask edgeType) const;
1246 
1284  OdDb::GridLineType gridlineType,
1285  OdDb::RowType rowType = OdDb::kDataRow) const;
1286 
1314  OdUInt32 row,
1315  OdUInt32 column,
1316  OdDb::CellEdgeMask edgeType) const;
1317 
1358  virtual void setGridVisibility(
1359  OdDb::Visibility gridVisiblity,
1360  OdUInt32 gridlineTypes,
1361  OdUInt32 rowTypes);
1362 
1393  virtual void setGridVisibility(
1394  OdUInt32 row,
1395  OdUInt32 column,
1396  OdInt16 edgeTypes,
1397  OdDb::Visibility gridVisibility);
1398 
1407  virtual bool tableStyleOverrides(
1408  OdUInt32Array& overrides) const;
1409 
1426  int option = 0);
1427 
1444  OdUInt32 row,
1445  OdUInt32 column) const;
1446 
1466  virtual void setCellType(
1467  OdUInt32 row,
1468  OdUInt32 column,
1469  OdDb::CellType cellType);
1470 
1488  virtual void getCellExtents(
1489  OdUInt32 row,
1490  OdUInt32 column,
1491  bool isOuterCell,
1492  OdGePoint3dArray& pts) const;
1493 
1505  OdUInt32 row,
1506  OdUInt32 column) const;
1507 
1508 
1516  virtual bool cellStyleOverrides(
1517  OdUInt32 row,
1518  OdUInt32 column,
1519  OdUInt32Array& overrides) const;
1520 
1528  OdUInt32 row,
1529  OdUInt32 column);
1530 
1541  virtual void deleteCellContent(
1542  OdUInt32 row,
1543  OdUInt32 column);
1544 
1561  OdUInt32 row) const;
1562 
1570  OdUInt32 row,
1571  OdUInt32 column) const;
1572 
1584  virtual void setTextString(
1585  OdUInt32 row,
1586  OdUInt32 column,
1587  const OdString& textString);
1588 
1596  OdUInt32 row,
1597  OdUInt32 column) const;
1598 
1610  virtual void setFieldId(
1611  OdUInt32 row,
1612  OdUInt32 column,
1613  const OdDbObjectId& fieldId);
1614 
1615 
1634  OdUInt32 row,
1635  OdUInt32 column) const;
1636 
1659  virtual void setTextRotation(
1660  OdUInt32 row,
1661  OdUInt32 column,
1662  OdDb::RotationAngle textRotation);
1663 
1664 
1672  virtual bool isAutoScale(
1673  OdUInt32 row,
1674  OdUInt32 column) const;
1675 
1688  virtual void setAutoScale(
1689  OdUInt32 row,
1690  OdUInt32 column,
1691  bool autoScale);
1692 
1700  OdUInt32 row,
1701  OdUInt32 column) const;
1702 
1717  OdUInt32 row,
1718  OdUInt32 column,
1719  const OdDbObjectId& blockId,
1720  bool autoScale = false);
1721 
1728  virtual double blockScale(
1729  OdUInt32 row,
1730  OdUInt32 column) const;
1731 
1745  virtual void setBlockScale(
1746  OdUInt32 row,
1747  OdUInt32 column,
1748  double blockScale);
1749 
1756  virtual double blockRotation(
1757  OdUInt32 row,
1758  OdUInt32 column) const;
1759 
1771  virtual void setBlockRotation(
1772  OdUInt32 row,
1773  OdUInt32 column,
1774  double blockRotation);
1775 
1785  OdUInt32 row,
1786  OdUInt32 column,
1787  const OdDbObjectId& attdefId,
1788  OdString& attValue) const;
1789 
1803  OdUInt32 row,
1804  OdUInt32 column,
1805  const OdDbObjectId& attdefId,
1806  const OdString& attValue);
1807 
1837  virtual void setGridColor(
1838  const OdCmColor& color,
1839  OdUInt32 gridlineTypes,
1840  OdUInt32 rowTypes);
1841 
1864  virtual void setGridColor(
1865  OdUInt32 row,
1866  OdUInt32 column,
1867  OdInt16 edgeTypes,
1868  const OdCmColor& color);
1869 
1881  virtual void insertColumns(
1882  OdUInt32 column,
1883  double width,
1884  OdUInt32 numColumns = 1);
1885 
1896  virtual void deleteColumns(
1897  OdUInt32 column,
1898  OdUInt32 numColumns = 1);
1899 
1910  virtual void insertRows(
1911  OdUInt32 row,
1912  double height,
1913  OdUInt32 numRows = 1);
1914 
1925  virtual void deleteRows(
1926  OdUInt32 row,
1927  OdUInt32 numRows = 1);
1928 
1942  virtual void mergeCells(
1943  OdUInt32 minRow,
1944  OdUInt32 maxRow,
1945  OdUInt32 minColumn,
1946  OdUInt32 maxColumn);
1947 
1961  virtual void unmergeCells(
1962  OdUInt32 minRow,
1963  OdUInt32 maxRow,
1964  OdUInt32 minColumn,
1965  OdUInt32 maxColumn);
1966 
1982  virtual bool isMergedCell(
1983  OdUInt32 row,
1984  OdUInt32 column,
1985  OdUInt32* minRow = 0,
1986  OdUInt32* maxRow = 0,
1987  OdUInt32* minColumn = 0,
1988  OdUInt32* maxColumn = 0) const;
1989 
1997  OdUInt32 row,
1998  OdUInt32 column) const;
1999 
2007  OdUInt32 row,
2008  OdUInt32 column) const;
2009 
2017  OdUInt32 row,
2018  OdUInt32 column) const;
2019 
2027 
2043  bool forceUpdate = true);
2044 
2045  //********************************************************************
2046  // Methods for sub-selection
2047  //********************************************************************
2048  //
2049 
2062  virtual bool hitTest(const OdGePoint3d& wpt,
2063  const OdGeVector3d& wviewVec,
2064  double wxaper,
2065  double wyaper,
2066  OdInt32& resultRowIndex,
2067  OdInt32& resultColumnIndex) const;
2082  virtual bool hitTest(const OdGePoint3d& wpt,
2083  const OdGeVector3d& wviewVec,
2084  double wxaper,
2085  double wyaper,
2086  OdInt32& resultRowIndex,
2087  OdInt32& resultColumnIndex,
2088  OdInt32& contentIndex,
2089  OdDb::TableHitItem& nItem) const;
2110  virtual OdResult select(const OdGePoint3d& wpt,
2111  const OdGeVector3d& wvwVec,
2112  const OdGeVector3d& wvwxVec,
2113  double wxaper,
2114  double wyaper,
2115  bool allowOutside,
2116  bool bInPickFirst,
2117  OdInt32& resultRowIndex,
2118  OdInt32& resultColumnIndex,
2119  OdDbFullSubentPathArray* pPaths = 0) const;
2145  virtual OdResult selectSubRegion(const OdGePoint3d& wpt1,
2146  const OdGePoint3d& wpt2,
2147  const OdGeVector3d& wvwVec,
2148  const OdGeVector3d& wvwxVec,
2149  double wxaper,
2150  double wyaper,
2151  OdDb::SelectType seltype,
2152  bool bIncludeCurrentSelection,
2153  bool bInPickFirst,
2154  OdInt32& rowMin,
2155  OdInt32& rowMax,
2156  OdInt32& colMin,
2157  OdInt32& colMax,
2158  OdDbFullSubentPathArray* pPaths = 0) const;
2169  virtual bool reselectSubRegion(OdDbFullSubentPathArray& paths) const;
2170 
2183  OdInt32& rowMax,
2184  OdInt32& colMin,
2185  OdInt32& colMax) const;
2186 
2194 
2204 
2217  OdInt32 rowMax,
2218  OdInt32 colMin,
2219  OdInt32 colMax);
2223  virtual void clearSubSelection();
2224 
2228  virtual bool hasSubSelection() const;
2229 
2231  OdInt32& resultRowIndex,
2232  OdInt32& resultColumnIndex,
2233  OdDbFullSubentPathArray* pPaths = NULL,
2234  bool bSupportTextCellOnly = true) const;
2235 
2236  //********************************************************************
2237  // Overridden methods from OdDbObject
2238  //********************************************************************
2239  //
2240 
2242  OdDbDwgFiler* pFiler);
2243  virtual void dwgOutFields(
2244  OdDbDwgFiler* pFiler) const;
2245 
2247  OdDbDxfFiler* pFiler);
2248  virtual void dxfOutFields(
2249  OdDbDxfFiler* pFiler) const;
2250 
2251  // virtual OdResult audit(OdDbAuditInfo* pAuditInfo);
2252 
2253  void subClose();
2254 
2260  OdDbDatabase *pDb,
2261  bool doSubents);
2262 
2263  // virtual void objectClosed(const OdDbObjectId objId);
2264  // virtual void erased(const OdDbObject* dbObj,
2265  // bool pErasing = true);
2266  virtual void modified(
2267  const OdDbObject* pObj);
2268 
2270  void* pClsid) const;
2271 
2272  //********************************************************************
2273  // Overridden methods from OdDbEntity
2274  //********************************************************************
2275  //
2276  /*
2277  virtual void list() const;
2278  */
2279 
2280  virtual bool subWorldDraw(
2281  OdGiWorldDraw* pWd) const;
2282 
2283  /*
2284  virtual OdResult getGripPoints(OdGePoint3dArray&,
2285  OdDbIntArray&,
2286  OdDbIntArray&) const;
2287 
2288  virtual OdResult moveGripPointsAt(const OdDbIntArray&,
2289  const OdGeVector3d&);
2290 
2291  virtual OdResult getStretchPoints(OdGePoint3dArray& stretchPoints)
2292  const;
2293 
2294  virtual OdResult moveStretchPointsAt(const OdDbIntArray&
2295  indices,
2296  const OdGeVector3d& offset);
2297 
2298  virtual OdResult getOsnapPoints(OdDb::OsnapMode osnapMode,
2299  OdGsMarker gsSelectionMark,
2300  const OdGePoint3d& pickPoint,
2301  const OdGePoint3d& lastPoint,
2302  const OdGeMatrix3d& viewXform,
2303  OdGePoint3dArray& snapPoints,
2304  OdDbIntArray& geomIds)
2305  const;
2306  */
2307 
2309  const OdGeMatrix3d& xfm);
2310 
2312  const OdGeMatrix3d& xfm,
2313  OdDbEntityPtr& pCopy) const;
2314 
2315  virtual OdResult subGetGeomExtents(OdGeExtents3d& extents) const;
2316 
2317  /*
2318  virtual OdResult explode(OdDbVoidPtrArray& entitySet) const;
2319  */
2320 
2321  //********************************************************************
2322  // Overridden methods from OdDbBlockReference required for OdDbTable
2323  //********************************************************************
2324  //
2325  //OdGePoint3d position() const;
2326  // virtual OdResult setPosition(const OdGePoint3d&);
2327 
2328  //OdGeVector3d normal() const;
2329  // virtual OdResult setNormal(const OdGeVector3d& newVal);
2330 
2331  //********************************************************************
2332  // Methods for internal use only
2333  //********************************************************************
2334  //
2335  // TODO: Temporary method for navigating after editing cells
2336  /*
2337  virtual OdResult select_next_cell(int dir,
2338  int& resultRowIndex,
2339  int& resultColumnIndex,
2340  OdDbFullSubentPathArray* pPaths = 0,
2341  bool bSupportTextCellOnly = true) const;
2342 
2343  virtual void setRegen();
2344  virtual void suppressInvisibleGrid(bool value);
2345  virtual OdResult getCellExtents(int row,
2346  int column,
2347  double& cellWidth,
2348  double& cellHeight,
2349  bool bAdjustForMargins) const;
2350  */
2351 
2352  // NEW 2007
2370  virtual void getDataType(OdValue::DataType& nDataType,
2371  OdValue::UnitType& nUnitType,
2372  OdDb::RowType type) const;
2373 
2380  virtual void setDataType(OdValue::DataType nDataType,
2381  OdValue::UnitType nUnitType);
2382 
2390  virtual void setDataType(OdValue::DataType nDataType,
2391  OdValue::UnitType nUnitType,
2392  int nRowTypes);
2393 
2395 
2396  virtual void setFormat(const OdString& pszFormat);
2397 
2398  virtual void setFormat(const OdString& pszFormat,
2399  int nRowTypes);
2400 
2410  OdValue::DataType& nDataType,
2411  OdValue::UnitType& nUnitType) const;
2412 
2422  OdValue::DataType nDataType,
2423  OdValue::UnitType nUnitType);
2424 
2431  OdValue value(OdUInt32 row, OdUInt32 col) const;
2432 
2443  void setValue(OdUInt32 row, OdUInt32 col,
2444  const OdValue& val);
2445 
2457  void setValue(OdUInt32 row, OdUInt32 col,
2458  OdString& pszText,
2459  OdValue::ParseOption nOption);
2460 
2470  void resetValue(OdUInt32 row, OdUInt32 col);
2471 
2473 
2474  void setFormat(OdUInt32 row, OdUInt32 col,
2475  const OdString& pszFormat);
2476 
2480  bool isBreakEnabled(void) const;
2481 
2487  void enableBreak (bool bEnable);
2488 
2493 
2500 
2501 
2511  double breakHeight (OdUInt32 index) const;
2512 
2524  double height);
2525 
2535 
2546  const OdGeVector3d& vec);
2547 
2565 
2585 
2589  double breakSpacing (void) const;
2590 
2599  void setBreakSpacing (double spacing);
2600 
2601  //********************************************************************
2602  // New Methods
2603  //********************************************************************
2604 
2614  void setSize (
2615  OdInt32 rows,
2616  OdInt32 cols);
2617 
2627  bool canInsert (
2628  OdInt32 nIndex,
2629  bool bRow) const;
2630 
2639  OdInt32 nIndex,
2640  OdInt32 nInheritFrom,
2641  OdInt32 nNumRows);
2642 
2654  OdInt32 col,
2655  OdInt32 nInheritFrom,
2656  OdInt32 nNumCols);
2657 
2667  bool canDelete (OdInt32 nIndex,
2668  OdInt32 nCount,
2669  bool bRow) const;
2670 
2680  bool isEmpty (
2681  OdInt32 row,
2682  OdInt32 col) const;
2683 
2692  OdInt32 row,
2693  OdInt32 col) const;
2694 
2702  OdInt32 row,
2703  OdInt32 col) const;
2704 
2712  OdInt32 row,
2713  OdInt32 col) const;
2714 
2738  OdInt32 row,
2739  OdInt32 col) const;
2740 
2767  OdInt32 row,
2768  OdInt32 col,
2769  OdDb::CellState nLock);
2770 
2781  OdInt32 row,
2782  OdInt32 col) const;
2783 
2795  OdInt32 row,
2796  OdInt32 col,
2797  OdInt32 nIndex);
2798 
2811  OdInt32 row,
2812  OdInt32 col,
2813  OdInt32 nFromIndex,
2814  OdInt32 nToIndex);
2815 
2827  OdInt32 row,
2828  OdInt32 col);
2829 
2842  OdInt32 row,
2843  OdInt32 col,
2844  OdInt32 nIndex);
2845 
2855  const OdCellRange& range);
2856 
2875  OdInt32 row,
2876  OdInt32 col) const;
2877 
2897  OdInt32 row,
2898  OdInt32 col,
2899  OdInt32 nIndex) const;
2900 
2909  OdInt32 row,
2910  OdInt32 col,
2911  OdInt32 nContent) const;
2912 
2934  OdInt32 row,
2935  OdInt32 col,
2936  OdInt32 nContent,
2937  OdValue::FormatOption nOption) const;
2938 
2951  void setValue (
2952  OdInt32 row,
2953  OdInt32 col,
2954  OdInt32 nContent,
2955  const OdValue& val);
2956 
2982  void setValue (
2983  OdInt32 row,
2984  OdInt32 col,
2985  OdInt32 nContent,
2986  const OdValue& val,
2987  OdValue::ParseOption nOption);
2988 
3013  void setValue (
3014  OdInt32 row,
3015  OdInt32 col,
3016  OdInt32 nContent,
3017  OdString sText,
3018  OdValue::ParseOption nOption);
3019 
3027  OdInt32 row,
3028  OdInt32 col) const;
3029 
3038  OdInt32 row,
3039  OdInt32 col,
3040  OdInt32 nContent) const;
3041 
3054  OdInt32 row,
3055  OdInt32 col,
3056  const OdString& sFormat);
3057 
3071  OdInt32 row,
3072  OdInt32 col,
3073  OdInt32 nContent,
3074  const OdString& sFormat);
3075 
3084  OdInt32 row,
3085  OdInt32 col,
3086  OdInt32 nContent) const;
3087 
3109  OdInt32 row,
3110  OdInt32 col,
3111  OdInt32 nContent,
3112  OdValue::FormatOption nOption) const;
3113 
3134  OdInt32 row,
3135  OdInt32 col,
3136  OdValue::FormatOption nOption ) const;
3137 
3151  OdInt32 row,
3152  OdInt32 col,
3153  OdInt32 nContent,
3154  const OdString& text);
3155 
3163  bool hasFormula (
3164  OdInt32 row,
3165  OdInt32 col,
3166  OdInt32 nContent) const;
3167 
3176  OdInt32 row,
3177  OdInt32 col,
3178  OdInt32 nContent) const;
3179 
3191  void setFormula (
3192  OdInt32 row,
3193  OdInt32 col,
3194  OdInt32 nContent,
3195  const OdString& pszFormula);
3196 
3205  OdInt32 row,
3206  OdInt32 col,
3207  OdInt32 nContent) const;
3208 
3222  void setFieldId (
3223  OdInt32 row,
3224  OdInt32 col,
3225  OdInt32 nContent,
3226  const OdDbObjectId& fieldId,
3227  OdDb::CellOption nFlag);
3228 
3237  OdInt32 row,
3238  OdInt32 col,
3239  OdInt32 nContent) const;
3240 
3255  OdInt32 row,
3256  OdInt32 col,
3257  OdInt32 nContent,
3258  const OdDbObjectId& blkId,
3259  bool autoFit);
3260 
3273  OdInt32 row,
3274  OdInt32 col,
3275  OdInt32 nContent,
3276  const OdDbObjectId& attdefId) const;
3277 
3292  OdInt32 row,
3293  OdInt32 col,
3294  OdInt32 nContent,
3295  const OdDbObjectId& attdefId,
3296  const OdString& atrValue);
3297 
3307  OdInt32 row,
3308  OdInt32 col) const;
3309 
3320  OdInt32 row,
3321  OdInt32 col,
3322  OdInt32 nData);
3323 
3334  OdInt32 row,
3335  OdInt32 col,
3336  const OdString sKey) const;
3337 
3349  OdInt32 row,
3350  OdInt32 col,
3351  const OdString& sKey,
3352  const OdValue* pData);
3353 
3374  OdInt32 row,
3375  OdInt32 col) const;
3376 
3399  OdInt32 row,
3400  OdInt32 col,
3401  const OdString& sCellStyle);
3402 
3425  double margin (
3426  OdInt32 row,
3427  OdInt32 col,
3428  OdDb::CellMargin nMargin) const;
3429 
3453  void setMargin (
3454  OdInt32 row,
3455  OdInt32 col,
3456  OdDb::CellMargin nMargins,
3457  double fMargin);
3458 
3470  OdInt32 row,
3471  OdInt32 col,
3472  OdInt32 content) const;
3473 
3485  OdInt32 row,
3486  OdInt32 col,
3487  OdInt32 nContent) const;
3488 
3502  OdInt32 row,
3503  OdInt32 col,
3504  OdInt32 nContent,
3505  const OdCmColor& color);
3506 
3551  OdInt32 row,
3552  OdInt32 col,
3553  OdInt32 nContent,
3554  OdValue::DataType& nDataType,
3555  OdValue::UnitType& nUnitType) const;
3556 
3601  OdInt32 row,
3602  OdInt32 col,
3603  OdInt32 nContent,
3604  OdValue::DataType nDataType,
3605  OdValue::UnitType nUnitType);
3606 
3618  OdInt32 row,
3619  OdInt32 col,
3620  OdInt32 nContent) const;
3621 
3635  OdInt32 row,
3636  OdInt32 col,
3637  OdInt32 nContent,
3638  const OdDbObjectId& id);
3639 
3650  double textHeight (
3651  OdInt32 row,
3652  OdInt32 col,
3653  OdInt32 nContent) const;
3654 
3668  OdInt32 row,
3669  OdInt32 col,
3670  OdInt32 nContent,
3671  double height);
3672 
3676  double rotation() const;
3677 
3688  double rotation (
3689  OdInt32 row,
3690  OdInt32 col,
3691  OdInt32 nContent) const;
3692 
3698  void setRotation(double fAngle);
3699 
3713  OdInt32 row,
3714  OdInt32 col,
3715  OdInt32 nContent,
3716  double fAngle);
3717 
3726  OdInt32 row,
3727  OdInt32 col,
3728  OdInt32 nContent) const;
3729 
3743  OdInt32 row,
3744  OdInt32 col,
3745  OdInt32 nContent,
3746  bool autoFit);
3747 
3758  double scale (
3759  OdInt32 row,
3760  OdInt32 col,
3761  OdInt32 nContent) const;
3762 
3774  void setScale (
3775  OdInt32 row,
3776  OdInt32 col,
3777  OdInt32 nContent,
3778  double scale);
3779 
3798  OdInt32 row,
3799  OdInt32 col) const;
3800 
3822  OdInt32 row,
3823  OdInt32 col,
3824  OdDb::CellContentLayout nLayout);
3825 
3837  OdInt32 row,
3838  OdInt32 col) const;
3839 
3851  OdInt32 row,
3852  OdInt32 col,
3853  bool bEnable);
3854 
3896  OdInt32 row,
3897  OdInt32 col,
3898  OdInt32 nContent) const;
3899 
3942  OdInt32 row,
3943  OdInt32 col,
3944  OdDb::GridLineType nGridLineType) const;
3945 
3946 
3989  OdInt32 row,
3990  OdInt32 col,
3991  OdInt32 nContent,
3992  OdDb::CellProperty nOverride);
3993 
4024  OdInt32 row,
4025  OdInt32 col,
4026  OdDb::GridLineType nGridLineType,
4027  OdDb::GridProperty nOverride);
4028 
4038  OdInt32 row,
4039  OdInt32 col);
4040 
4078  OdInt32 row,
4079  OdInt32 col,
4080  OdDb::GridLineType nGridLineType) const;
4081 
4120  OdInt32 row,
4121  OdInt32 col,
4122  OdDb::GridLineType nGridLineTypes,
4123  OdDb::GridLineStyle nLineStyle);
4124 
4187  OdInt32 row,
4188  OdInt32 col,
4189  OdDb::GridLineType nGridLineType) const;
4190 
4254  OdInt32 row,
4255  OdInt32 col,
4256  OdDb::GridLineType nGridLineTypes,
4257  OdDb::LineWeight nLineWeight);
4258 
4288  OdInt32 row,
4289  OdInt32 col,
4290  OdDb::GridLineType nGridLineType) const;
4291 
4322  OdInt32 row,
4323  OdInt32 col,
4324  OdDb::GridLineType nGridLineTypes,
4325  const OdDbObjectId& idLinetype);
4326 
4356  OdInt32 row,
4357  OdInt32 col,
4358  OdDb::GridLineType nGridLineType) const;
4359 
4390  OdInt32 row,
4391  OdInt32 col,
4392  OdDb::GridLineType nGridlineTypes,
4393  const OdCmColor& color);
4394 
4432  OdInt32 row,
4433  OdInt32 col,
4434  OdDb::GridLineType nGridLineType) const;
4435 
4474  OdInt32 row,
4475  OdInt32 col,
4476  OdDb::GridLineType nGridLineTypes,
4477  OdDb::Visibility nVisibility);
4478 
4508  OdInt32 row,
4509  OdInt32 col,
4510  OdDb::GridLineType nGridLineType) const;
4511 
4542  OdInt32 row,
4543  OdInt32 col,
4545  nGridLineTypes,
4546  double fSpacing);
4547 
4578  OdInt32 row,
4579  OdInt32 col,
4580  OdDb::GridLineType nGridLineType,
4581  OdGridProperty& gridProp) const;
4582 
4613  OdInt32 row,
4614  OdInt32 col,
4615  OdDb::GridLineType nGridLineTypes,
4616  const OdGridProperty& gridProp);
4617 
4645  const OdCellRange& rangeIn,
4646  OdDb::GridLineType nGridLineTypes,
4647  const OdGridProperty& gridProp);
4648 
4674  bool isLinked (
4675  OdInt32 row,
4676  OdInt32 col) const;
4677 
4685  OdInt32 row,
4686  OdInt32 col) const;
4687 
4707  OdInt32 row,
4708  OdInt32 col,
4709  OdDb::OpenMode mode) const;
4710 
4718  const OdCellRange& pRange,
4719  OdDbObjectIdArray& dataLinkIds) const;
4720 
4733  OdInt32 row,
4734  OdInt32 col,
4735  const OdDbObjectId& idDataLink,
4736  bool bUpdate);
4737 
4749  (const OdCellRange& range,
4750  const OdDbObjectId& idDataLink,
4751  bool bUpdate);
4752 
4760  OdInt32 row,
4761  OdInt32 col) const;
4762 
4773  OdInt32 row,
4774  OdInt32 col);
4775 
4779  void removeDataLink (void);
4780 
4818  OdInt32 row,
4819  OdInt32 col,
4820  OdDb::UpdateDirection nDir,
4821  OdDb::UpdateOption nOption);
4822 
4856  OdDb::UpdateDirection nDir,
4857  OdDb::UpdateOption nOption);
4858 
4865  OdInt32 nIndex) const;
4866 
4874  OdInt32 nIndex,
4875  const OdString& sName);
4876 
4884  OdInt32 row,
4885  OdInt32 col) const;
4886 
4894  void setToolTip (
4895  OdInt32 row,
4896  OdInt32 col,
4897  const OdString sToolTip);
4898  // void createTemplate (OdDbTableTemplate*& pTemplate, OdDb::TableCopyOption nCopyOption);
4899  // void getIndicatorSize (double& fWidth, double& fHeight) const;
4900 
4906  virtual void copyFrom(
4907  const OdRxObject* pSource);
4908 
4915  void copyFrom (
4916  const OdDbLinkedTableData* pSrc,
4917  OdDb::TableCopyOption nOption);
4918 
4928  void copyFrom (const OdDbLinkedTableData* pSrc,
4929  OdDb::TableCopyOption nOption,
4930  const OdCellRange& srcRange,
4931  const OdCellRange& targetRange,
4932  OdCellRange* pNewTargetRangeOut);
4933 
4943  void copyFrom (const OdDbTable* pSrc,
4944  OdDb::TableCopyOption nOption,
4945  const OdCellRange& srcRange,
4946  const OdCellRange& targetRange,
4947  OdCellRange* pNewTargetRangeOut);
4948 
4957  OdDbIdPair& idPair,
4958  OdDbObject* pOwnerObject,
4959  OdDbIdMapping& ownerIdMap);
4960 
4965 
4971  void suppressRegenerateTable(bool bSuppress);
4972 
4974  OdRxObjectPtrArray& entitySet) const ODRX_OVERRIDE;
4975 
4977 
4978 };
4979 
4984 
4985 //FELIX_CHANGE_BEGIN Backport from 22.4
4987 //FELIX_CHANGE_END
4988 
4989 #include "TD_PackPop.h"
4990 
4991 #endif
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
TOOLKIT_EXPORT OdDbTablePtr odDbCreateDataLinkAndTable(OdDbDatabase *pDb, OdString linkName, OdString linkDescription, OdString connectionString)
OdSmartPtr< OdDbTable > OdDbTablePtr
Definition: DbTable.h:4983
scale
Definition: DimVarDefs.h:1684
#define NULL
Definition: GsProperties.h:177
unsigned int OdUInt32
short OdInt16
int OdInt32
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual OdResult selectSubRegion(const OdGePoint3d &wpt1, const OdGePoint3d &wpt2, const OdGeVector3d &wvwVec, const OdGeVector3d &wvwxVec, double wxaper, double wyaper, OdDb::SelectType seltype, bool bIncludeCurrentSelection, bool bInPickFirst, OdInt32 &rowMin, OdInt32 &rowMax, OdInt32 &colMin, OdInt32 &colMax, OdDbFullSubentPathArray *pPaths=0) const
virtual bool hitTest(const OdGePoint3d &wpt, const OdGeVector3d &wviewVec, double wxaper, double wyaper, OdInt32 &resultRowIndex, OdInt32 &resultColumnIndex) const
void removeDataLink(void)
void setValue(OdUInt32 row, OdUInt32 col, OdString &pszText, OdValue::ParseOption nOption)
void insertColumnsAndInherit(OdInt32 col, OdInt32 nInheritFrom, OdInt32 nNumCols)
virtual OdResult subGetClassID(void *pClsid) const
double rotation(OdInt32 row, OdInt32 col, OdInt32 nContent) const
virtual void setAutoScale(OdUInt32 row, OdUInt32 column, bool autoScale)
virtual void setTextRotation(OdUInt32 row, OdUInt32 column, OdDb::RotationAngle textRotation)
void setTextStyle(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdDbObjectId &id)
virtual void setGridLineWeight(OdDb::LineWeight lineWeight, OdUInt32 gridlineTypes, OdUInt32 rowTypes)
void setToolTip(OdInt32 row, OdInt32 col, const OdString sToolTip)
virtual void setDirection(const OdGeVector3d &horizVector)
virtual OdCmColor contentColor(OdDb::RowType rowType=OdDb::kDataRow) const
void setDataFormat(OdInt32 row, OdInt32 col, const OdString &sFormat)
virtual OdCmColor gridColor(OdUInt32 row, OdUInt32 column, OdDb::CellEdgeMask edgeType) const
virtual void suppressTitleRow(bool suppress)
OdDb::GridLineStyle gridLineStyle(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineType) const
void clearCellOverrides(OdUInt32 row, OdUInt32 column)
OdString textString(OdInt32 row, OdInt32 col, OdInt32 nContent, OdValue::FormatOption nOption) const
virtual void copyFrom(const OdRxObject *pSource)
OdDb::CellState cellState(OdInt32 row, OdInt32 col) const
virtual void unmergeCells(OdUInt32 minRow, OdUInt32 maxRow, OdUInt32 minColumn, OdUInt32 maxColumn)
virtual double rowHeight(OdUInt32 row) const
void setValue(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdValue &val, OdValue::ParseOption nOption)
virtual void setContentColor(const OdCmColor &color, OdUInt32 nRowType=OdDb::kAllRows)
OdDbObjectId blockTableRecordId(OdInt32 row, OdInt32 col, OdInt32 nContent) const
virtual void mergeCells(OdUInt32 minRow, OdUInt32 maxRow, OdUInt32 minColumn, OdUInt32 maxColumn)
void setColumnName(OdInt32 nIndex, const OdString &sName)
virtual void setCellType(OdUInt32 row, OdUInt32 column, OdDb::CellType cellType)
OdValue getCustomData(OdInt32 row, OdInt32 col, const OdString sKey) const
virtual double textHeight(OdUInt32 row, OdUInt32 column) const
virtual void setRowHeight(double height)
OdInt32 createContent(OdInt32 row, OdInt32 col, OdInt32 nIndex)
virtual OdCmColor contentColor(OdUInt32 row, OdUInt32 column) const
virtual OdUInt32 numRows() const
virtual void setDataType(OdValue::DataType nDataType, OdValue::UnitType nUnitType)
virtual void deleteColumns(OdUInt32 column, OdUInt32 numColumns=1)
virtual void getBlockAttributeValue(OdUInt32 row, OdUInt32 column, const OdDbObjectId &attdefId, OdString &attValue) const
virtual double height() const
virtual bool isHeaderSuppressed() const
OdDb::CellContentLayout contentLayout(OdInt32 row, OdInt32 col) const
virtual bool reselectSubRegion(OdDbFullSubentPathArray &paths) const
void moveContent(OdInt32 row, OdInt32 col, OdInt32 nFromIndex, OdInt32 nToIndex)
virtual OdDb::LineWeight gridLineWeight(OdUInt32 row, OdUInt32 column, OdDb::CellEdgeMask edgeType) const
virtual OdString format(OdDb::RowType type) const
OdDb::CellProperty getOverride(OdInt32 row, OdInt32 col, OdInt32 nContent) const
void setCellStyle(OdInt32 row, OdInt32 col, const OdString &sCellStyle)
void setGridDoubleLineSpacing(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineTypes, double fSpacing)
virtual void setFlowDirection(OdDb::FlowDirection flowDirection)
virtual OdString textString(OdUInt32 row, OdUInt32 column) const
TableStyleOverrides
Definition: DbTable.h:110
virtual bool isAutoScale(OdUInt32 row, OdUInt32 column) const
OdDbObjectId fieldId(OdInt32 row, OdInt32 col, OdInt32 nContent) const
virtual bool isMergedCell(OdUInt32 row, OdUInt32 column, OdUInt32 *minRow=0, OdUInt32 *maxRow=0, OdUInt32 *minColumn=0, OdUInt32 *maxColumn=0) const
virtual void setBlockAttributeValue(OdUInt32 row, OdUInt32 column, const OdDbObjectId &attdefId, const OdString &attValue)
void setDataLink(const OdCellRange &range, const OdDbObjectId &idDataLink, bool bUpdate)
void setDataFormat(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdString &sFormat)
void deleteContent(const OdCellRange &range)
void deleteContent(OdInt32 row, OdInt32 col)
bool canDelete(OdInt32 nIndex, OdInt32 nCount, bool bRow) const
virtual bool isBackgroundColorNone(OdUInt32 row, OdUInt32 column) const
OdDb::CellContentType contentType(OdInt32 row, OdInt32 col, OdInt32 nIndex) const
virtual void setNumRows(OdUInt32 numRows)
virtual void setTextString(OdUInt32 row, OdUInt32 column, const OdString &textString)
void createTemplate(OdDbTableTemplate *target, OdDb::TableCopyOption nCopyOption)
void setBreakOption(OdDb::TableBreakOption option)
bool isRegenerateTableSuppressed() const
virtual void setWidth(double width)
void deleteContent(OdInt32 row, OdInt32 col, OdInt32 nIndex)
virtual void setColumnWidth(double width)
OdString getToolTip(OdInt32 row, OdInt32 col) const
void setOverride(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineType, OdDb::GridProperty nOverride)
virtual void insertRows(OdUInt32 row, double height, OdUInt32 numRows=1)
void setGridColor(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridlineTypes, const OdCmColor &color)
virtual void clearSubSelection()
virtual void setBlockTableRecordId(OdUInt32 row, OdUInt32 column, const OdDbObjectId &blockId, bool autoScale=false)
virtual void setTextHeight(double height, OdUInt32 rowTypes=OdDb::kAllRows)
virtual OdResult generateLayout()
virtual void setBackgroundColorNone(OdUInt32 row, OdUInt32 column, bool disable)
void setGridLineWeight(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineTypes, OdDb::LineWeight nLineWeight)
virtual bool isTitleSuppressed() const
virtual void setFormat(const OdString &pszFormat, int nRowTypes)
virtual void setAlignment(OdDb::CellAlignment alignment, OdUInt32 rowTypes=OdDb::kAllRows)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
virtual void setFormat(const OdString &pszFormat)
OdInt32 getDataLink(const OdCellRange &pRange, OdDbObjectIdArray &dataLinkIds) const
OdDbObjectId textStyle(OdInt32 row, OdInt32 col, OdInt32 nContent) const
virtual OdDb::RowType rowType(OdUInt32 row) const
virtual double minimumTableHeight() const
virtual double textHeight(OdDb::RowType rowType=OdDb::kDataRow) const
OdDbObjectId gridLinetype(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineType) const
virtual void setAlignment(OdUInt32 row, OdUInt32 column, OdDb::CellAlignment alignment)
virtual double blockScale(OdUInt32 row, OdUInt32 column) const
OdString getColumnName(OdInt32 nIndex) const
void subClose()
bool isAutoScale(OdInt32 row, OdInt32 col, OdInt32 nContent) const
virtual void setHorzCellMargin(double cellMargin)
double gridDoubleLineSpacing(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineType) const
double margin(OdInt32 row, OdInt32 col, OdDb::CellMargin nMargin) const
virtual void setGridVisibility(OdDb::Visibility gridVisiblity, OdUInt32 gridlineTypes, OdUInt32 rowTypes)
void setMargin(OdInt32 row, OdInt32 col, OdDb::CellMargin nMargins, double fMargin)
void suppressRegenerateTable(bool bSuppress)
virtual void deleteCellContent(OdUInt32 row, OdUInt32 column)
OdDb::Visibility gridVisibility(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineType) const
virtual void setGridColor(const OdCmColor &color, OdUInt32 gridlineTypes, OdUInt32 rowTypes)
void enableBreak(bool bEnable)
void resetValue(OdUInt32 row, OdUInt32 col)
virtual void setBackgroundColor(const OdCmColor &color, OdUInt32 rowTypes=OdDb::kAllRows)
void setGridVisibility(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineTypes, OdDb::Visibility nVisibility)
virtual OdDb::CellAlignment alignment(OdUInt32 row, OdUInt32 column) const
virtual void setTextStyle(const OdDbObjectId &textStyleId, OdUInt32 rowTypes=OdDb::kAllRows)
OdDb::CellContentType contentType(OdInt32 row, OdInt32 col) const
OdString getBlockAttributeValue(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdDbObjectId &attdefId) const
void getDataType(OdUInt32 row, OdUInt32 col, OdValue::DataType &nDataType, OdValue::UnitType &nUnitType) const
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
OdString getFormula(OdInt32 row, OdInt32 col, OdInt32 nContent) const
void appendToOwner(OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
virtual double vertCellMargin() const
void setValue(OdUInt32 row, OdUInt32 col, const OdValue &val)
bool isContentEditable(OdInt32 row, OdInt32 col) const
void setFormula(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdString &pszFormula)
void setContentColor(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdCmColor &color)
virtual void setGridColor(OdUInt32 row, OdUInt32 column, OdInt16 edgeTypes, const OdCmColor &color)
void getDataType(OdInt32 row, OdInt32 col, OdInt32 nContent, OdValue::DataType &nDataType, OdValue::UnitType &nUnitType) const
virtual OdUInt32 numColumns() const
void setOverride(OdInt32 row, OdInt32 col, OdInt32 nContent, OdDb::CellProperty nOverride)
void setAutoScale(OdInt32 row, OdInt32 col, OdInt32 nContent, bool autoFit)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void setGridLineStyle(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineTypes, OdDb::GridLineStyle nLineStyle)
OdUInt32 mergedHeight(OdUInt32 row, OdUInt32 column) const
virtual OdDb::CellType cellType(OdUInt32 row, OdUInt32 column) const
void setTextString(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdString &text)
virtual void clearTableStyleOverrides(int option=0)
OdDbObjectId getDataLink(OdInt32 row, OdInt32 col) const
bool isBreakEnabled(void) const
void setBlockAttributeValue(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdDbObjectId &attdefId, const OdString &atrValue)
void insertRowsAndInherit(OdInt32 nIndex, OdInt32 nInheritFrom, OdInt32 nNumRows)
void setCustomData(OdInt32 row, OdInt32 col, OdInt32 nData)
void enableMergeAll(OdInt32 row, OdInt32 col, bool bEnable)
void setBreakFlowDirection(OdDb::TableBreakFlowDirection flowDir)
void setValue(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdValue &val)
virtual void setBlockRotation(OdUInt32 row, OdUInt32 column, double blockRotation)
double textHeight(OdInt32 row, OdInt32 col, OdInt32 nContent) const
virtual bool isBackgroundColorNone(OdDb::RowType rowType=OdDb::kDataRow) const
virtual OdDbObjectId textStyle(OdDb::RowType rowType=OdDb::kDataRow) const
void setFormat(OdUInt32 row, OdUInt32 col, const OdString &pszFormat)
virtual void getCellExtents(OdUInt32 row, OdUInt32 column, bool isOuterCell, OdGePoint3dArray &pts) const
virtual OdDb::LineWeight gridLineWeight(OdDb::GridLineType gridlineType, OdDb::RowType rowType=OdDb::kDataRow) const
virtual void setRowHeight(OdUInt32 row, double height)
void copyFrom(const OdDbTable *pSrc, OdDb::TableCopyOption nOption, const OdCellRange &srcRange, const OdCellRange &targetRange, OdCellRange *pNewTargetRangeOut)
void setRotation(double fAngle)
virtual void setGridVisibility(OdUInt32 row, OdUInt32 column, OdInt16 edgeTypes, OdDb::Visibility gridVisibility)
void setBlockTableRecordId(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdDbObjectId &blkId, bool autoFit)
virtual void suppressHeaderRow(bool suppress)
virtual void setHeight(double height)
virtual double width() const
virtual OdResult getSubSelection(OdInt32 &rowMin, OdInt32 &rowMax, OdInt32 &colMin, OdInt32 &colMax) const
virtual OdDb::FlowDirection flowDirection() const
bool isFormatEditable(OdInt32 row, OdInt32 col) const
virtual void setBackgroundColor(OdUInt32 row, OdUInt32 column, const OdCmColor &color)
OdDbDataLinkPtr getDataLink(OdInt32 row, OdInt32 col, OdDb::OpenMode mode) const
bool hasFormula(OdInt32 row, OdInt32 col, OdInt32 nContent) const
void setBreakSpacing(double spacing)
virtual OdResult setSubSelection(OdInt32 rowMin, OdInt32 rowMax, OdInt32 colMin, OdInt32 colMax)
bool isEmpty(OdInt32 row, OdInt32 col) const
void copyFrom(const OdDbLinkedTableData *pSrc, OdDb::TableCopyOption nOption)
virtual OdResult recomputeTableBlock(bool forceUpdate=true)
void setGridProperty(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineTypes, const OdGridProperty &gridProp)
virtual OdResult select(const OdGePoint3d &wpt, const OdGeVector3d &wvwVec, const OdGeVector3d &wvwxVec, double wxaper, double wyaper, bool allowOutside, bool bInPickFirst, OdInt32 &resultRowIndex, OdInt32 &resultColumnIndex, OdDbFullSubentPathArray *pPaths=0) const
OdDb::GridProperty getOverride(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineType) const
OdValue value(OdUInt32 row, OdUInt32 col) const
virtual bool hasSubSelection() const
virtual OdDb::Visibility gridVisibility(OdDb::GridLineType gridlineType, OdDb::RowType rowType=OdDb::kDataRow) const
OdString format(OdUInt32 row, OdUInt32 col) const
void setValue(OdInt32 row, OdInt32 col, OdInt32 nContent, OdString sText, OdValue::ParseOption nOption)
OdString textString(OdInt32 row, OdInt32 col, OdInt32 nContent) const
virtual bool cellStyleOverrides(OdUInt32 row, OdUInt32 column, OdUInt32Array &overrides) const
void setSize(OdInt32 rows, OdInt32 cols)
void setDataType(OdInt32 row, OdInt32 col, OdInt32 nContent, OdValue::DataType nDataType, OdValue::UnitType nUnitType)
virtual void setNumColumns(OdUInt32 numColumns)
virtual OdCmColor backgroundColor(OdDb::RowType rowType=OdDb::kDataRow) const
virtual bool hitTest(const OdGePoint3d &wpt, const OdGeVector3d &wviewVec, double wxaper, double wyaper, OdInt32 &resultRowIndex, OdInt32 &resultColumnIndex, OdInt32 &contentIndex, OdDb::TableHitItem &nItem) const
OdString dataFormat(OdInt32 row, OdInt32 col, OdInt32 nContent) const
virtual OdGeVector3d direction() const
virtual OdGePoint3d attachmentPoint(OdUInt32 row, OdUInt32 column) const
bool canInsert(OdInt32 nIndex, bool bRow) const
OdDb::TableBreakFlowDirection breakFlowDirection(void) const
OdCellRange getMergeRange(OdInt32 row, OdInt32 col) const
virtual OdResult subGetTransformedCopy(const OdGeMatrix3d &xfm, OdDbEntityPtr &pCopy) const
bool mergedFlag(OdUInt32 row, OdUInt32 column) const
OdString cellStyle(OdInt32 row, OdInt32 col) const
virtual OdDb::CellAlignment alignment(OdDb::RowType rowType=OdDb::kDataRow) const
void setDataLink(OdInt32 row, OdInt32 col, const OdDbObjectId &idDataLink, bool bUpdate)
double scale(OdInt32 row, OdInt32 col, OdInt32 nContent) const
void setBreakHeight(OdUInt32 index, double height)
virtual void setBackgroundColorNone(bool disable, OdUInt32 rowTypes=OdDb::kAllRows)
void updateDataLink(OdDb::UpdateDirection nDir, OdDb::UpdateOption nOption)
OdInt32 getCustomData(OdInt32 row, OdInt32 col) const
void setDataType(OdUInt32 row, OdUInt32 col, OdValue::DataType nDataType, OdValue::UnitType nUnitType)
OdUInt32 mergedWidth(OdUInt32 row, OdUInt32 column) const
virtual void setTableStyle(const OdDbObjectId &tableStyleId)
virtual bool tableStyleOverrides(OdUInt32Array &overrides) const
void setGridProperty(const OdCellRange &rangeIn, OdDb::GridLineType nGridLineTypes, const OdGridProperty &gridProp)
virtual double minimumRowHeight(OdUInt32 row) const
virtual double minimumTableWidth() const
virtual OdResult subGetGeomExtents(OdGeExtents3d &extents) const
void setGridLinetype(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineTypes, const OdDbObjectId &idLinetype)
void copyFrom(const OdDbLinkedTableData *pSrc, OdDb::TableCopyOption nOption, const OdCellRange &srcRange, const OdCellRange &targetRange, OdCellRange *pNewTargetRangeOut)
OdCellRange getSubSelection(void) const
virtual OdCmColor backgroundColor(OdUInt32 row, OdUInt32 column) const
double breakHeight(OdUInt32 index) const
OdString textString(OdInt32 row, OdInt32 col, OdValue::FormatOption nOption) const
virtual OdDbObjectId textStyle(OdUInt32 row, OdUInt32 column) const
void setCellState(OdInt32 row, OdInt32 col, OdDb::CellState nLock)
virtual OdDbObjectId fieldId(OdUInt32 row, OdUInt32 column) const
void setRotation(OdInt32 row, OdInt32 col, OdInt32 nContent, double fAngle)
OdGePoint3d attachmentPoint(OdInt32 row, OdInt32 col, OdInt32 content) const
virtual double columnWidth(OdUInt32 column) const
virtual OdResult setSubSelection(const OdCellRange &range)
void setFieldId(OdInt32 row, OdInt32 col, OdInt32 nContent, const OdDbObjectId &fieldId, OdDb::CellOption nFlag)
void setTextHeight(OdInt32 row, OdInt32 col, OdInt32 nContent, double height)
virtual void setFieldId(OdUInt32 row, OdUInt32 column, const OdDbObjectId &fieldId)
void setCustomData(OdInt32 row, OdInt32 col, const OdString &sKey, const OdValue *pData)
OdDb::LineWeight gridLineWeight(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineType) const
virtual void deleteRows(OdUInt32 row, OdUInt32 numRows=1)
virtual double minimumColumnWidth(OdUInt32 column) const
bool isLinked(OdInt32 row, OdInt32 col) const
OdDb::TableBreakOption breakOption(void) const
virtual void setTextStyle(OdUInt32 row, OdUInt32 column, const OdDbObjectId &textStyleId)
void removeAllOverrides(OdInt32 row, OdInt32 col)
OdCmColor gridColor(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineType) const
OdValue value(OdInt32 row, OdInt32 col, OdInt32 nContent) const
OdCmColor contentColor(OdInt32 row, OdInt32 col, OdInt32 nContent) const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
virtual OdDb::Visibility gridVisibility(OdUInt32 row, OdUInt32 column, OdDb::CellEdgeMask edgeType) const
virtual void setContentColor(OdUInt32 row, OdUInt32 column, const OdCmColor &color)
virtual OdResult select_next_cell(OdInt32 dir, OdInt32 &resultRowIndex, OdInt32 &resultColumnIndex, OdDbFullSubentPathArray *pPaths=NULL, bool bSupportTextCellOnly=true) const
virtual OdDbObjectId blockTableRecordId(OdUInt32 row, OdUInt32 column) const
virtual void setGridLineWeight(OdUInt32 row, OdUInt32 column, OdInt16 edgeTypes, OdDb::LineWeight lineWeight)
double breakSpacing(void) const
virtual OdCmColor gridColor(OdDb::GridLineType gridlineType, OdDb::RowType rowType=OdDb::kDataRow) const
virtual OdDbObjectId tableStyle() const
virtual void setVertCellMargin(double cellMargin)
OdString dataFormat(OdInt32 row, OdInt32 col) const
virtual void getDataType(OdValue::DataType &nDataType, OdValue::UnitType &nUnitType, OdDb::RowType type) const
virtual void modified(const OdDbObject *pObj)
OdInt32 numContents(OdInt32 row, OdInt32 col) const
virtual double horzCellMargin() const
double rotation() const
OdValue value(OdInt32 row, OdInt32 col, OdInt32 nContent, OdValue::FormatOption nOption) const
virtual void setBlockScale(OdUInt32 row, OdUInt32 column, double blockScale)
void setContentLayout(OdInt32 row, OdInt32 col, OdDb::CellContentLayout nLayout)
virtual void setDataType(OdValue::DataType nDataType, OdValue::UnitType nUnitType, int nRowTypes)
void removeDataLink(OdInt32 row, OdInt32 col)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void setBreakOffset(OdUInt32 index, const OdGeVector3d &vec)
virtual void setColumnWidth(OdUInt32 column, double width)
void getGridProperty(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridLineType, OdGridProperty &gridProp) const
OdGeVector3d breakOffset(OdUInt32 index) const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
void updateDataLink(OdInt32 row, OdInt32 col, OdDb::UpdateDirection nDir, OdDb::UpdateOption nOption)
virtual double blockRotation(OdUInt32 row, OdUInt32 column) const
ODDB_DECLARE_MEMBERS(OdDbTable)
void setScale(OdInt32 row, OdInt32 col, OdInt32 nContent, double scale)
virtual void insertColumns(OdUInt32 column, double width, OdUInt32 numColumns=1)
virtual OdResult subExplode(OdRxObjectPtrArray &entitySet) const ODRX_OVERRIDE
virtual OdDb::RotationAngle textRotation(OdUInt32 row, OdUInt32 column) const
bool isMergeAllEnabled(OdInt32 row, OdInt32 col) const
void subSetDatabaseDefaults(OdDbDatabase *pDb, bool doSubents)
virtual void setTextHeight(OdUInt32 row, OdUInt32 column, double height)
OdCellRange getDataLinkRange(OdInt32 row, OdInt32 col) const
DataType
Definition: OdValue.h:45
ParseOption
Definition: OdValue.h:72
UnitType
Definition: OdValue.h:61
FormatOption
Definition: OdValue.h:82
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
GLuint index
Definition: gles2_ext.h:265
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
GLenum GLint * range
Definition: gles2_ext.h:563
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
@ kDataRow
Definition: DbTableStyle.h:121
GridLineType
Definition: DbTableStyle.h:102
@ kAllRows
Definition: DbTableStyle.h:136
UpdateDirection
Definition: DbDataLink.h:55
CellContentLayout
Definition: DbTableStyle.h:161
UpdateOption
Definition: DbDataLink.h:61
FlowDirection
Definition: DbTableStyle.h:74
TableBreakFlowDirection
Definition: DbTable.h:66
@ kTableBreakFlowRight
Definition: DbTable.h:68
@ kTableBreakFlowLeft
Definition: DbTable.h:72
@ kTableBreakFlowDownOrUp
Definition: DbTable.h:70
RotationAngle
Definition: DbTableStyle.h:80
CellContentType
Definition: DbTableStyle.h:52
CellEdgeMask
Definition: DbTableStyle.h:60
TableBreakOption
Definition: DbTable.h:47
@ kTableBreakRepeatBottomLabels
Definition: DbTable.h:55
@ kTableBreakAllowManualPositions
Definition: DbTable.h:57
@ kTableBreakNone
Definition: DbTable.h:49
@ kTableBreakAllowManualHeights
Definition: DbTable.h:59
@ kTableBreakRepeatTopLabels
Definition: DbTable.h:53
@ kTableBreakEnableBreaking
Definition: DbTable.h:51
SelectType
Definition: DbTableStyle.h:68
TableHitItem
Definition: DbTable.h:79
@ kTableHitRowIndicator
Definition: DbTable.h:85
@ kTableHitCell
Definition: DbTable.h:83
@ kTableHitColumnIndicator
Definition: DbTable.h:87
@ kTableHitGridLine
Definition: DbTable.h:89
@ kTableHitNone
Definition: DbTable.h:81
TableCopyOption
Definition: DbTableStyle.h:253
CellAlignment
Definition: DbTableStyle.h:89
GridLineStyle
Definition: DbTableStyle.h:145
LineWeight
Definition: OdaDefs.h:384
GridProperty
Definition: DbTableStyle.h:184
CellProperty
Definition: DbTableStyle.h:203
Visibility
Definition: DbObject.h:144
OpenMode
Definition: DbObjectId.h:54