CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbTable.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#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#include "DbTableIterator.h"
34
35// typedef for OdSubentPathArray
36//
37
38class OdDbTableImpl;
41
42namespace OdDb
43{
48 {
61 };
62
67 {
74 };
75
80 {
91 };
92};
93
95{
97 double height;
98};
99
107{
108public:
109 //DOM-IGNORE-BEGIN
111 //DOM-IGNORE-END
112
117 {
119 kTitleSuppressed = 1,
121 kHeaderSuppressed = 2,
123 kFlowDirection = 3,
125 kHorzCellMargin = 4,
127 kVertCellMargin = 5,
129 kTitleRowColor = 6,
131 kHeaderRowColor = 7,
133 kDataRowColor = 8,
135 kTitleRowFillNone = 9,
137 kHeaderRowFillNone = 10,
139 kDataRowFillNone = 11,
141 kTitleRowFillColor = 12,
143 kHeaderRowFillColor = 13,
145 kDataRowFillColor = 14,
147 kTitleRowAlignment = 15,
149 kHeaderRowAlignment = 16,
151 kDataRowAlignment = 17,
153 kTitleRowTextStyle = 18,
155 kHeaderRowTextStyle = 19,
157 kDataRowTextStyle = 20,
159 kTitleRowTextHeight = 21,
161 kHeaderRowTextHeight = 22,
163 kDataRowTextHeight = 23,
165 kTitleRowDataType = 24,
167 kHeaderRowDataType = 25,
169 kDataRowDataType = 26,
171 kTitleHorzTopColor = 40,
173 kTitleHorzInsideColor = 41,
175 kTitleHorzBottomColor = 42,
177 kTitleVertLeftColor = 43,
179 kTitleVertInsideColor = 44,
181 kTitleVertRightColor = 45,
183 kHeaderHorzTopColor = 46,
185 kHeaderHorzInsideColor = 47,
187 kHeaderHorzBottomColor = 48,
189 kHeaderVertLeftColor = 49,
191 kHeaderVertInsideColor = 50,
193 kHeaderVertRightColor = 51,
195 kDataHorzTopColor = 52,
197 kDataHorzInsideColor = 53,
199 kDataHorzBottomColor = 54,
201 kDataVertLeftColor = 55,
203 kDataVertInsideColor = 56,
205 kDataVertRightColor = 57,
207 kTitleHorzTopLineWeight = 70,
209 kTitleHorzInsideLineWeight = 71,
211 kTitleHorzBottomLineWeight = 72,
213 kTitleVertLeftLineWeight = 73,
215 kTitleVertInsideLineWeight = 74,
217 kTitleVertRightLineWeight = 75,
219 kHeaderHorzTopLineWeight = 76,
221 kHeaderHorzInsideLineWeight = 77,
223 kHeaderHorzBottomLineWeight = 78,
225 kHeaderVertLeftLineWeight = 79,
227 kHeaderVertInsideLineWeight = 80,
229 kHeaderVertRightLineWeight = 81,
231 kDataHorzTopLineWeight = 82,
233 kDataHorzInsideLineWeight = 83,
235 kDataHorzBottomLineWeight = 84,
237 kDataVertLeftLineWeight = 85,
239 kDataVertInsideLineWeight = 86,
241 kDataVertRightLineWeight = 87,
242
244 kTitleHorzTopVisibility = 100,
246 kTitleHorzInsideVisibility = 101,
248 kTitleHorzBottomVisibility = 102,
250 kTitleVertLeftVisibility = 103,
252 kTitleVertInsideVisibility = 104,
254 kTitleVertRightVisibility = 105,
256 kHeaderHorzTopVisibility = 106,
258 kHeaderHorzInsideVisibility = 107,
260 kHeaderHorzBottomVisibility = 108,
262 kHeaderVertLeftVisibility = 109,
264 kHeaderVertInsideVisibility = 110,
266 kHeaderVertRightVisibility = 111,
268 kDataHorzTopVisibility = 112,
270 kDataHorzInsideVisibility = 113,
272 kDataHorzBottomVisibility = 114,
274 kDataVertLeftVisibility = 115,
276 kDataVertInsideVisibility = 116,
278 kDataVertRightVisibility = 117,
279
281 kCellAlignment = 130,
283 kCellBackgroundFillNone = 131,
285 kCellBackgroundColor = 132,
287 kCellContentColor = 133,
289 kCellTextStyle = 134,
291 kCellTextHeight = 135,
293 kCellTopGridColor = 136,
295 kCellRightGridColor = 137,
297 kCellBottomGridColor = 138,
299 kCellLeftGridColor = 139,
301 kCellTopGridLineWeight = 140,
303 kCellRightGridLineWeight = 141,
305 kCellBottomGridLineWeight = 142,
307 kCellLeftGridLineWeight = 143,
309 kCellTopVisibility = 144,
311 kCellRightVisibility = 145,
313 kCellBottomVisibility = 146,
315 kCellLeftVisibility = 147,
317 kCellDataType = 148
318 };
319
324 // virtual ~OdDbTable();
325
326
330 virtual OdDbObjectId tableStyle() const;
331
340 virtual void setTableStyle(
341 const OdDbObjectId& tableStyleId);
342
346 virtual OdGeVector3d direction() const;
347
353 virtual void setDirection(
354 const OdGeVector3d& horizVector);
355
362 virtual OdUInt32 numRows() const;
363
364//DOM-IGNORE-BEGIN
377 virtual void setNumRows(
378 OdUInt32 numRows);
379//DOM-IGNORE-END
380
384 virtual OdUInt32 numColumns() const;
385
386//DOM-IGNORE-BEGIN
399 virtual void setNumColumns(OdUInt32 numColumns);
400//DOM-IGNORE-END
401
405 virtual double width() const;
406
420 virtual void setWidth(double width);
421
427 virtual double columnWidth(OdUInt32 column) const;
428
438 virtual void setColumnWidth(
439 OdUInt32 column,
440 double width);
441
450 virtual void setColumnWidth(
451 double width);
452
456 virtual double height() const;
457
468 virtual void setHeight(
469 double height);
470
476 virtual double rowHeight(
477 OdUInt32 row) const;
478
488 virtual void setRowHeight(
489 OdUInt32 row,
490 double height);
491
500 virtual void setRowHeight(
501 double height);
502
508 virtual double minimumColumnWidth(
509 OdUInt32 column) const;
510
516 virtual double minimumRowHeight(
517 OdUInt32 row) const;
518
522 virtual double minimumTableWidth() const;
523
527 virtual double minimumTableHeight() const;
528
529 //********************************************************************
530 // Get and set methods for table style overrides
531 //********************************************************************
532
533//DOM-IGNORE-BEGIN
542 virtual double horzCellMargin() const;
543
556 virtual void setHorzCellMargin(
557 double cellMargin);
558
567 virtual double vertCellMargin() const;
568
581 virtual void setVertCellMargin(double cellMargin);
582//DOM-IGNORE-END
583
597
614 virtual void setFlowDirection(
615 OdDb::FlowDirection flowDirection);
616
617//DOM-IGNORE-BEGIN
622 virtual bool isTitleSuppressed() const;
623
630 virtual void suppressTitleRow(
631 bool suppress);
632
637 virtual bool isHeaderSuppressed() const;
638
645 virtual void suppressHeaderRow(
646 bool suppress);
647
680 OdDb::RowType rowType = OdDb::kDataRow) const;
681//DOM-IGNORE-END
682
705 OdUInt32 row,
706 OdUInt32 column) const;
707
708//DOM-IGNORE-BEGIN
744 virtual void setAlignment(
745 OdDb::CellAlignment alignment,
746 OdUInt32 rowTypes = OdDb::kAllRows);
747//DOM-IGNORE-END
748
774 virtual void setAlignment(
775 OdUInt32 row,
776 OdUInt32 column,
777 OdDb::CellAlignment alignment);
778
779//DOM-IGNORE-BEGIN
797 OdDb::RowType rowType = OdDb::kDataRow) const;
798//DOM-IGNORE-END
799
807 OdUInt32 row,
808 OdUInt32 column) const;
809
810//DOM-IGNORE-BEGIN
832 bool disable,
833 OdUInt32 rowTypes = OdDb::kAllRows);
834//DOM-IGNORE-END
835
847 OdUInt32 row,
848 OdUInt32 column,
849 bool disable);
850
851//DOM-IGNORE-BEGIN
869 OdDb::RowType rowType = OdDb::kDataRow) const;
870//DOM-IGNORE-END
871
879 OdUInt32 row,
880 OdUInt32 column) const;
881
882//DOM-IGNORE-BEGIN
903 virtual void setBackgroundColor(
904 const OdCmColor& color,
905 OdUInt32 rowTypes = OdDb::kAllRows);
906//DOM-IGNORE-END
907
918 virtual void setBackgroundColor(
919 OdUInt32 row,
920 OdUInt32 column,
921 const OdCmColor& color);
922
923//DOM-IGNORE-BEGIN
941 OdDb::RowType rowType = OdDb::kDataRow) const;
942//DOM-IGNORE-END
943
951 OdUInt32 row,
952 OdUInt32 column) const;
953
954//DOM-IGNORE-BEGIN
975 virtual void setContentColor(
976 const OdCmColor& color,
977 OdUInt32 nRowType = OdDb::kAllRows);
978//DOM-IGNORE-END
979
990 virtual void setContentColor(
991 OdUInt32 row,
992 OdUInt32 column,
993 const OdCmColor& color);
994
995//DOM-IGNORE-BEGIN
1013 OdDb::RowType rowType = OdDb::kDataRow) const;
1014//DOM-IGNORE-END
1015
1023 OdUInt32 row,
1024 OdUInt32 column) const;
1025
1026//DOM-IGNORE-BEGIN
1047 virtual void setTextStyle(
1048 const OdDbObjectId& textStyleId,
1049 OdUInt32 rowTypes = OdDb::kAllRows);
1050//DOM-IGNORE-END
1051
1063 virtual void setTextStyle(
1064 OdUInt32 row,
1065 OdUInt32 column,
1066 const OdDbObjectId& textStyleId);
1067
1068//DOM-IGNORE-BEGIN
1085 virtual double textHeight(
1086 OdDb::RowType rowType = OdDb::kDataRow) const;
1087//DOM-IGNORE-END
1088
1095 virtual double textHeight(
1096 OdUInt32 row,
1097 OdUInt32 column) const;
1098
1099//DOM-IGNORE-BEGIN
1121 virtual void setTextHeight(
1122 double height,
1123 OdUInt32 rowTypes = OdDb::kAllRows);
1124//DOM-IGNORE-END
1125
1136 virtual void setTextHeight(
1137 OdUInt32 row,
1138 OdUInt32 column,
1139 double height);
1140
1141//DOM-IGNORE-BEGIN
1172 OdDb::GridLineType gridlineType,
1173 OdDb::RowType rowType = OdDb::kDataRow) const;
1174//DOM-IGNORE-END
1175
1196 OdUInt32 row,
1197 OdUInt32 column,
1198 OdDb::CellEdgeMask edgeType) const;
1199
1200//DOM-IGNORE-BEGIN
1234 virtual void setGridLineWeight(
1235 OdDb::LineWeight lineWeight,
1236 OdUInt32 gridlineTypes,
1237 OdUInt32 rowTypes);
1238//DOM-IGNORE-END
1239
1262 virtual void setGridLineWeight(
1263 OdUInt32 row,
1264 OdUInt32 column,
1265 OdInt16 edgeTypes,
1266 OdDb::LineWeight lineWeight);
1267
1268//DOM-IGNORE-BEGIN
1296 OdDb::GridLineType gridlineType,
1297 OdDb::RowType rowType = OdDb::kDataRow) const;
1298//DOM-IGNORE-END
1299
1319 OdUInt32 row,
1320 OdUInt32 column,
1321 OdDb::CellEdgeMask edgeType) const;
1322
1323//DOM-IGNORE-BEGIN
1362 OdDb::GridLineType gridlineType,
1363 OdDb::RowType rowType = OdDb::kDataRow) const;
1364//DOM-IGNORE-END
1365
1393 OdUInt32 row,
1394 OdUInt32 column,
1395 OdDb::CellEdgeMask edgeType) const;
1396
1397//DOM-IGNORE-BEGIN
1439 virtual void setGridVisibility(
1440 OdDb::Visibility gridVisiblity,
1441 OdUInt32 gridlineTypes,
1442 OdUInt32 rowTypes);
1443//DOM-IGNORE-END
1444
1475 virtual void setGridVisibility(
1476 OdUInt32 row,
1477 OdUInt32 column,
1478 OdInt16 edgeTypes,
1479 OdDb::Visibility gridVisibility);
1480
1481//DOM-IGNORE-BEGIN
1492 OdUInt32Array& overrides) const;
1493
1511 int option = 0);
1512//DOM-IGNORE-END
1513
1530 OdUInt32 row,
1531 OdUInt32 column) const;
1532
1533//DOM-IGNORE-BEGIN
1554 virtual void setCellType(
1555 OdUInt32 row,
1556 OdUInt32 column,
1557 OdDb::CellType cellType);
1558//DOM-IGNORE-END
1559
1577 virtual void getCellExtents(
1578 OdUInt32 row,
1579 OdUInt32 column,
1580 bool isOuterCell,
1581 OdGePoint3dArray& pts) const;
1582
1594 OdUInt32 row,
1595 OdUInt32 column) const;
1596
1597
1606 OdUInt32 row,
1607 OdUInt32 column,
1608 OdUInt32Array& overrides) const;
1609
1617 OdUInt32 row,
1618 OdUInt32 column);
1619
1620//DOM-IGNORE-BEGIN
1633 virtual void deleteCellContent(
1634 OdUInt32 row,
1635 OdUInt32 column);
1636
1654 OdUInt32 row) const;
1655//DOM-IGNORE-END
1656
1664 OdUInt32 row,
1665 OdUInt32 column) const;
1666
1678 virtual void setTextString(
1679 OdUInt32 row,
1680 OdUInt32 column,
1681 const OdString& textString);
1682
1690 OdUInt32 row,
1691 OdUInt32 column) const;
1692
1704 virtual void setFieldId(
1705 OdUInt32 row,
1706 OdUInt32 column,
1707 const OdDbObjectId& fieldId);
1708
1709//DOM-IGNORE-BEGIN
1730 OdUInt32 row,
1731 OdUInt32 column) const;
1732
1757 virtual void setTextRotation(
1758 OdUInt32 row,
1759 OdUInt32 column,
1760 OdDb::RotationAngle textRotation);
1761
1770 virtual bool isAutoScale(
1771 OdUInt32 row,
1772 OdUInt32 column) const;
1773
1787 virtual void setAutoScale(
1788 OdUInt32 row,
1789 OdUInt32 column,
1790 bool autoScale);
1791//DOM-IGNORE-END
1792
1800 OdUInt32 row,
1801 OdUInt32 column) const;
1802
1817 OdUInt32 row,
1818 OdUInt32 column,
1819 const OdDbObjectId& blockId,
1820 bool autoScale = false);
1821
1822//DOM-IGNORE-BEGIN
1831 virtual double blockScale(
1832 OdUInt32 row,
1833 OdUInt32 column) const;
1834
1850 virtual void setBlockScale(
1851 OdUInt32 row,
1852 OdUInt32 column,
1853 double blockScale);
1854
1863 virtual double blockRotation(
1864 OdUInt32 row,
1865 OdUInt32 column) const;
1866
1880 virtual void setBlockRotation(
1881 OdUInt32 row,
1882 OdUInt32 column,
1883 double blockRotation);
1884//DOM-IGNORE-END
1885
1895 OdUInt32 row,
1896 OdUInt32 column,
1897 const OdDbObjectId& attdefId,
1898 OdString& attValue) const;
1899
1913 OdUInt32 row,
1914 OdUInt32 column,
1915 const OdDbObjectId& attdefId,
1916 const OdString& attValue);
1917
1918//DOM-IGNORE-BEGIN
1949 virtual void setGridColor(
1950 const OdCmColor& color,
1951 OdUInt32 gridlineTypes,
1952 OdUInt32 rowTypes);
1953//DOM-IGNORE-END
1954
1977 virtual void setGridColor(
1978 OdUInt32 row,
1979 OdUInt32 column,
1980 OdInt16 edgeTypes,
1981 const OdCmColor& color);
1982
1994 virtual void insertColumns(
1995 OdUInt32 column,
1996 double width,
1997 OdUInt32 numColumns = 1);
1998
2009 virtual void deleteColumns(
2010 OdUInt32 column,
2011 OdUInt32 numColumns = 1);
2012
2023 virtual void insertRows(
2024 OdUInt32 row,
2025 double height,
2026 OdUInt32 numRows = 1);
2027
2038 virtual void deleteRows(
2039 OdUInt32 row,
2040 OdUInt32 numRows = 1);
2041
2055 virtual void mergeCells(
2056 OdUInt32 minRow,
2057 OdUInt32 maxRow,
2058 OdUInt32 minColumn,
2059 OdUInt32 maxColumn);
2060
2074 virtual void unmergeCells(
2075 OdUInt32 minRow,
2076 OdUInt32 maxRow,
2077 OdUInt32 minColumn,
2078 OdUInt32 maxColumn);
2079
2095 virtual bool isMergedCell(
2096 OdUInt32 row,
2097 OdUInt32 column,
2098 OdUInt32* minRow = 0,
2099 OdUInt32* maxRow = 0,
2100 OdUInt32* minColumn = 0,
2101 OdUInt32* maxColumn = 0) const;
2102
2110 OdUInt32 row,
2111 OdUInt32 column) const;
2112
2120 OdUInt32 row,
2121 OdUInt32 column) const;
2122
2130 OdUInt32 row,
2131 OdUInt32 column) const;
2132
2140
2156 bool forceUpdate = true);
2157
2158 //********************************************************************
2159 // Methods for sub-selection
2160 //********************************************************************
2161 //
2162
2176 virtual bool hitTest(const OdGePoint3d& wpt,
2177 const OdGeVector3d& wviewVec,
2178 double wxaper,
2179 double wyaper,
2180 OdInt32& resultRowIndex,
2181 OdInt32& resultColumnIndex,
2182 OdInt32* subTable = NULL ) const;
2199 virtual bool hitTest(const OdGePoint3d& wpt,
2200 const OdGeVector3d& wviewVec,
2201 double wxaper,
2202 double wyaper,
2203 OdInt32& resultRowIndex,
2204 OdInt32& resultColumnIndex,
2205 OdInt32& contentIndex,
2206 OdDb::TableHitItem& nItem,
2207 OdInt32* subTable = NULL) const;
2228 virtual OdResult select(const OdGePoint3d& wpt,
2229 const OdGeVector3d& wvwVec,
2230 const OdGeVector3d& wvwxVec,
2231 double wxaper,
2232 double wyaper,
2233 bool allowOutside,
2234 bool bInPickFirst,
2235 OdInt32& resultRowIndex,
2236 OdInt32& resultColumnIndex,
2237 OdDbFullSubentPathArray* pPaths = 0) const;
2263 const OdGePoint3d& wpt2,
2264 const OdGeVector3d& wvwVec,
2265 const OdGeVector3d& wvwxVec,
2266 double wxaper,
2267 double wyaper,
2268 OdDb::SelectType seltype,
2269 bool bIncludeCurrentSelection,
2270 bool bInPickFirst,
2271 OdInt32& rowMin,
2272 OdInt32& rowMax,
2273 OdInt32& colMin,
2274 OdInt32& colMax,
2275 OdDbFullSubentPathArray* pPaths = 0) const;
2286 virtual bool reselectSubRegion(OdDbFullSubentPathArray& paths) const;
2287
2301 OdInt32& rowMax,
2302 OdInt32& colMin,
2303 OdInt32& colMax,
2304 OdInt32* subTable = NULL) const;
2305
2314 OdCellRange getSubSelection(OdInt32* subTable = NULL) const;
2315
2326 OdInt32 subTable = 0);
2327
2341 OdInt32 rowMax,
2342 OdInt32 colMin,
2343 OdInt32 colMax,
2344 OdInt32 subTable = 0);
2348 virtual void clearSubSelection();
2349
2353 virtual bool hasSubSelection() const;
2354
2356 OdInt32& resultRowIndex,
2357 OdInt32& resultColumnIndex,
2358 OdDbFullSubentPathArray* pPaths = NULL,
2359 bool bSupportTextCellOnly = true) const;
2360
2361 //********************************************************************
2362 // Overridden methods from OdDbObject
2363 //********************************************************************
2364 //
2365
2367 OdDbDwgFiler* pFiler);
2368 virtual void dwgOutFields(
2369 OdDbDwgFiler* pFiler) const;
2370
2372 OdDbDxfFiler* pFiler);
2373 virtual void dxfOutFields(
2374 OdDbDxfFiler* pFiler) const;
2375
2376 // virtual OdResult audit(OdDbAuditInfo* pAuditInfo);
2377
2378 void subClose();
2379
2385 OdDbDatabase *pDb,
2386 bool doSubents);
2387
2388 // virtual void objectClosed(const OdDbObjectId objId);
2389 // virtual void erased(const OdDbObject* dbObj,
2390 // bool pErasing = true);
2391 virtual void modified(
2392 const OdDbObject* pObj);
2393
2395 void* pClsid) const;
2396
2397 //********************************************************************
2398 // Overridden methods from OdDbEntity
2399 //********************************************************************
2400 //
2401 /*
2402 virtual void list() const;
2403 */
2404
2405 virtual bool subWorldDraw(
2406 OdGiWorldDraw* pWd) const;
2407
2408 /*
2409 virtual OdResult getGripPoints(OdGePoint3dArray&,
2410 OdDbIntArray&,
2411 OdDbIntArray&) const;
2412
2413 virtual OdResult moveGripPointsAt(const OdDbIntArray&,
2414 const OdGeVector3d&);
2415
2416 virtual OdResult getStretchPoints(OdGePoint3dArray& stretchPoints)
2417 const;
2418
2419 virtual OdResult moveStretchPointsAt(const OdDbIntArray&
2420 indices,
2421 const OdGeVector3d& offset);
2422
2423 virtual OdResult getOsnapPoints(OdDb::OsnapMode osnapMode,
2424 OdGsMarker gsSelectionMark,
2425 const OdGePoint3d& pickPoint,
2426 const OdGePoint3d& lastPoint,
2427 const OdGeMatrix3d& viewXform,
2428 OdGePoint3dArray& snapPoints,
2429 OdDbIntArray& geomIds)
2430 const;
2431 */
2432
2434 const OdGeMatrix3d& xfm);
2435
2437 const OdGeMatrix3d& xfm,
2438 OdDbEntityPtr& pCopy) const;
2439
2441
2442 /*
2443 virtual OdResult explode(OdDbVoidPtrArray& entitySet) const;
2444 */
2445
2446 //********************************************************************
2447 // Overridden methods from OdDbBlockReference required for OdDbTable
2448 //********************************************************************
2449 //
2450 //OdGePoint3d position() const;
2451 // virtual OdResult setPosition(const OdGePoint3d&);
2452
2453 //OdGeVector3d normal() const;
2454 // virtual OdResult setNormal(const OdGeVector3d& newVal);
2455
2456 //********************************************************************
2457 // Methods for internal use only
2458 //********************************************************************
2459 //
2460 // TODO: Temporary method for navigating after editing cells
2461 /*
2462 virtual OdResult select_next_cell(int dir,
2463 int& resultRowIndex,
2464 int& resultColumnIndex,
2465 OdDbFullSubentPathArray* pPaths = 0,
2466 bool bSupportTextCellOnly = true) const;
2467
2468 virtual void setRegen();
2469 virtual void suppressInvisibleGrid(bool value);
2470 virtual OdResult getCellExtents(int row,
2471 int column,
2472 double& cellWidth,
2473 double& cellHeight,
2474 bool bAdjustForMargins) const;
2475 */
2476
2477 // NEW 2007
2478
2479//DOM-IGNORE-BEGIN
2498 virtual void getDataType(OdValue::DataType& nDataType,
2499 OdValue::UnitType& nUnitType,
2500 OdDb::RowType type) const;
2501
2509 virtual void setDataType(OdValue::DataType nDataType,
2510 OdValue::UnitType nUnitType);
2511
2520 virtual void setDataType(OdValue::DataType nDataType,
2521 OdValue::UnitType nUnitType,
2522 int nRowTypes);
2523
2529
2534 virtual void setFormat(const OdString& pszFormat);
2535
2540 virtual void setFormat(const OdString& pszFormat,
2541 int nRowTypes);
2542//DOM-IGNORE-END
2543
2553 OdValue::DataType& nDataType,
2554 OdValue::UnitType& nUnitType) const;
2555
2565 OdValue::DataType nDataType,
2566 OdValue::UnitType nUnitType);
2567
2575
2587 const OdValue& val);
2588
2601 OdString& pszText,
2602 OdValue::ParseOption nOption);
2603
2614
2615//DOM-IGNORE-BEGIN
2620
2626 const OdString& pszFormat);
2627//DOM-IGNORE-END
2628
2632 bool isBreakEnabled(void) const;
2633
2639 void enableBreak (bool bEnable);
2640
2645
2652
2653
2664
2676 double height);
2677
2687
2698 const OdGeVector3d& vec);
2699
2717
2737
2741 double breakSpacing (void) const;
2742
2751 void setBreakSpacing (double spacing);
2752
2753 //********************************************************************
2754 // New Methods
2755 //********************************************************************
2756
2767 void setSize (
2768 OdInt32 rows,
2769 OdInt32 cols);
2770
2782 OdInt32 nIndex,
2783 bool bRow) const;
2784
2794 OdInt32 nIndex,
2795 OdInt32 nInheritFrom,
2796 OdInt32 nNumRows);
2797
2811 OdInt32 col,
2812 OdInt32 nInheritFrom,
2813 OdInt32 nNumCols);
2814
2824 OdInt32 nIndex,
2825 OdInt32 nCount,
2826 bool bRow) const;
2827
2838 bool isEmpty (
2839 OdInt32 row,
2840 OdInt32 col) const;
2841
2851 OdInt32 row,
2852 OdInt32 col) const;
2853
2862 OdInt32 row,
2863 OdInt32 col) const;
2864
2873 OdInt32 row,
2874 OdInt32 col) const;
2875
2902 OdInt32 row,
2903 OdInt32 col) const;
2904
2935 OdInt32 row,
2936 OdInt32 col,
2937 OdDb::CellState nLock);
2938
2950 OdInt32 row,
2951 OdInt32 col) const;
2952
2965 OdInt32 row,
2966 OdInt32 col,
2967 OdInt32 nIndex);
2968
2981 OdInt32 row,
2982 OdInt32 col,
2983 OdInt32 nFromIndex,
2984 OdInt32 nToIndex);
2985
2999 OdInt32 row,
3000 OdInt32 col);
3001
3016 OdInt32 row,
3017 OdInt32 col,
3018 OdInt32 nIndex);
3019
3026 const OdCellRange& range);
3027
3046 OdInt32 row,
3047 OdInt32 col) const;
3048
3068 OdInt32 row,
3069 OdInt32 col,
3070 OdInt32 nIndex) const;
3071
3081 OdInt32 row,
3082 OdInt32 col,
3083 OdInt32 nContent) const;
3084
3106 OdInt32 row,
3107 OdInt32 col,
3108 OdInt32 nContent,
3109 OdValue::FormatOption nOption) const;
3110
3126 OdInt32 row,
3127 OdInt32 col,
3128 OdInt32 nContent,
3129 const OdValue& val);
3130
3159 OdInt32 row,
3160 OdInt32 col,
3161 OdInt32 nContent,
3162 const OdValue& val,
3163 OdValue::ParseOption nOption);
3164
3191 OdInt32 row,
3192 OdInt32 col,
3193 OdInt32 nContent,
3194 OdString sText,
3195 OdValue::ParseOption nOption);
3196
3205 OdInt32 row,
3206 OdInt32 col) const;
3207
3218 OdInt32 row,
3219 OdInt32 col,
3220 OdInt32 nContent) const;
3221
3236 OdInt32 row,
3237 OdInt32 col,
3238 const OdString& sFormat);
3239
3255 OdInt32 row,
3256 OdInt32 col,
3257 OdInt32 nContent,
3258 const OdString& sFormat);
3259
3269 OdInt32 row,
3270 OdInt32 col,
3271 OdInt32 nContent) const;
3272
3294 OdInt32 row,
3295 OdInt32 col,
3296 OdInt32 nContent,
3297 OdValue::FormatOption nOption) const;
3298
3319 OdInt32 row,
3320 OdInt32 col,
3321 OdValue::FormatOption nOption ) const;
3322
3338 OdInt32 row,
3339 OdInt32 col,
3340 OdInt32 nContent,
3341 const OdString& text);
3342
3353 OdInt32 row,
3354 OdInt32 col,
3355 OdInt32 nContent) const;
3356
3367 OdInt32 row,
3368 OdInt32 col,
3369 OdInt32 nContent) const;
3370
3383 OdInt32 row,
3384 OdInt32 col,
3385 OdInt32 nContent,
3386 const OdString& pszFormula);
3387
3398 OdInt32 row,
3399 OdInt32 col,
3400 OdInt32 nContent) const;
3401
3418 OdInt32 row,
3419 OdInt32 col,
3420 OdInt32 nContent,
3421 const OdDbObjectId& fieldId,
3422 OdDb::CellOption nFlag);
3423
3433 OdInt32 row,
3434 OdInt32 col,
3435 OdInt32 nContent) const;
3436
3454 OdInt32 row,
3455 OdInt32 col,
3456 OdInt32 nContent,
3457 const OdDbObjectId& blkId,
3458 bool autoFit);
3459
3474 OdInt32 row,
3475 OdInt32 col,
3476 OdInt32 nContent,
3477 const OdDbObjectId& attdefId) const;
3478
3495 OdInt32 row,
3496 OdInt32 col,
3497 OdInt32 nContent,
3498 const OdDbObjectId& attdefId,
3499 const OdString& atrValue);
3500
3511 OdInt32 row,
3512 OdInt32 col) const;
3513
3524 OdInt32 row,
3525 OdInt32 col,
3526 OdInt32 nData);
3527
3539 OdInt32 row,
3540 OdInt32 col,
3541 const OdString sKey) const;
3542
3554 OdInt32 row,
3555 OdInt32 col,
3556 const OdString& sKey,
3557 const OdValue* pData);
3558
3569 OdInt32 row,
3570 OdInt32 col) const;
3571
3586 OdInt32 row,
3587 OdInt32 col,
3588 const OdString& sCellStyle);
3589
3612 double margin (
3613 OdInt32 row,
3614 OdInt32 col,
3615 OdDb::CellMargin nMargin) const;
3616
3641 OdInt32 row,
3642 OdInt32 col,
3643 OdDb::CellMargin nMargins,
3644 double fMargin);
3645
3658 OdInt32 row,
3659 OdInt32 col,
3660 OdInt32 content) const;
3661
3674 OdInt32 row,
3675 OdInt32 col,
3676 OdInt32 nContent) const;
3677
3693 OdInt32 row,
3694 OdInt32 col,
3695 OdInt32 nContent,
3696 const OdCmColor& color);
3697
3743 OdInt32 row,
3744 OdInt32 col,
3745 OdInt32 nContent,
3746 OdValue::DataType& nDataType,
3747 OdValue::UnitType& nUnitType) const;
3748
3796 OdInt32 row,
3797 OdInt32 col,
3798 OdInt32 nContent,
3799 OdValue::DataType nDataType,
3800 OdValue::UnitType nUnitType);
3801
3814 OdInt32 row,
3815 OdInt32 col,
3816 OdInt32 nContent) const;
3817
3833 OdInt32 row,
3834 OdInt32 col,
3835 OdInt32 nContent,
3836 const OdDbObjectId& id);
3837
3849 double textHeight (
3850 OdInt32 row,
3851 OdInt32 col,
3852 OdInt32 nContent) const;
3853
3869 OdInt32 row,
3870 OdInt32 col,
3871 OdInt32 nContent,
3872 double height);
3873
3877 double rotation() const;
3878
3890 double rotation (
3891 OdInt32 row,
3892 OdInt32 col,
3893 OdInt32 nContent) const;
3894
3900 void setRotation(double fAngle);
3901
3917 OdInt32 row,
3918 OdInt32 col,
3919 OdInt32 nContent,
3920 double fAngle);
3921
3931 OdInt32 row,
3932 OdInt32 col,
3933 OdInt32 nContent) const;
3934
3950 OdInt32 row,
3951 OdInt32 col,
3952 OdInt32 nContent,
3953 bool autoFit);
3954
3966 double scale (
3967 OdInt32 row,
3968 OdInt32 col,
3969 OdInt32 nContent) const;
3970
3984 OdInt32 row,
3985 OdInt32 col,
3986 OdInt32 nContent,
3987 double scale);
3988
4006 OdInt32 row,
4007 OdInt32 col) const;
4008
4032 OdInt32 row,
4033 OdInt32 col,
4034 OdDb::CellContentLayout nLayout);
4035
4046 OdInt32 row,
4047 OdInt32 col) const;
4048
4060 OdInt32 row,
4061 OdInt32 col,
4062 bool bEnable);
4063
4118 OdInt32 row,
4119 OdInt32 col,
4120 OdInt32 nContent) const;
4121
4166 OdInt32 row,
4167 OdInt32 col,
4168 OdDb::GridLineType nGridLineType) const;
4169
4170
4226 OdInt32 row,
4227 OdInt32 col,
4228 OdInt32 nContent,
4229 OdDb::CellProperty nOverride);
4230
4261 OdInt32 row,
4262 OdInt32 col,
4263 OdDb::GridLineType nGridLineType,
4264 OdDb::GridProperty nOverride);
4265
4275 OdInt32 row,
4276 OdInt32 col);
4277
4315 OdInt32 row,
4316 OdInt32 col,
4317 OdDb::GridLineType nGridLineType) const;
4318
4357 OdInt32 row,
4358 OdInt32 col,
4359 OdDb::GridLineType nGridLineTypes,
4360 OdDb::GridLineStyle nLineStyle);
4361
4424 OdInt32 row,
4425 OdInt32 col,
4426 OdDb::GridLineType nGridLineType) const;
4427
4491 OdInt32 row,
4492 OdInt32 col,
4493 OdDb::GridLineType nGridLineTypes,
4494 OdDb::LineWeight nLineWeight);
4495
4525 OdInt32 row,
4526 OdInt32 col,
4527 OdDb::GridLineType nGridLineType) const;
4528
4559 OdInt32 row,
4560 OdInt32 col,
4561 OdDb::GridLineType nGridLineTypes,
4562 const OdDbObjectId& idLinetype);
4563
4593 OdInt32 row,
4594 OdInt32 col,
4595 OdDb::GridLineType nGridLineType) const;
4596
4627 OdInt32 row,
4628 OdInt32 col,
4629 OdDb::GridLineType nGridlineTypes,
4630 const OdCmColor& color);
4631
4669 OdInt32 row,
4670 OdInt32 col,
4671 OdDb::GridLineType nGridLineType) const;
4672
4711 OdInt32 row,
4712 OdInt32 col,
4713 OdDb::GridLineType nGridLineTypes,
4714 OdDb::Visibility nVisibility);
4715
4745 OdInt32 row,
4746 OdInt32 col,
4747 OdDb::GridLineType nGridLineType) const;
4748
4779 OdInt32 row,
4780 OdInt32 col,
4782 nGridLineTypes,
4783 double fSpacing);
4784
4815 OdInt32 row,
4816 OdInt32 col,
4817 OdDb::GridLineType nGridLineType,
4818 OdGridProperty& gridProp) const;
4819
4850 OdInt32 row,
4851 OdInt32 col,
4852 OdDb::GridLineType nGridLineTypes,
4853 const OdGridProperty& gridProp);
4854
4882 const OdCellRange& rangeIn,
4883 OdDb::GridLineType nGridLineTypes,
4884 const OdGridProperty& gridProp);
4885
4894 OdInt32 row,
4895 OdInt32 col) const;
4896
4906 OdInt32 row,
4907 OdInt32 col) const;
4908
4928 OdInt32 row,
4929 OdInt32 col,
4930 OdDb::OpenMode mode) const;
4931
4941 const OdCellRange& pRange,
4942 OdDbObjectIdArray& dataLinkIds) const;
4943
4958 OdInt32 row,
4959 OdInt32 col,
4960 const OdDbObjectId& idDataLink,
4961 bool bUpdate);
4962
4976 (const OdCellRange& range,
4977 const OdDbObjectId& idDataLink,
4978 bool bUpdate);
4979
4988 OdInt32 row,
4989 OdInt32 col) const;
4990
5002 OdInt32 row,
5003 OdInt32 col);
5004
5008 void removeDataLink (void);
5009
5048 OdInt32 row,
5049 OdInt32 col,
5051 OdDb::UpdateOption nOption);
5052
5087 OdDb::UpdateOption nOption);
5088
5096 OdInt32 nIndex) const;
5097
5105 OdInt32 nIndex,
5106 const OdString& sName);
5107
5116 OdInt32 row,
5117 OdInt32 col) const;
5118
5127 OdInt32 row,
5128 OdInt32 col,
5129 const OdString sToolTip);
5130 // void createTemplate (OdDbTableTemplate*& pTemplate, OdDb::TableCopyOption nCopyOption);
5131 // void getIndicatorSize (double& fWidth, double& fHeight) const;
5132
5138 virtual void copyFrom(
5139 const OdRxObject* pSource);
5140
5148 const OdDbLinkedTableData* pSrc,
5149 OdDb::TableCopyOption nOption);
5150
5160 void copyFrom (const OdDbLinkedTableData* pSrc,
5161 OdDb::TableCopyOption nOption,
5162 const OdCellRange& srcRange,
5163 const OdCellRange& targetRange,
5164 OdCellRange* pNewTargetRangeOut);
5165
5175 void copyFrom (const OdDbTable* pSrc,
5176 OdDb::TableCopyOption nOption,
5177 const OdCellRange& srcRange,
5178 const OdCellRange& targetRange,
5179 OdCellRange* pNewTargetRangeOut);
5180
5189 OdDbIdPair& idPair,
5190 OdDbObject* pOwnerObject,
5191 OdDbIdMapping& ownerIdMap);
5192
5198
5205 void suppressRegenerateTable(bool bSuppress);
5206
5208 OdRxObjectPtrArray& entitySet) const ODRX_OVERRIDE;
5209
5211
5212 virtual OdResult subErase(bool erasing);
5213
5214 virtual void subHighlight(bool bDoIt = true,
5215 const OdDbFullSubentPath* pSubId = 0,
5216 bool highlightAll = false) const;
5217
5219
5222 OdDb::TableIteratorOption nOption) const;
5223
5230 void getIndicatorSize(double& dWidth, double& dHeight) const;
5231
5232 OdDbObjectPtr subWblockClone(OdDbIdMapping& idMap, OdDbObject* owner, bool bPrimary) const;
5233};
5234
5240
5242
5243#include "TD_PackPop.h"
5244
5245#endif
#define DBENT_EXPORT
Definition: DbExport.h:67
DBENT_EXPORT OdDbTablePtr odDbCreateDataLinkAndTable(OdDbDatabase *pDb, OdString linkName, OdString linkDescription, OdString connectionString)
OdSmartPtr< OdDbTable > OdDbTablePtr
Definition: DbTable.h:5239
scale
Definition: DimVarDefs.h:1684
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
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)
OdInt32 getSubTablesInfo(OdArray< OdDbSubTable > &subTables) const
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:117
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
void getIndicatorSize(double &dWidth, double &dHeight) 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
OdDbTableIteratorPtr getIterator(const OdCellRange *pRange, OdDb::TableIteratorOption nOption) 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 OdResult setSubSelection(OdInt32 rowMin, OdInt32 rowMax, OdInt32 colMin, OdInt32 colMax, OdInt32 subTable=0)
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)
OdCellRange getSubSelection(OdInt32 *subTable=NULL) const
void setGridColor(OdInt32 row, OdInt32 col, OdDb::GridLineType nGridlineTypes, const OdCmColor &color)
virtual void clearSubSelection()
virtual OdResult subErase(bool erasing)
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
virtual bool hitTest(const OdGePoint3d &wpt, const OdGeVector3d &wviewVec, double wxaper, double wyaper, OdInt32 &resultRowIndex, OdInt32 &resultColumnIndex, OdInt32 &contentIndex, OdDb::TableHitItem &nItem, OdInt32 *subTable=NULL) 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
virtual bool hitTest(const OdGePoint3d &wpt, const OdGeVector3d &wviewVec, double wxaper, double wyaper, OdInt32 &resultRowIndex, OdInt32 &resultColumnIndex, OdInt32 *subTable=NULL) 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)
virtual OdResult setSubSelection(const OdCellRange &range, OdInt32 subTable=0)
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 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)
OdDbObjectPtr subWblockClone(OdDbIdMapping &idMap, OdDbObject *owner, bool bPrimary) const
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
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)
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 void subHighlight(bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const
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
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)
OdDbTableIteratorPtr getIterator(void) const
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 getSubSelection(OdInt32 &rowMin, OdInt32 &rowMax, OdInt32 &colMin, OdInt32 &colMax, OdInt32 *subTable=NULL) 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:46
ParseOption
Definition: OdValue.h:73
UnitType
Definition: OdValue.h:62
FormatOption
Definition: OdValue.h:83
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:67
@ kTableBreakFlowRight
Definition: DbTable.h:69
@ kTableBreakFlowLeft
Definition: DbTable.h:73
@ kTableBreakFlowDownOrUp
Definition: DbTable.h:71
RotationAngle
Definition: DbTableStyle.h:80
CellContentType
Definition: DbTableStyle.h:52
CellEdgeMask
Definition: DbTableStyle.h:60
TableBreakOption
Definition: DbTable.h:48
@ kTableBreakRepeatBottomLabels
Definition: DbTable.h:56
@ kTableBreakAllowManualPositions
Definition: DbTable.h:58
@ kTableBreakNone
Definition: DbTable.h:50
@ kTableBreakAllowManualHeights
Definition: DbTable.h:60
@ kTableBreakRepeatTopLabels
Definition: DbTable.h:54
@ kTableBreakEnableBreaking
Definition: DbTable.h:52
SelectType
Definition: DbTableStyle.h:68
TableHitItem
Definition: DbTable.h:80
@ kTableHitRowIndicator
Definition: DbTable.h:86
@ kTableHitCell
Definition: DbTable.h:84
@ kTableHitColumnIndicator
Definition: DbTable.h:88
@ kTableHitGridLine
Definition: DbTable.h:90
@ kTableHitNone
Definition: DbTable.h:82
TableCopyOption
Definition: DbTableStyle.h:253
CellAlignment
Definition: DbTableStyle.h:89
GridLineStyle
Definition: DbTableStyle.h:145
TableIteratorOption
Definition: DbTableStyle.h:335
LineWeight
Definition: OdaDefs.h:386
GridProperty
Definition: DbTableStyle.h:184
CellProperty
Definition: DbTableStyle.h:203
Visibility
Definition: DbObject.h:146
OpenMode
Definition: DbObjectId.h:54
double height
Definition: DbTable.h:97
OdGePoint3d position
Definition: DbTable.h:96