CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
PdfPublishTable.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// PdfPublishTable.h
28//
30
31#ifndef _PDF_PUBLISH_TABLE_INCLUDED_
32#define _PDF_PUBLISH_TABLE_INCLUDED_
33
35#include "PdfPublishText.h"
36#include "PdfPublishTextField.h"
37#include "PdfPublishLink.h"
38#include "PdfPublishButton.h"
39#include "DoubleArray.h"
40
45namespace OdPdfPublish{
46
52class PDFPUBLISH_TOOLKIT OdTable : public OdObject
53{
54 //DOM-IGNORE-BEGIN
55protected:
57 //DOM-IGNORE-END
58public:
59 //DOM-IGNORE-BEGIN
62 //DOM-IGNORE-END
63
67 virtual ~OdTable();
68
80 void setLink(const OdUInt32 row, const OdUInt32 column, const OdLinkPtr& link);
81
96 void setText(const OdUInt32 row, const OdUInt32 column, const OdTextPtr& text, const double rotation = 0., const Table::TextAlignment alignment = Table::kCenter);
97
106 void setTextMargins(const OdUInt32 left, const OdUInt32 right, const OdUInt32 bottom, const OdUInt32 top);
107
119 void setButton(const OdUInt32 row, const OdUInt32 column, const OdButtonPtr& button);
120
132 void setTextField(const OdUInt32 row, const OdUInt32 column, const OdTextFieldPtr& text_field);
133
145 void getLink(const OdUInt32 row, const OdUInt32 column, OdLinkPtr& link) const;
146
164 void getText(const OdUInt32 row, const OdUInt32 column, OdTextPtr& text, double& rotation, Table::TextAlignment& alignment) const;
165
174 void getTextMargins(OdUInt32& left, OdUInt32& right, OdUInt32& bottom, OdUInt32& top) const;
175
190 void getButton(const OdUInt32 row, const OdUInt32 column, OdButtonPtr& button) const;
191
206 void getTextField(const OdUInt32 row, const OdUInt32 column, OdTextFieldPtr& text_field) const;
207
208};
209
214
215}
216#endif // _PDF_PUBLISH_TABLE_INCLUDED_
217
#define SMARTPTR(classname)
Definition IfcCommon.h:33
unsigned int OdUInt32
#define PDFPUBLISH_TOOLKIT
void getButton(const OdUInt32 row, const OdUInt32 column, OdButtonPtr &button) const
void setTextMargins(const OdUInt32 left, const OdUInt32 right, const OdUInt32 bottom, const OdUInt32 top)
void getTextMargins(OdUInt32 &left, OdUInt32 &right, OdUInt32 &bottom, OdUInt32 &top) const
void setText(const OdUInt32 row, const OdUInt32 column, const OdTextPtr &text, const double rotation=0., const Table::TextAlignment alignment=Table::kCenter)
void getTextField(const OdUInt32 row, const OdUInt32 column, OdTextFieldPtr &text_field) const
void setLink(const OdUInt32 row, const OdUInt32 column, const OdLinkPtr &link)
void getLink(const OdUInt32 row, const OdUInt32 column, OdLinkPtr &link) const
ODRX_DECLARE_MEMBERS(OdTable)
void setButton(const OdUInt32 row, const OdUInt32 column, const OdButtonPtr &button)
void setTextField(const OdUInt32 row, const OdUInt32 column, const OdTextFieldPtr &text_field)
void getText(const OdUInt32 row, const OdUInt32 column, OdTextPtr &text, double &rotation, Table::TextAlignment &alignment) const