CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
PdfPublishTableCreator.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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
26//
27// OdTableCreator.h
28//
30
31#ifndef _PDF_PUBLISH_TABLE_CREATOR_INCLUDED_
32#define _PDF_PUBLISH_TABLE_CREATOR_INCLUDED_
33
34#include "PdfPublishCommon.h"
35#include "PdfPublishTable.h"
36#include "UInt32Array.h"
37#include "DoubleArray.h"
39#define STL_USING_MAP
40#include "OdaSTL.h"
41
46namespace OdPdfPublish{
47
48 class OdTableCreatorImpl;
49
56class PDFPUBLISH_TOOLKIT OdTableCreator : public OdRxObject
57{
58
59 friend class OdTableCreatorImpl;
60 OdTableCreatorImpl* m_pImpl;
61protected:
63
64public:
65
68
73 bool isEmpty() const;
74
78 void clear();
79
84 bool isValid() const;
85
89 virtual ~OdTableCreator();
90
98 void setColumnCount(const OdUInt32 column_count);
99
107 void setRowCount(const OdUInt32 row_count);
108
114 void setParticularColumnWidth(const OdUInt32 col, const OdUInt32 column_width);
115
121 void setParticularRowHeight(const OdUInt32 row, const OdUInt32 row_height);
122
129 void setCellFillColor(const OdUInt32 row, const OdUInt32 column, const ODCOLORREF fill_color);
130
137 void setCellBorderColor(const OdUInt32 row, const OdUInt32 column, const ODCOLORREF border_color);
138
145 void setCellBorderThickness(const OdUInt32 row, const OdUInt32 column, const Border::Thickness border_thickness);
146
153 void setCellBackgroundImage(const OdUInt32 row, const OdUInt32 column, const OdImagePtr background_image);
154
161 void setCellTilingPattern(const OdUInt32 row, const OdUInt32 column, const OdTilingPatternPtr tiling_pattern);
162
169 void getColumnCount(OdUInt32& column_count) const;
170
177 void getRowCount(OdUInt32& row_count) const;
178
189 bool getParticularColumnWidth(const OdUInt32 col, OdUInt32& column_width) const;
190
201 bool getParticularRowHeight(const OdUInt32 row, OdUInt32& row_height) const;
202
211 void getCellFillColor(const OdUInt32 row, const OdUInt32 column, ODCOLORREF& fill_color) const;
212
221 void getCellBorderColor(const OdUInt32 row, const OdUInt32 column, ODCOLORREF& border_color) const;
222
231 void getCellBorderThickness(const OdUInt32 row, const OdUInt32 column, Border::Thickness& border_thickness) const;
232
242 void getCellBackgroundImage(const OdUInt32 row, const OdUInt32 column, OdImagePtr& background_image) const;
243
253 void getCellTilingPattern(const OdUInt32 row, const OdUInt32 column, OdTilingPatternPtr& tiling_pattern) const;
254
259 OdTablePtr createTable() const;
260
261};
262
267
268}
269#endif // _PDF_PUBLISH_TABLE_CREATOR_INCLUDED_
270
#define SMARTPTR(classname)
Definition IfcCommon.h:33
#define ODCOLORREF
unsigned int OdUInt32
#define PDFPUBLISH_TOOLKIT
OdTablePtr createTable() const
void getCellBorderColor(const OdUInt32 row, const OdUInt32 column, ODCOLORREF &border_color) const
void setParticularRowHeight(const OdUInt32 row, const OdUInt32 row_height)
void setCellBorderThickness(const OdUInt32 row, const OdUInt32 column, const Border::Thickness border_thickness)
bool getParticularRowHeight(const OdUInt32 row, OdUInt32 &row_height) const
void setRowCount(const OdUInt32 row_count)
void setCellFillColor(const OdUInt32 row, const OdUInt32 column, const ODCOLORREF fill_color)
void setCellBorderColor(const OdUInt32 row, const OdUInt32 column, const ODCOLORREF border_color)
void getRowCount(OdUInt32 &row_count) const
void getCellFillColor(const OdUInt32 row, const OdUInt32 column, ODCOLORREF &fill_color) const
ODRX_DECLARE_MEMBERS(OdTableCreator)
void setParticularColumnWidth(const OdUInt32 col, const OdUInt32 column_width)
void setCellTilingPattern(const OdUInt32 row, const OdUInt32 column, const OdTilingPatternPtr tiling_pattern)
void getCellTilingPattern(const OdUInt32 row, const OdUInt32 column, OdTilingPatternPtr &tiling_pattern) const
void getColumnCount(OdUInt32 &column_count) const
void setCellBackgroundImage(const OdUInt32 row, const OdUInt32 column, const OdImagePtr background_image)
void getCellBackgroundImage(const OdUInt32 row, const OdUInt32 column, OdImagePtr &background_image) const
bool getParticularColumnWidth(const OdUInt32 col, OdUInt32 &column_width) const
void getCellBorderThickness(const OdUInt32 row, const OdUInt32 column, Border::Thickness &border_thickness) const
void setColumnCount(const OdUInt32 column_count)