CFx SDK Documentation  2020SP3
DbTableStyle.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_DBTABLESTYLE_H
26 #define OD_DBTABLESTYLE_H
27 
28 #include "TD_PackPush.h"
29 #include "DbObject.h"
30 #include "DbColor.h"
31 #include "OdValue.h"
32 #include "StringArray.h"
33 
38 namespace OdDb
39 {
40  // OdDbTable and OdTbTableStyle specific enum
41  //
42 
43  enum CellType
44  {
46  kTextCell = 1,
49  };
50 
52  {
57  };
58 
60  {
61  kTopMask = 0x1,
62  kRightMask = 0x2,
63  kBottomMask = 0x4,
64  kLeftMask = 0x8
65  };
66 
68  {
69  kWindow = 1,
70  kCrossing = 2
71  };
72 
74  {
75  kTtoB = 0,
76  kBtoT = 1
77  };
78 
80  {
85  kDegrees270 = 3
86  };
87 
89  {
90  kTopLeft = 1,
92  kTopRight = 3,
98  kBottomRight = 9
99  };
100 
102  {
104  kHorzTop = 0x01,
105  kHorzInside = 0x02,
106  kHorzBottom = 0x04,
107  kVertLeft = 0x08,
108  kVertInside = 0x10,
109  kVertRight = 0x20,
115  };
116 
117 
118  enum RowType
119  {
120  kUnknownRow = 0x0,
121  kDataRow = 0x1,
122  kTitleRow = 0x2,
123  kHeaderRow = 0x4
124  };
125 
127  {
131  kTableStyleModified = 0x8
132  };
133 
134  enum RowTypes
135  {
137  };
138 
140  {
142  };
143 
145  {
148  };
149 
151  {
157  kCellMarginVertSpacing = 0x20
158  };
159 
161  {
165  };
166 
168  {
181  };
182 
184  {
194  };
195 
197  {
199  kInheritCellFormat = 0x1
200  };
201 
203  {
204  kCellPropInvalid = 0x00000,
205  kCellPropDataType = 0x00001,
207  kCellPropRotation = 0x00004,
208  kCellPropScale = 0x00008,
220  kCellPropMergeAll = 0x08000,
235  };
236 
238  {
247  };
248 
253  {
256 
312  };
313 
333  };
334 }
335 
342 {
343 public:
348 
350  , m_leftColumn(-1)
351  , m_bottomRow(-1)
352  , m_rightColumn(-1) {}
353 
354  OdCellRange(OdInt32 topRow, OdInt32 leftColumn, OdInt32 bottomRow, OdInt32 rightColumn)
355  : m_topRow(topRow)
356  , m_leftColumn(leftColumn)
357  , m_bottomRow(bottomRow)
358  , m_rightColumn(rightColumn)
359  {}
360 
362  const OdCellRange& range) const
363  {
364  return ( m_topRow == range.m_topRow &&
365  m_leftColumn == range.m_leftColumn &&
366  m_bottomRow == range.m_bottomRow &&
367  m_rightColumn == range.m_rightColumn );
368  }
370  const OdCellRange& range) const
371  {
372  return !( *this == range);
373  }
374 };
375 
377 
384 {
385 public:
386 
394 
399  , m_doubleLineSpacing(0.0) {}
400 
401 };
402 
409 {
410 public:
412 
414  // virtual ~OdDbTableStyle();
415 
416  // General Properties
417  //
418 
422  virtual OdString getName() const;
423 
429  virtual void setName(const OdString& name);
430 
434  virtual OdString description() const;
435 
441  virtual void setDescription(
442  const OdString& description);
443 
458  virtual OdUInt32 bitFlags() const;
459 
476  virtual void setBitFlags(
477  OdUInt32 bitFlags);
478 
492 
507  virtual void setFlowDirection(
508  OdDb::FlowDirection flowDirection);
509 
515  virtual double horzCellMargin() const;
516 
525  virtual void setHorzCellMargin(
526  double cellMargin);
527 
528 
535  virtual double vertCellMargin() const;
536 
545  virtual void setVertCellMargin(
546  double cellMargin);
547 
551  virtual bool isTitleSuppressed() const;
552 
557  virtual void suppressTitleRow(
558  bool suppress);
559 
563  virtual bool isHeaderSuppressed() const;
564 
569  virtual void suppressHeaderRow(
570  bool suppress);
571 
572 
589  OdDb::RowType rowType = OdDb::kDataRow) const;
590 
607  virtual void setTextStyle(
608  const OdDbObjectId textStyleId,
609  int rowTypes = OdDb::kAllRows);
610 
626  virtual double textHeight(
627  OdDb::RowType rowType = OdDb::kDataRow) const;
628 
645  virtual void setTextHeight(
646  double height,
647  int rowTypes = OdDb::kAllRows);
648 
680  OdDb::RowType rowType = OdDb::kDataRow) const;
681 
682 
714  virtual void setAlignment(
715  OdDb::CellAlignment alignment,
716  int rowTypes = OdDb::kAllRows);
717 
733  virtual OdCmColor color(
734  OdDb::RowType rowType = OdDb::kDataRow) const;
735 
736 
753  virtual void setColor(
754  const OdCmColor& color,
755  int rowTypes = OdDb::kAllRows);
756 
773  OdDb::RowType rowType = OdDb::kDataRow) const;
774 
791  virtual void setBackgroundColor(
792  const OdCmColor& color,
793  int rowTypes = OdDb::kAllRows);
794 
813  virtual bool isBackgroundColorNone(
814  OdDb::RowType rowType = OdDb::kDataRow) const;
815 
833  bool disable,
834  int rowTypes = OdDb::kAllRows);
835 
836  //Gridline properties
837  //
838 
869  OdDb::GridLineType gridlineType,
870  OdDb::RowType rowType = OdDb::kDataRow) const;
871 
902  virtual void setGridLineWeight(
903  OdDb::LineWeight lineWeight,
904  int gridlineTypes = OdDb::kAllGridLines,
905  int rowTypes = OdDb::kAllRows);
906 
907 
935  OdDb::GridLineType gridlineType,
936  OdDb::RowType rowType = OdDb::kDataRow) const;
937 
964  virtual void setGridColor(
965  const OdCmColor color,
966  int gridlineTypes = OdDb::kAllGridLines,
967  int rowTypes = OdDb::kAllRows);
968 
969 
1009  OdDb::GridLineType gridlineType,
1010  OdDb::RowType rowType = OdDb::kDataRow) const;
1011 
1012 
1052  virtual void setGridVisibility(
1053  OdDb::Visibility gridVisiblity,
1054  int gridlineTypes = OdDb::kAllGridLines,
1055  int rowTypes = OdDb::kAllRows);
1056 
1057 
1058  // NEW 2007
1059 
1060  virtual void getDataType(
1061  OdValue::DataType& nDataType,
1062  OdValue::UnitType& nUnitType,
1063  OdDb::RowType rowType = OdDb::kDataRow ) const;
1064 
1065  virtual void setDataType(
1066  OdValue::DataType nDataType,
1067  OdValue::UnitType nUnitType,
1068  int rowTypes = OdDb::kAllRows);
1069 
1070  virtual OdString format (
1071  OdDb::RowType rowType = OdDb::kDataRow) const;
1072 
1073  virtual void setFormat(
1074  const OdString& pszFormat,
1075  int rowTypes = OdDb::kAllRows);
1076 
1077 
1079  OdDbDwgFiler* pFiler);
1080 
1081  virtual void dwgOutFields(
1082  OdDbDwgFiler* pFiler) const;
1083 
1085  OdDbDxfFiler* pFiler);
1086 
1087  virtual void dxfOutFields(
1088  OdDbDxfFiler* pFiler) const;
1089 
1090  // virtual OdResult audit(OdDbAuditInfo* pAuditInfo);
1091 
1092  // Utility functions
1093  //
1094 
1104 
1115  virtual OdDbObjectId postTableStyleToDb(OdDbDatabase* pDb, const OdString& styleName);
1116 
1117 
1119 
1120  void createCellStyle(const OdString& cellStyle);
1121 
1122  void createCellStyle(const OdString& cellStyle, const OdString& fromCellStyle);
1123 
1124  void renameCellStyle(const OdString& oldName, const OdString& newName);
1125 
1126  void deleteCellStyle(const OdString& cellStyle);
1127 
1128  void copyCellStyle(const OdString& srcCellStyle, const OdString& targetCellStyle);
1129 
1130  void copyCellStyle(const OdDbTableStyle* pSrc, const OdString& srcCellStyle, const OdString& targetCellStyle);
1131 
1132  void getUniqueCellStyleName(const OdString& baseName, OdString& sUniqueName) const;
1133 
1134  bool isCellStyleInUse(const OdString& cellStyle) const;
1135 
1136  OdInt32 numCellStyles(void) const;
1137 
1139 
1140  OdInt32 cellStyleId(const OdString& cellStyle) const;
1141  OdString cellStyleName(OdInt32 cellStyle) const;
1142 
1143  OdDbObjectId textStyle(const OdString& cellStyle) const;
1144  void setTextStyle (const OdDbObjectId& id, const OdString& cellStyle);
1145 
1146  double textHeight(const OdString& cellStyle) const;
1147  void setTextHeight(double dHeight, const OdString& cellStyle);
1148 
1149  OdDb::CellAlignment alignment(const OdString& cellStyle) const;
1150  void setAlignment(OdDb::CellAlignment alignment, const OdString& cellStyle);
1151 
1152  OdCmColor color(const OdString& cellStyle) const;
1153  void setColor(const OdCmColor& color, const OdString& cellStyle);
1154 
1155  OdCmColor backgroundColor(const OdString& cellStyle) const;
1156  void setBackgroundColor(const OdCmColor& color, const OdString& cellStyle);
1157 
1158  void getDataType(OdValue::DataType& nDataType, OdValue::UnitType& nUnitType, const OdString& cellStyle) const;
1159  void setDataType(OdValue::DataType nDataType, OdValue::UnitType nUnitType, const OdString& cellStyle);
1160 
1161  const OdString format(const OdString& cellStyle) const;
1162  void setFormat(const OdString& format, const OdString& cellStyle);
1163 
1164  OdInt32 cellClass(const OdString& cellStyle) const;
1165  void setCellClass(OdInt32 nClass, const OdString& cellStyle);
1166 
1167  double rotation(const OdString& cellStyle) const;
1168  void setRotation(double rotation, const OdString& cellStyle);
1169 
1170  bool isMergeAllEnabled (const OdString& cellStyle) const;
1171  void enableMergeAll(bool bEnable, const OdString& cellStyle);
1172 
1173  double margin(OdDb::CellMargin nMargin, const OdString& cellStyle) const;
1174  void setMargin(OdDb::CellMargin nMargins, double fMargin, const OdString& cellStyle);
1175 
1176  //Gridline properties
1177  //
1178  OdDb::LineWeight gridLineWeight(OdDb::GridLineType gridLineType, const OdString& cellStyle) const;
1179  void setGridLineWeight(OdDb::LineWeight lineWeight, OdDb::GridLineType gridLineTypes, const OdString& cellStyle);
1180 
1181  OdCmColor gridColor(OdDb::GridLineType gridLineType, const OdString& cellStyle) const;
1182  void setGridColor(const OdCmColor color, OdDb::GridLineType gridLineTypes, const OdString& cellStyle);
1183 
1184  OdDb::Visibility gridVisibility(OdDb::GridLineType gridLineType, const OdString& cellStyle) const;
1185  void setGridVisibility(OdDb::Visibility visible, OdDb::GridLineType gridLineTypes, const OdString& cellStyle);
1186 
1187  double gridDoubleLineSpacing(OdDb::GridLineType gridLineType, const OdString& cellStyle) const;
1188  void setGridDoubleLineSpacing(double fSpacing, OdDb::GridLineType gridLineTypes, const OdString& cellStyle);
1189 
1190  OdDb::GridLineStyle gridLineStyle(OdDb::GridLineType gridLineType, const OdString& cellStyle) const;
1191  void setGridLineStyle(OdDb::GridLineStyle nLineStyle, OdDb::GridLineType gridLineTypes, const OdString& cellStyle);
1192 
1193  OdDbObjectId gridLinetype(OdDb::GridLineType gridLineType, const OdString& cellStyle) const;
1194  void setGridLinetype(const OdDbObjectId& id, OdDb::GridLineType gridLineTypes, const OdString& cellStyle);
1195 
1196  void getGridProperty(OdGridProperty& gridProp, OdDb::GridLineType nGridLineTypes, const OdString& cellStyle) const;
1197  void setGridProperty (const OdGridProperty& gridProp, OdDb::GridLineType nGridLineTypes, const OdString& cellStyle);
1198 
1199  virtual OdResult subGetClassID(void* pClsid) const;
1200 
1201  // Template functions
1203 
1204  void setTemplate(const OdDbObjectId templateId, OdDb::MergeCellStyleOption nOption);
1205 
1207 };
1208 
1213 
1214 #include "TD_PackPop.h"
1215 
1216 #endif // OD_DBTABLESTYLE_H
OdDbTableStyle::setTemplate
void setTemplate(const OdDbObjectId templateId, OdDb::MergeCellStyleOption nOption)
OdDb::kTableCopyOptionSkipCellStyle
@ kTableCopyOptionSkipCellStyle
Definition: DbTableStyle.h:277
OdDb::kGridPropVisibility
@ kGridPropVisibility
Definition: DbTableStyle.h:190
OdDb::RowTypes
RowTypes
Definition: DbTableStyle.h:135
OdDb::kCellMarginVertSpacing
@ kCellMarginVertSpacing
Definition: DbTableStyle.h:157
OdGridProperty::m_doubleLineSpacing
double m_doubleLineSpacing
Definition: DbTableStyle.h:393
OdResult
OdResult
Definition: OdResult.h:29
OdDbTableStyle::setCellClass
void setCellClass(OdInt32 nClass, const OdString &cellStyle)
OdDb::kCellContentTypeBlock
@ kCellContentTypeBlock
Definition: DbTableStyle.h:56
OdDbTableStyle::setDatabaseDefaults
void setDatabaseDefaults(OdDbDatabase *pDb=0)
OdDbTableStyle::color
OdCmColor color(const OdString &cellStyle) const
OdDb::kHeaderRow
@ kHeaderRow
Definition: DbTableStyle.h:123
OdDbTableStyle::backgroundColor
virtual OdCmColor backgroundColor(OdDb::RowType rowType=OdDb::kDataRow) const
OdCellRange::OdCellRange
OdCellRange()
Definition: DbTableStyle.h:349
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
OdDbTableStyle::isCellStyleInUse
bool isCellStyleInUse(const OdString &cellStyle) const
OdDbTableStyle::numCellStyles
OdInt32 numCellStyles(void) const
OdDb::kHorzInsideLineFirst
@ kHorzInsideLineFirst
Definition: DbTableStyle.h:128
OdDb::kAllGridLines
@ kAllGridLines
Definition: DbTableStyle.h:141
OdDb::kCellPropTextStyle
@ kCellPropTextStyle
Definition: DbTableStyle.h:211
OdDb::kDegrees270
@ kDegrees270
Definition: DbTableStyle.h:85
OdDb::CellContentType
CellContentType
Definition: DbTableStyle.h:52
OdDbTableStyle::backgroundColor
OdCmColor backgroundColor(const OdString &cellStyle) const
OdDbTableStyle::setTextHeight
virtual void setTextHeight(double height, int rowTypes=OdDb::kAllRows)
OdDb::kTtoB
@ kTtoB
Definition: DbTableStyle.h:75
OdDbTableStyle::setGridColor
virtual void setGridColor(const OdCmColor color, int gridlineTypes=OdDb::kAllGridLines, int rowTypes=OdDb::kAllRows)
OdDb::kUnknownCell
@ kUnknownCell
Definition: DbTableStyle.h:45
OdDb::kVertGridLineTypes
@ kVertGridLineTypes
Definition: DbTableStyle.h:111
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdDbTableStyle::margin
double margin(OdDb::CellMargin nMargin, const OdString &cellStyle) const
OdCellRange::m_bottomRow
OdInt32 m_bottomRow
Definition: DbTableStyle.h:346
OdDb::kGridPropInvalid
@ kGridPropInvalid
Definition: DbTableStyle.h:185
OdDb::kRightMask
@ kRightMask
Definition: DbTableStyle.h:62
OdCellRange::OdCellRange
OdCellRange(OdInt32 topRow, OdInt32 leftColumn, OdInt32 bottomRow, OdInt32 rightColumn)
Definition: DbTableStyle.h:354
OdDb::kBottomRight
@ kBottomRight
Definition: DbTableStyle.h:98
OdDbTableStyle::setGridVisibility
virtual void setGridVisibility(OdDb::Visibility gridVisiblity, int gridlineTypes=OdDb::kAllGridLines, int rowTypes=OdDb::kAllRows)
OdValue::DataType
DataType
Definition: OdValue.h:45
OdDb::kCellMarginTop
@ kCellMarginTop
Definition: DbTableStyle.h:152
OdDbTableStyle::gridLineWeight
OdDb::LineWeight gridLineWeight(OdDb::GridLineType gridLineType, const OdString &cellStyle) const
OdDb::kTableFillOptionReverse
@ kTableFillOptionReverse
Definition: DbTableStyle.h:241
OdValue.h
OdGridProperty::m_lineStyle
OdDb::GridLineStyle m_lineStyle
Definition: DbTableStyle.h:388
OdDb::kCellPropDataType
@ kCellPropDataType
Definition: DbTableStyle.h:205
DbObject.h
OdDb::kGridLineStyleSingle
@ kGridLineStyleSingle
Definition: DbTableStyle.h:146
range
GLenum GLint * range
Definition: gles2_ext.h:563
OdDbTableStyle::setAlignment
void setAlignment(OdDb::CellAlignment alignment, const OdString &cellStyle)
OdDb::kTableCopyOptionExpandOrContractTable
@ kTableCopyOptionExpandOrContractTable
Definition: DbTableStyle.h:257
OdDb::CellEdgeMask
CellEdgeMask
Definition: DbTableStyle.h:60
OdDbTableStyle::setDataType
void setDataType(OdValue::DataType nDataType, OdValue::UnitType nUnitType, const OdString &cellStyle)
OdDb::kCellContentTypeUnknown
@ kCellContentTypeUnknown
Definition: DbTableStyle.h:53
OdDb::kCellPropMarginBottom
@ kCellPropMarginBottom
Definition: DbTableStyle.h:218
OdDbTableStyle::vertCellMargin
virtual double vertCellMargin() const
OdDb::kDataRow
@ kDataRow
Definition: DbTableStyle.h:121
OdGridProperty::m_color
OdCmColor m_color
Definition: DbTableStyle.h:391
StringArray.h
OdDbTableStyle::format
const OdString format(const OdString &cellStyle) const
OdDb::kHorzInside
@ kHorzInside
Definition: DbTableStyle.h:105
OdDbTableStyle::setTextStyle
void setTextStyle(const OdDbObjectId &id, const OdString &cellStyle)
OdDbObjectId
Definition: DbObjectId.h:99
OdDb::kHorzBottom
@ kHorzBottom
Definition: DbTableStyle.h:106
OdDb::kTableFillOptionNone
@ kTableFillOptionNone
Definition: DbTableStyle.h:239
OdDb::kDegrees090
@ kDegrees090
Definition: DbTableStyle.h:83
OdDbTableStyle::gridDoubleLineSpacing
double gridDoubleLineSpacing(OdDb::GridLineType gridLineType, const OdString &cellStyle) const
OdDb::kTableCopyOptionSkipGeometry
@ kTableCopyOptionSkipGeometry
Definition: DbTableStyle.h:288
OdDbTableStyle::cellStyleId
OdInt32 cellStyleId(const OdString &cellStyle) const
OdDb::kCellContentLayoutStackedHorizontal
@ kCellContentLayoutStackedHorizontal
Definition: DbTableStyle.h:163
OdDbTableStyle::setGridLinetype
void setGridLinetype(const OdDbObjectId &id, OdDb::GridLineType gridLineTypes, const OdString &cellStyle)
OdDbTableStyle::postTableStyleToDb
virtual OdDbObjectId postTableStyleToDb(OdDbDatabase *pDb, const OdString &styleName)
OdDb::kMergeCellStyleCopyDuplicates
@ kMergeCellStyleCopyDuplicates
Definition: DbTableStyle.h:323
OdDb::kGridPropLineWeight
@ kGridPropLineWeight
Definition: DbTableStyle.h:187
OdDb::TableFillOption
TableFillOption
Definition: DbTableStyle.h:238
OdDb::kTableCopyOptionOverwriteContentModifiedAfterUpdate
@ kTableCopyOptionOverwriteContentModifiedAfterUpdate
Definition: DbTableStyle.h:297
OdDbTableStyle::gridVisibility
OdDb::Visibility gridVisibility(OdDb::GridLineType gridLineType, const OdString &cellStyle) const
OdDbTableStyle::setBackgroundColor
virtual void setBackgroundColor(const OdCmColor &color, int rowTypes=OdDb::kAllRows)
OdDbTableStyle::horzCellMargin
virtual double horzCellMargin() const
OdValue::UnitType
UnitType
Definition: OdValue.h:61
OdDbTableStyle::textHeight
double textHeight(const OdString &cellStyle) const
OdDb::kCellStateNone
@ kCellStateNone
Definition: DbTableStyle.h:169
OdDbTableStyle::setGridLineWeight
void setGridLineWeight(OdDb::LineWeight lineWeight, OdDb::GridLineType gridLineTypes, const OdString &cellStyle)
OdDbTableStyle::setBackgroundColorNone
virtual void setBackgroundColorNone(bool disable, int rowTypes=OdDb::kAllRows)
OdArray
Definition: OdArray.h:591
OdDb::kCellContentLayoutStackedVertical
@ kCellContentLayoutStackedVertical
Definition: DbTableStyle.h:164
OdDb::kInheritCellFormat
@ kInheritCellFormat
Definition: DbTableStyle.h:199
TD_PackPop.h
OdDb::kGridPropColor
@ kGridPropColor
Definition: DbTableStyle.h:189
OdDbTableStyle::gridLinetype
OdDbObjectId gridLinetype(OdDb::GridLineType gridLineType, const OdString &cellStyle) const
OdDb::kVertInside
@ kVertInside
Definition: DbTableStyle.h:108
OdDb::kCellPropDataTypeAndFormat
@ kCellPropDataTypeAndFormat
Definition: DbTableStyle.h:224
OdDb::kTableCopyOptionConvertFormatToOverrides
@ kTableCopyOptionConvertFormatToOverrides
Definition: DbTableStyle.h:279
OdDbTableStyle::setColor
virtual void setColor(const OdCmColor &color, int rowTypes=OdDb::kAllRows)
OdDb::kCellPropTextHeight
@ kCellPropTextHeight
Definition: DbTableStyle.h:212
OdDb::kHorzInsideLineSecond
@ kHorzInsideLineSecond
Definition: DbTableStyle.h:129
OdDbTableStyle::bitFlags
virtual OdUInt32 bitFlags() const
OdGridProperty::OdGridProperty
OdGridProperty()
Definition: DbTableStyle.h:395
OdDbTableStyle::cellStyleName
OdString cellStyleName(OdInt32 cellStyle) const
OdDbTableStyle::setRotation
void setRotation(double rotation, const OdString &cellStyle)
OdDbTableStyle::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDb::kCellPropMarginTop
@ kCellPropMarginTop
Definition: DbTableStyle.h:216
OdDb::kCellContentLayoutFlow
@ kCellContentLayoutFlow
Definition: DbTableStyle.h:162
OdDbTableStyle::removeTemplate
OdDbObjectId removeTemplate(void)
OdDb::kCrossing
@ kCrossing
Definition: DbTableStyle.h:70
OdDbTableStyle::setDataType
virtual void setDataType(OdValue::DataType nDataType, OdValue::UnitType nUnitType, int rowTypes=OdDb::kAllRows)
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdDb::kTableCopyOptionSkipContentFormat
@ kTableCopyOptionSkipContentFormat
Definition: DbTableStyle.h:283
OdDbTableStyle::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDb::kBlockCell
@ kBlockCell
Definition: DbTableStyle.h:47
OdDb::kTableCopyOptionOverwriteReadOnlyFormat
@ kTableCopyOptionOverwriteReadOnlyFormat
Definition: DbTableStyle.h:296
OdDbTableStyle::setGridVisibility
void setGridVisibility(OdDb::Visibility visible, OdDb::GridLineType gridLineTypes, const OdString &cellStyle)
OdDb::kCellPropMergeAll
@ kCellPropMergeAll
Definition: DbTableStyle.h:220
OdDb::kTableCopyOptionOverwriteReadOnlyContent
@ kTableCopyOptionOverwriteReadOnlyContent
Definition: DbTableStyle.h:294
OdDb::kInvalidGridLine
@ kInvalidGridLine
Definition: DbTableStyle.h:103
OdDb::kTableCopyOptionSkipCellState
@ kTableCopyOptionSkipCellState
Definition: DbTableStyle.h:281
OdDb::kInnerGridLineTypes
@ kInnerGridLineTypes
Definition: DbTableStyle.h:113
OdDb::TableStyleFlags
TableStyleFlags
Definition: DbTableStyle.h:127
OdDb::kCellPropDataFormat
@ kCellPropDataFormat
Definition: DbTableStyle.h:206
OdDb::kAllCellStates
@ kAllCellStates
Definition: DbTableStyle.h:177
OdDb::kTableCopyOptionColumnWidth
@ kTableCopyOptionColumnWidth
Definition: DbTableStyle.h:306
OdDb::CellAlignment
CellAlignment
Definition: DbTableStyle.h:89
OdDbTableStyle
Definition: DbTableStyle.h:409
OdCellRange::m_rightColumn
OdInt32 m_rightColumn
Definition: DbTableStyle.h:347
OdDb::CellMargin
CellMargin
Definition: DbTableStyle.h:151
OdDb::kVertRight
@ kVertRight
Definition: DbTableStyle.h:109
OdDbTableStyle::getDataType
virtual void getDataType(OdValue::DataType &nDataType, OdValue::UnitType &nUnitType, OdDb::RowType rowType=OdDb::kDataRow) const
OdDb::kTableFillOptionOverwriteReadOnlyContent
@ kTableFillOptionOverwriteReadOnlyContent
Definition: DbTableStyle.h:245
OdDb::kDegrees180
@ kDegrees180
Definition: DbTableStyle.h:84
OdDbTableStyle::alignment
virtual OdDb::CellAlignment alignment(OdDb::RowType rowType=OdDb::kDataRow) const
OdDb::kGridPropLineStyle
@ kGridPropLineStyle
Definition: DbTableStyle.h:186
OdDbTableStyle::cellClass
OdInt32 cellClass(const OdString &cellStyle) const
OdDbTableStyle::enableMergeAll
void enableMergeAll(bool bEnable, const OdString &cellStyle)
OdDb::kUnknownRow
@ kUnknownRow
Definition: DbTableStyle.h:120
OdCellRange::m_leftColumn
OdInt32 m_leftColumn
Definition: DbTableStyle.h:345
OdDbTableStyle::setAlignment
virtual void setAlignment(OdDb::CellAlignment alignment, int rowTypes=OdDb::kAllRows)
OdDb::FlowDirection
FlowDirection
Definition: DbTableStyle.h:74
OdDbTableStyle::setGridDoubleLineSpacing
void setGridDoubleLineSpacing(double fSpacing, OdDb::GridLineType gridLineTypes, const OdString &cellStyle)
OdDb::RotationAngle
RotationAngle
Definition: DbTableStyle.h:80
OdDb::kTableCopyOptionSkipDataCell
@ kTableCopyOptionSkipDataCell
Definition: DbTableStyle.h:273
OdDb::MergeCellStyleOption
MergeCellStyleOption
Definition: DbTableStyle.h:317
OdDbTableStyle::OdDbTableStyle
OdDbTableStyle()
OdDb::kDegreesUnknown
@ kDegreesUnknown
Definition: DbTableStyle.h:81
OdDbTableStyle::setMargin
void setMargin(OdDb::CellMargin nMargins, double fMargin, const OdString &cellStyle)
OdDb::kTableCopyOptionSkipMerges
@ kTableCopyOptionSkipMerges
Definition: DbTableStyle.h:290
OdDb::kBottomCenter
@ kBottomCenter
Definition: DbTableStyle.h:97
OdDbTableStyle::setTextHeight
void setTextHeight(double dHeight, const OdString &cellStyle)
OdDbTableStyle::getName
virtual OdString getName() const
OdDbTableStyle::format
virtual OdString format(OdDb::RowType rowType=OdDb::kDataRow) const
OdSmartPtr
Definition: SmartPtr.h:58
OdCellRange::m_topRow
OdInt32 m_topRow
Definition: DbTableStyle.h:344
OdDbTableStyle::setFormat
void setFormat(const OdString &format, const OdString &cellStyle)
OdDb::kCellPropContentColor
@ kCellPropContentColor
Definition: DbTableStyle.h:210
OdDbTableStyle::getUniqueCellStyleName
void getUniqueCellStyleName(const OdString &baseName, OdString &sUniqueName) const
OdDb::CellState
CellState
Definition: DbTableStyle.h:168
OdDb::kTableCopyOptionSkipDissimilarContentFormat
@ kTableCopyOptionSkipDissimilarContentFormat
Definition: DbTableStyle.h:286
OdDb::kTableFillOptionCopyFormat
@ kTableFillOptionCopyFormat
Definition: DbTableStyle.h:244
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
OdCellRangeArray
OdArray< OdCellRange > OdCellRangeArray
Definition: DbTableStyle.h:376
OdDbTableStyle::setDescription
virtual void setDescription(const OdString &description)
OdDb::kTopRight
@ kTopRight
Definition: DbTableStyle.h:92
OdDb::kCellStateLinked
@ kCellStateLinked
Definition: DbTableStyle.h:172
OdDb::kTopLeft
@ kTopLeft
Definition: DbTableStyle.h:90
OdDb::kGridLineStyleDouble
@ kGridLineStyleDouble
Definition: DbTableStyle.h:147
OdDb::kHorzTop
@ kHorzTop
Definition: DbTableStyle.h:104
OdDbHardPointerId
Definition: DbObjectId.h:453
OdDbTableStyle::setBitFlags
virtual void setBitFlags(OdUInt32 bitFlags)
OdDbTableStyle::rotation
double rotation(const OdString &cellStyle) const
OdDb::kBottomLeft
@ kBottomLeft
Definition: DbTableStyle.h:96
OdDb::kCellOptionNone
@ kCellOptionNone
Definition: DbTableStyle.h:198
OdDb::kMiddleCenter
@ kMiddleCenter
Definition: DbTableStyle.h:94
OdDb::CellOption
CellOption
Definition: DbTableStyle.h:197
OdDb::kCellMarginRight
@ kCellMarginRight
Definition: DbTableStyle.h:155
OdDb::TableCopyOption
TableCopyOption
Definition: DbTableStyle.h:253
OdDb::kCellPropMarginHorzSpacing
@ kCellPropMarginHorzSpacing
Definition: DbTableStyle.h:222
OdDbTableStyle::textStyle
OdDbObjectId textStyle(const OdString &cellStyle) const
OdDb::kTableCopyOptionRowHeight
@ kTableCopyOptionRowHeight
Definition: DbTableStyle.h:303
OdDb::kBottomMask
@ kBottomMask
Definition: DbTableStyle.h:63
OdDbTableStyle::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDb::kTableFillOptionRow
@ kTableFillOptionRow
Definition: DbTableStyle.h:240
OdDb::kTableCopyOptionFillTarget
@ kTableCopyOptionFillTarget
Definition: DbTableStyle.h:292
OdDb::kTableFillOptionCopyContent
@ kTableFillOptionCopyContent
Definition: DbTableStyle.h:243
OdDbTableStyle::getTemplate
OdDbObjectId getTemplate(void) const
OdDbTableStyle::isMergeAllEnabled
bool isMergeAllEnabled(const OdString &cellStyle) const
OdDbTableStyle::flowDirection
virtual OdDb::FlowDirection flowDirection() const
height
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
OdDbTableStyle::alignment
OdDb::CellAlignment alignment(const OdString &cellStyle) const
OdDb::kTableCopyOptionForRountrip
@ kTableCopyOptionForRountrip
Definition: DbTableStyle.h:309
OdDb::kVertLeft
@ kVertLeft
Definition: DbTableStyle.h:107
OdDb::Visibility
Visibility
Definition: DbObject.h:144
OdDb::kTableCopyOptionOnlyFormatModifiedAfterUpdate
@ kTableCopyOptionOnlyFormatModifiedAfterUpdate
Definition: DbTableStyle.h:300
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbTableStyle::setGridProperty
void setGridProperty(const OdGridProperty &gridProp, OdDb::GridLineType nGridLineTypes, const OdString &cellStyle)
OdDbTableStyle::gridColor
virtual OdCmColor gridColor(OdDb::GridLineType gridlineType, OdDb::RowType rowType=OdDb::kDataRow) const
OdGridProperty::m_visibility
OdDb::Visibility m_visibility
Definition: DbTableStyle.h:392
OdDb::kGridPropAll
@ kGridPropAll
Definition: DbTableStyle.h:192
OdDb::kAllRows
@ kAllRows
Definition: DbTableStyle.h:136
OdDbTableStyle::isHeaderSuppressed
virtual bool isHeaderSuppressed() const
OdDb::kCellStateContentReadOnly
@ kCellStateContentReadOnly
Definition: DbTableStyle.h:171
OdDb::kCellMarginHorzSpacing
@ kCellMarginHorzSpacing
Definition: DbTableStyle.h:156
OdDb::kTableCopyOptionSkipValue
@ kTableCopyOptionSkipValue
Definition: DbTableStyle.h:261
OdDb::kTableCopyOptionSkipFormat
@ kTableCopyOptionSkipFormat
Definition: DbTableStyle.h:275
OdCellRange::operator==
bool operator==(const OdCellRange &range) const
Definition: DbTableStyle.h:361
OdDb::kCellStateFormatModifiedAfterUpdate
@ kCellStateFormatModifiedAfterUpdate
Definition: DbTableStyle.h:176
OdDbTableStyle::setGridLineWeight
virtual void setGridLineWeight(OdDb::LineWeight lineWeight, int gridlineTypes=OdDb::kAllGridLines, int rowTypes=OdDb::kAllRows)
OdDb::GridLineType
GridLineType
Definition: DbTableStyle.h:102
OdDbTableStyle::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbTableStyle)
OdDb::kHorzGridLineTypes
@ kHorzGridLineTypes
Definition: DbTableStyle.h:110
TD_PackPush.h
OdDb::kCellPropMarginLeft
@ kCellPropMarginLeft
Definition: DbTableStyle.h:215
OdDbTableStyle::suppressTitleRow
virtual void suppressTitleRow(bool suppress)
OdDbTableStyle::color
virtual OdCmColor color(OdDb::RowType rowType=OdDb::kDataRow) const
OdDb::kMultipleContentCell
@ kMultipleContentCell
Definition: DbTableStyle.h:48
OdDbTableStylePtr
OdSmartPtr< OdDbTableStyle > OdDbTableStylePtr
Definition: DbTableStyle.h:1212
OdDbTableStyle::suppressHeaderRow
virtual void suppressHeaderRow(bool suppress)
OdDbTableStyle::copyCellStyle
void copyCellStyle(const OdString &srcCellStyle, const OdString &targetCellStyle)
OdDb::kCellStateContentLocked
@ kCellStateContentLocked
Definition: DbTableStyle.h:170
OdDb::kCellPropContentLayout
@ kCellPropContentLayout
Definition: DbTableStyle.h:219
OdDbTableStyle::gridColor
OdCmColor gridColor(OdDb::GridLineType gridLineType, const OdString &cellStyle) const
OdDb::kTitleRow
@ kTitleRow
Definition: DbTableStyle.h:122
OdDb::kLeftMask
@ kLeftMask
Definition: DbTableStyle.h:64
OdDbTableStyle::description
virtual OdString description() const
OdCellRange
Definition: DbTableStyle.h:342
kVisible
@ kVisible
Definition: BrEnums.h:114
OdGridProperty::m_linetype
OdDbHardPointerId m_linetype
Definition: DbTableStyle.h:390
OdDb::kCellPropMarginRight
@ kCellPropMarginRight
Definition: DbTableStyle.h:217
OdDb::kTableCopyOptionSkipFormula
@ kTableCopyOptionSkipFormula
Definition: DbTableStyle.h:265
OdDbTableStyle::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDb::RowType
RowType
Definition: DbTableStyle.h:119
DbColor.h
OdDb::kCellStateFormatReadOnly
@ kCellStateFormatReadOnly
Definition: DbTableStyle.h:175
OdDb::kCellPropAutoScale
@ kCellPropAutoScale
Definition: DbTableStyle.h:213
OdDb::kLnWtByBlock
@ kLnWtByBlock
Definition: OdaDefs.h:408
OdDb::kTableCopyOptionNone
@ kTableCopyOptionNone
Definition: DbTableStyle.h:255
OdDb::GridProperty
GridProperty
Definition: DbTableStyle.h:184
OdDbTableStyle::setColor
void setColor(const OdCmColor &color, const OdString &cellStyle)
OdDbTableStyle::setGridColor
void setGridColor(const OdCmColor color, OdDb::GridLineType gridLineTypes, const OdString &cellStyle)
OdDb::kCellPropScale
@ kCellPropScale
Definition: DbTableStyle.h:208
OdDb::kCellStateFormatLocked
@ kCellStateFormatLocked
Definition: DbTableStyle.h:174
OdDb::kTableCopyOptionFullCellState
@ kTableCopyOptionFullCellState
Definition: DbTableStyle.h:308
OdDb::kCellPropBitProperties
@ kCellPropBitProperties
Definition: DbTableStyle.h:228
OdDb::kTableCopyOptionOnlyContentModifiedAfterUpdate
@ kTableCopyOptionOnlyContentModifiedAfterUpdate
Definition: DbTableStyle.h:299
OdDbTableStyle::createCellStyle
void createCellStyle(const OdString &cellStyle, const OdString &fromCellStyle)
OdDb::GridLineTypes
GridLineTypes
Definition: DbTableStyle.h:140
OdDb::kMergeCellStyleIgnoreNewStyles
@ kMergeCellStyleIgnoreNewStyles
Definition: DbTableStyle.h:332
OdDb::kTableCopyOptionSkipDataLink
@ kTableCopyOptionSkipDataLink
Definition: DbTableStyle.h:269
OdDbTableStyle::getDataType
void getDataType(OdValue::DataType &nDataType, OdValue::UnitType &nUnitType, const OdString &cellStyle) const
OdDb::kTableCopyOptionSkipField
@ kTableCopyOptionSkipField
Definition: DbTableStyle.h:263
OdDb::kBtoT
@ kBtoT
Definition: DbTableStyle.h:76
OdDb::kTableCopyOptionConvertFieldToValue
@ kTableCopyOptionConvertFieldToValue
Definition: DbTableStyle.h:310
OdDbTableStyle::gridLineStyle
OdDb::GridLineStyle gridLineStyle(OdDb::GridLineType gridLineType, const OdString &cellStyle) const
OdDbTableStyle::renameCellStyle
void renameCellStyle(const OdString &oldName, const OdString &newName)
OdDb::kMergeCellStyleConvertDuplicatesToOverrides
@ kMergeCellStyleConvertDuplicatesToOverrides
Definition: DbTableStyle.h:329
OdDbTableStyle::textStyle
virtual OdDbObjectId textStyle(OdDb::RowType rowType=OdDb::kDataRow) const
OdDb::kGridPropLinetype
@ kGridPropLinetype
Definition: DbTableStyle.h:188
OdGridProperty::m_lineWeight
OdDb::LineWeight m_lineWeight
Definition: DbTableStyle.h:389
OdDb::kCellPropBackgroundColor
@ kCellPropBackgroundColor
Definition: DbTableStyle.h:214
OdDb::kTableCopyOptionSkipFieldTranslation
@ kTableCopyOptionSkipFieldTranslation
Definition: DbTableStyle.h:311
OdDbTableStyle::setTextStyle
virtual void setTextStyle(const OdDbObjectId textStyleId, int rowTypes=OdDb::kAllRows)
OdDb::LineWeight
LineWeight
Definition: OdaDefs.h:382
OdDb::kCellPropInvalid
@ kCellPropInvalid
Definition: DbTableStyle.h:204
OdDb::CellType
CellType
Definition: DbTableStyle.h:44
OdDb::kCellPropRotation
@ kCellPropRotation
Definition: DbTableStyle.h:207
OdDbTableStyle::setName
virtual void setName(const OdString &name)
OdDb::kCellPropAlignment
@ kCellPropAlignment
Definition: DbTableStyle.h:209
OdDb
Definition: Db2dPolyline.h:50
OdDbTableStyle::deleteCellStyle
void deleteCellStyle(const OdString &cellStyle)
OdDb::kMiddleRight
@ kMiddleRight
Definition: DbTableStyle.h:95
OdDbTableStyle::textHeight
virtual double textHeight(OdDb::RowType rowType=OdDb::kDataRow) const
OdDb::CellContentLayout
CellContentLayout
Definition: DbTableStyle.h:161
OdGridProperty::m_propMask
OdDb::GridProperty m_propMask
Definition: DbTableStyle.h:387
OdDbTableStyle::getGridProperty
void getGridProperty(OdGridProperty &gridProp, OdDb::GridLineType nGridLineTypes, const OdString &cellStyle) const
format
GLint GLint GLint GLsizei GLsizei GLenum format
Definition: gles2_ext.h:111
OdDb::kGridPropDoubleLineSpacing
@ kGridPropDoubleLineSpacing
Definition: DbTableStyle.h:191
OdDbTableStyle::setFlowDirection
virtual void setFlowDirection(OdDb::FlowDirection flowDirection)
OdDb::kTextCell
@ kTextCell
Definition: DbTableStyle.h:46
OdDb::kTableCopyOptionOverwriteFormatModifiedAfterUpdate
@ kTableCopyOptionOverwriteFormatModifiedAfterUpdate
Definition: DbTableStyle.h:298
OdDb::kTableCopyOptionSkipContent
@ kTableCopyOptionSkipContent
Definition: DbTableStyle.h:259
OdDbTableStyle::getCellStyles
OdInt32 getCellStyles(OdStringArray &cellstyles) const
OdDb::CellProperty
CellProperty
Definition: DbTableStyle.h:203
OdDbTableStyle::gridLineWeight
virtual OdDb::LineWeight gridLineWeight(OdDb::GridLineType gridlineType, OdDb::RowType rowType=OdDb::kDataRow) const
OdDbTableStyle::createCellStyle
void createCellStyle(const OdString &cellStyle)
OdDb::kTableCopyOptionSkipLabelCell
@ kTableCopyOptionSkipLabelCell
Definition: DbTableStyle.h:271
OdDbTableStyle::createCellStyle
const OdString createCellStyle(void)
OdDb::GridLineStyle
GridLineStyle
Definition: DbTableStyle.h:145
OdDb::kDegrees000
@ kDegrees000
Definition: DbTableStyle.h:82
OdDb::kCellPropAll
@ kCellPropAll
Definition: DbTableStyle.h:229
OdDb::kTableFillOptionGenerateSeries
@ kTableFillOptionGenerateSeries
Definition: DbTableStyle.h:242
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbTableStyle::setFormat
virtual void setFormat(const OdString &pszFormat, int rowTypes=OdDb::kAllRows)
OdDb::kCellPropMarginVertSpacing
@ kCellPropMarginVertSpacing
Definition: DbTableStyle.h:223
OdDbTableStyle::copyCellStyle
void copyCellStyle(const OdDbTableStyle *pSrc, const OdString &srcCellStyle, const OdString &targetCellStyle)
OdDbTableStyle::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbTableStyle::isBackgroundColorNone
virtual bool isBackgroundColorNone(OdDb::RowType rowType=OdDb::kDataRow) const
OdDb::kWindow
@ kWindow
Definition: DbTableStyle.h:69
OdCellRange::operator!=
bool operator!=(const OdCellRange &range) const
Definition: DbTableStyle.h:369
OdDb::kMergeCellStyleOverwriteDuplicates
@ kMergeCellStyleOverwriteDuplicates
Definition: DbTableStyle.h:326
OdDb::kTableStyleModified
@ kTableStyleModified
Definition: DbTableStyle.h:131
OdDb::kMiddleLeft
@ kMiddleLeft
Definition: DbTableStyle.h:93
OdDb::kCellContentTypeField
@ kCellContentTypeField
Definition: DbTableStyle.h:55
OdDb::kCellMarginLeft
@ kCellMarginLeft
Definition: DbTableStyle.h:153
OdDb::kCellMarginBottom
@ kCellMarginBottom
Definition: DbTableStyle.h:154
OdDbTableStyle::isTitleSuppressed
virtual bool isTitleSuppressed() const
OdDb::kHorzInsideLineThird
@ kHorzInsideLineThird
Definition: DbTableStyle.h:130
OdCmColor
Definition: CmColor.h:59
OdDbTableStyle::setHorzCellMargin
virtual void setHorzCellMargin(double cellMargin)
OdDb::kMergeCellStyleNone
@ kMergeCellStyleNone
Definition: DbTableStyle.h:320
OdDbTableStyle::gridVisibility
virtual OdDb::Visibility gridVisibility(OdDb::GridLineType gridlineType, OdDb::RowType rowType=OdDb::kDataRow) const
OdDb::kOuterGridLineTypes
@ kOuterGridLineTypes
Definition: DbTableStyle.h:112
OdDb::kCellStateContentModifiedAfterUpdate
@ kCellStateContentModifiedAfterUpdate
Definition: DbTableStyle.h:173
OdDbTableStyle::setGridLineStyle
void setGridLineStyle(OdDb::GridLineStyle nLineStyle, OdDb::GridLineType gridLineTypes, const OdString &cellStyle)
OdDb::kTopCenter
@ kTopCenter
Definition: DbTableStyle.h:91
OdDb::SelectType
SelectType
Definition: DbTableStyle.h:68
OdDb::kCellPropContent
@ kCellPropContent
Definition: DbTableStyle.h:225
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDb::kTopMask
@ kTopMask
Definition: DbTableStyle.h:61
OdDb::kTableFillOptionOverwriteReadOnlyFormat
@ kTableFillOptionOverwriteReadOnlyFormat
Definition: DbTableStyle.h:246
OdDbTableStyle::setVertCellMargin
virtual void setVertCellMargin(double cellMargin)
OdDb::kTableCopyOptionSkipBlock
@ kTableCopyOptionSkipBlock
Definition: DbTableStyle.h:267
OdGridProperty
Definition: DbTableStyle.h:384
OdDbTableStyle::setBackgroundColor
void setBackgroundColor(const OdCmColor &color, const OdString &cellStyle)
OdDb::kCellContentTypeValue
@ kCellContentTypeValue
Definition: DbTableStyle.h:54
OdDb::kAllGridLineTypes
@ kAllGridLineTypes
Definition: DbTableStyle.h:114
OdDb::kCellPropFlowDirBtoT
@ kCellPropFlowDirBtoT
Definition: DbTableStyle.h:221