CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
PdfPublishPage.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// PdfPublishPage.h
28//
30
31#ifndef _PDF_PUBLISH_PAGE_INCLUDED_
32#define _PDF_PUBLISH_PAGE_INCLUDED_
33
36#include "PdfPublishText.h"
37#include "PdfPublishImage.h"
38#include "PdfPublishTextField.h"
41#include "PdfPublishListBox.h"
43#include "PdfPublishCheckBox.h"
44#include "PdfPublishLink.h"
46#include "PdfPublishButton.h"
47#include "PdfPublishTable.h"
51
56namespace OdPdfPublish{
57
66{
67 //DOM-IGNORE-BEGIN
68protected:
70 //DOM-IGNORE-END
71public:
72 //DOM-IGNORE-BEGIN
75 //DOM-IGNORE-END
76
80 virtual ~OdPage();
81
91
101
112 void setPaperSize(const Page::PaperUnits units, const double width, const double height);
113
123 void addAnnotation(const OdAnnotationPtr& annotation, const OdRect& location);
124
134 void addText(const OdTextPtr& text, const OdRect& location);
135
145 void addImage(const OdImagePtr& image, const OdRect& location);
146
156 void addTable(const OdTablePtr& table, const OdRect& location);
157
167 void addLink(const OdLinkPtr& link, const OdRect& location);
168
178 void addButton(const OdButtonPtr& button, const OdRect& location);
179
189 void addTextField(const OdTextFieldPtr& text_field, const OdRect& location);
190
200 void addSlideTable(const OdSlideTablePtr& slide_table, const OdRect& location);
201
211 void addCheckBox(const OdCheckBoxPtr& check_box, const OdRect& location);
212
222 void addRadioButton(const OdRadioButtonPtr& radio_button, const OdRect& location);
223
233 void addListBox(const OdListBoxPtr& list_box, const OdRect& location);
234
244 void addDropDownList(const OdDropDownListPtr& drop_down_list, const OdRect& location);
245
255 void addSignatureField(const OdSignatureFieldPtr& signature_field, const OdRect& location);
256
263 void add2dGeometry(const Od2dGeometryReferencePtr& geom, const OdRect& location);
264
273 void add2dGeometry(const Od2dGeometryReferencePtr& geom);
274
284 void addCADReference(const OdCADReferencePtr& CADreferense, const OdRect& location);
285
297 void addCADReference(const OdCADReferencePtr& CADreferense);
298
316 void addJavaScriptActionByField(const OdString& field_name, const OdString& source, const Action::Type action_type, const Source::Type source_type = Source::kCode);
317
327
336 void getOrientation(Page::Orientation& orientation) const;
337
348 void getPaperSize(const Page::PaperUnits units, double& width, double& height) const;
349
360 void getAnnotations(OdAnnotationPtrArray& annotations, OdRectArray& locations) const;
361
372 void getTexts(OdTextPtrArray& texts, OdRectArray& locations) const;
373
384 void getImages(OdImagePtrArray& images, OdRectArray& locations) const;
385
395 void getTables(OdTablePtrArray& tables, OdRectArray& locations) const;
396
407 void getLinks(OdLinkPtrArray& links, OdRectArray& locations) const;
408
419 void getButtons(OdButtonPtrArray& buttons, OdRectArray& locations) const;
420
431 void getCheckBoxes(OdCheckBoxPtrArray& check_boxes, OdRectArray& locations) const;
432
443 void getRadioButtons(OdRadioButtonPtrArray& radio_buttons, OdRectArray& locations) const;
444
455 void getListBoxes(OdListBoxPtrArray& list_boxes, OdRectArray& locations) const;
456
466 void getDropDownLists(OdDropDownListPtrArray& drop_down_lists, OdRectArray& locations) const;
467
478 void getSignatureFields(OdSignatureFieldPtrArray& signature_fields, OdRectArray& locations) const;
479
490 void getTextFields(OdTextFieldPtrArray& text_fields, OdRectArray& locations) const;
491
502 void getSlideTables(OdSlideTablePtrArray& slide_tables, OdRectArray& locations) const;
503
516 void getJavaScriptActionsByField(const OdString& field_name, OdStringArray& sources, OdActionTypeArray& action_types, OdSourceTypeArray& source_types) const;
517
525 void get2dGeoms(Od2dGeometryReferencePtrArray& geoms, OdRectArray& locations) const;
526
534 void getCADReferences(OdCADReferencePtrArray& CADreferenses, OdRectArray& locations) const;
535
536};
537
542
543}
544#endif // _PDF_PUBLISH_PAGE_INCLUDED_
545
#define SMARTPTR(classname)
Definition: IfcCommon.h:33
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
void addRadioButton(const OdRadioButtonPtr &radio_button, const OdRect &location)
void addTextField(const OdTextFieldPtr &text_field, const OdRect &location)
ODRX_DECLARE_MEMBERS(OdPage)
void addJavaScriptActionByField(const OdString &field_name, const OdString &source, const Action::Type action_type, const Source::Type source_type=Source::kCode)
void setFormat(Page::Format format)
void addImage(const OdImagePtr &image, const OdRect &location)
void getTextFields(OdTextFieldPtrArray &text_fields, OdRectArray &locations) const
void getListBoxes(OdListBoxPtrArray &list_boxes, OdRectArray &locations) const
void getJavaScriptActionsByField(const OdString &field_name, OdStringArray &sources, OdActionTypeArray &action_types, OdSourceTypeArray &source_types) const
void addAnnotation(const OdAnnotationPtr &annotation, const OdRect &location)
void getCheckBoxes(OdCheckBoxPtrArray &check_boxes, OdRectArray &locations) const
void addListBox(const OdListBoxPtr &list_box, const OdRect &location)
void getImages(OdImagePtrArray &images, OdRectArray &locations) const
void getAnnotations(OdAnnotationPtrArray &annotations, OdRectArray &locations) const
void getOrientation(Page::Orientation &orientation) const
void addButton(const OdButtonPtr &button, const OdRect &location)
void getRadioButtons(OdRadioButtonPtrArray &radio_buttons, OdRectArray &locations) const
void addTable(const OdTablePtr &table, const OdRect &location)
void add2dGeometry(const Od2dGeometryReferencePtr &geom, const OdRect &location)
void addSignatureField(const OdSignatureFieldPtr &signature_field, const OdRect &location)
void add2dGeometry(const Od2dGeometryReferencePtr &geom)
void getTables(OdTablePtrArray &tables, OdRectArray &locations) const
void getSlideTables(OdSlideTablePtrArray &slide_tables, OdRectArray &locations) const
void setPaperSize(const Page::PaperUnits units, const double width, const double height)
void addSlideTable(const OdSlideTablePtr &slide_table, const OdRect &location)
void getTexts(OdTextPtrArray &texts, OdRectArray &locations) const
void getDropDownLists(OdDropDownListPtrArray &drop_down_lists, OdRectArray &locations) const
void addText(const OdTextPtr &text, const OdRect &location)
void getFormat(Page::Format &format) const
void setOrientation(Page::Orientation orientation)
void getButtons(OdButtonPtrArray &buttons, OdRectArray &locations) const
void getPaperSize(const Page::PaperUnits units, double &width, double &height) const
void getSignatureFields(OdSignatureFieldPtrArray &signature_fields, OdRectArray &locations) const
void addCheckBox(const OdCheckBoxPtr &check_box, const OdRect &location)
void getLinks(OdLinkPtrArray &links, OdRectArray &locations) const
void addLink(const OdLinkPtr &link, const OdRect &location)
void addCADReference(const OdCADReferencePtr &CADreferense)
void getCADReferences(OdCADReferencePtrArray &CADreferenses, OdRectArray &locations) const
void get2dGeoms(Od2dGeometryReferencePtrArray &geoms, OdRectArray &locations) const
void addCADReference(const OdCADReferencePtr &CADreferense, const OdRect &location)
void addDropDownList(const OdDropDownListPtr &drop_down_list, const OdRect &location)
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
GLint location
Definition: gles2_ext.h:284
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
GLint GLint GLint GLsizei GLsizei GLenum format
Definition: gles2_ext.h:111
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110