CFx SDK Documentation  2023 SP0
PdfPublishTableCreator.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 
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 
41 
42 namespace OdPdfPublish{
43 
47  class OdTableCreatorImpl;
48 
50 {
51 
52  friend class OdTableCreatorImpl;
53  OdTableCreatorImpl* m_pImpl;
54 
55 public:
58 
59  bool isEmpty() const;
60  void clear();
61  bool isValid() const;
62 
64  virtual ~OdTableCreator();
65 
66  void setColumnCount(const OdUInt32 column_count);
67  void setRowCount(const OdUInt32 row_count);
68  void setParticularColumnWidth(const OdUInt32 col, const OdUInt32 column_width);
69  void setParticularRowHeight(const OdUInt32 row, const OdUInt32 row_height);
70  void setCellFillColor(const OdUInt32 row, const OdUInt32 column, const ODCOLORREF fill_color);
71  void setCellBorderColor(const OdUInt32 row, const OdUInt32 column, const ODCOLORREF border_color);
72  void setCellBorderThickness(const OdUInt32 row, const OdUInt32 column, const Border::Thickness border_thickness);
73 
74 
75  void getColumnCount(OdUInt32& column_count) const;
76  void getRowCount(OdUInt32& row_count) const;
77  bool getParticularColumnWidth(const OdUInt32 col, OdUInt32& column_width) const;
78  bool getParticularRowHeight(const OdUInt32 row, OdUInt32& row_height) const;
79  void getCellFillColor(const OdUInt32 row, const OdUInt32 column, ODCOLORREF& fill_color) const;
80  void getCellBorderColor(const OdUInt32 row, const OdUInt32 column, ODCOLORREF& border_color) const;
81  void getCellBorderThickness(const OdUInt32 row, const OdUInt32 column, Border::Thickness& border_thickness) const;
82 
83  OdTablePtr createTable() const;
84 
85 };
86 
91 
92 }
93 #endif // _PDF_PUBLISH_TABLE_CREATOR_INCLUDED_
94 
#define ODCOLORREF
Definition: OdPlatform.h:883
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)
SMARTPTR(OdFile)