CFx SDK Documentation  2020SP3
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 
OdPdfPublish::OdTableCreator::createTable
OdTablePtr createTable() const
OdPdfPublish::OdTableCreator::setCellFillColor
void setCellFillColor(const OdUInt32 row, const OdUInt32 column, const ODCOLORREF fill_color)
OdPdfPublish::OdTableCreator::ODRX_HEAP_OPERATORS
ODRX_HEAP_OPERATORS()
PdfPublishCommon.h
OdPdfPublish::OdTableCreator::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdTableCreator)
OdPdfPublish::OdTableCreator::getParticularRowHeight
bool getParticularRowHeight(const OdUInt32 row, OdUInt32 &row_height) const
OdPdfPublish::OdTableCreator::setParticularColumnWidth
void setParticularColumnWidth(const OdUInt32 col, const OdUInt32 column_width)
OdRxObject
Definition: RxObject.h:564
OdaSTL.h
PdfPublishTable.h
DoubleArray.h
OdPdfPublish::OdTableCreator::setColumnCount
void setColumnCount(const OdUInt32 column_count)
OdPdfPublish::Border::Thickness
Thickness
Definition: PdfPublishCommon.h:257
OdPdfPublish::OdTableCreator::getCellBorderThickness
void getCellBorderThickness(const OdUInt32 row, const OdUInt32 column, Border::Thickness &border_thickness) const
OdPdfPublish::OdTableCreator::OdTableCreator
OdTableCreator()
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdPdfPublish::SMARTPTR
SMARTPTR(OdFile)
OdPdfPublish::OdTableCreator::getCellBorderColor
void getCellBorderColor(const OdUInt32 row, const OdUInt32 column, ODCOLORREF &border_color) const
PDFPUBLISH_TOOLKIT
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
OdPdfPublish::OdTableCreator::getRowCount
void getRowCount(OdUInt32 &row_count) const
OdPdfPublish::OdTableCreator::isValid
bool isValid() const
OdPdfPublish
Definition: PdfPublish.h:42
OdPdfPublish::OdTableCreator::getColumnCount
void getColumnCount(OdUInt32 &column_count) const
OdPdfPublish::OdTableCreator::setCellBorderColor
void setCellBorderColor(const OdUInt32 row, const OdUInt32 column, const ODCOLORREF border_color)
OdPdfPublish::OdTableCreator::clear
void clear()
OdPdfPublish::OdTableCreator::setCellBorderThickness
void setCellBorderThickness(const OdUInt32 row, const OdUInt32 column, const Border::Thickness border_thickness)
OdPdfPublish::OdTableCreator::isEmpty
bool isEmpty() const
OdPdfPublish::OdTableCreator::~OdTableCreator
virtual ~OdTableCreator()
OdPdfPublish::OdTableCreator::setRowCount
void setRowCount(const OdUInt32 row_count)
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
OdPdfPublish::OdTableCreator::getCellFillColor
void getCellFillColor(const OdUInt32 row, const OdUInt32 column, ODCOLORREF &fill_color) const
OdPdfPublish::OdTableCreator
Definition: PdfPublishTableCreator.h:50
OdPdfPublish::OdTableCreator::getParticularColumnWidth
bool getParticularColumnWidth(const OdUInt32 col, OdUInt32 &column_width) const
OdPdfPublish::OdTableCreator::setParticularRowHeight
void setParticularRowHeight(const OdUInt32 row, const OdUInt32 row_height)
UInt32Array.h