CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
PdfPublishTableCreator.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
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"
38#define STL_USING_MAP
39#include "OdaSTL.h"
40
45namespace OdPdfPublish{
46
47//DOM-IGNORE-BEGIN
48 class OdTableCreatorImpl;
49//DOM-IGNORE-END
50
56{
57
58//DOM-IGNORE-BEGIN
59 friend class OdTableCreatorImpl;
60 OdTableCreatorImpl* m_pImpl;
61protected:
63//DOM-IGNORE-END
64
65public:
66
67 //DOM-IGNORE-BEGIN
70 //DOM-IGNORE-END
71
72
77 bool isEmpty() const;
78
82 void clear();
83
88 bool isValid() const;
89
93 virtual ~OdTableCreator();
94
102 void setColumnCount(const OdUInt32 column_count);
103
111 void setRowCount(const OdUInt32 row_count);
112
118 void setParticularColumnWidth(const OdUInt32 col, const OdUInt32 column_width);
119
125 void setParticularRowHeight(const OdUInt32 row, const OdUInt32 row_height);
126
133 void setCellFillColor(const OdUInt32 row, const OdUInt32 column, const ODCOLORREF fill_color);
134
141 void setCellBorderColor(const OdUInt32 row, const OdUInt32 column, const ODCOLORREF border_color);
142
149 void setCellBorderThickness(const OdUInt32 row, const OdUInt32 column, const Border::Thickness border_thickness);
150
157 void getColumnCount(OdUInt32& column_count) const;
158
165 void getRowCount(OdUInt32& row_count) const;
166
177 bool getParticularColumnWidth(const OdUInt32 col, OdUInt32& column_width) const;
178
188 bool getParticularRowHeight(const OdUInt32 row, OdUInt32& row_height) const;
189
198 void getCellFillColor(const OdUInt32 row, const OdUInt32 column, ODCOLORREF& fill_color) const;
199
208 void getCellBorderColor(const OdUInt32 row, const OdUInt32 column, ODCOLORREF& border_color) const;
209
218 void getCellBorderThickness(const OdUInt32 row, const OdUInt32 column, Border::Thickness& border_thickness) const;
219
224 OdTablePtr createTable() const;
225
226};
227
232
233}
234#endif // _PDF_PUBLISH_TABLE_CREATOR_INCLUDED_
235
#define SMARTPTR(classname)
Definition: IfcCommon.h:33
#define ODCOLORREF
Definition: OdPlatform.h:933
unsigned int OdUInt32
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
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 getColumnCount(OdUInt32 &column_count) 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)