CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
PdfPublishPage.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// 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"
52#include "PdfPublishWatermark.h"
53
58namespace OdPdfPublish{
59
67class PDFPUBLISH_TOOLKIT OdPage : public OdObject
68{
69 //DOM-IGNORE-BEGIN
70protected:
72 //DOM-IGNORE-END
73public:
74 //DOM-IGNORE-BEGIN
77 //DOM-IGNORE-END
78
82 virtual ~OdPage();
83
93
103
114 void setPaperSize(const Page::PaperUnits units, const double width, const double height);
115
125 void addAnnotation(const OdAnnotationPtr& annotation, const OdRect& location);
126
139 void addText(const OdTextPtr& text, const OdRect& location, const double rotation = 0.);
140
151 void addImage(const OdImagePtr& image, const OdRect& location, const double rotation = 0.);
152
162 void addTable(const OdTablePtr& table, const OdRect& location);
163
173 void addLink(const OdLinkPtr& link, const OdRect& location);
174
184 void addButton(const OdButtonPtr& button, const OdRect& location);
185
195 void addTextField(const OdTextFieldPtr& text_field, const OdRect& location);
196
206 void addSlideTable(const OdSlideTablePtr& slide_table, const OdRect& location);
207
217 void addCheckBox(const OdCheckBoxPtr& check_box, const OdRect& location);
218
228 void addRadioButton(const OdRadioButtonPtr& radio_button, const OdRect& location);
229
239 void addListBox(const OdListBoxPtr& list_box, const OdRect& location);
240
250 void addDropDownList(const OdDropDownListPtr& drop_down_list, const OdRect& location);
251
261 void addSignatureField(const OdSignatureFieldPtr& signature_field, const OdRect& location);
262
269 void add2dGeometry(const Od2dGeometryReferencePtr& geom, const OdRect& location);
270
279 void add2dGeometry(const Od2dGeometryReferencePtr& geom);
280
290 void addCADReference(const OdCADReferencePtr& CADreferense, const OdRect& location);
291
303 void addCADReference(const OdCADReferencePtr& CADreferense);
304
318 void addStickyNote(const OdStickyNotePtr& note, const OdRect& location);
319
332 void addWatermark(const OdWatermarkPtr& watermark, const OdRect& location);
333
351 void addJavaScriptActionByField(const OdString& field_name, const OdString& source, const Action::Type action_type, const Source::Type source_type = Source::kCode);
352
363
373 void getOrientation(Page::Orientation& orientation) const;
374
386 void getPaperSize(const Page::PaperUnits units, double& width, double& height) const;
387
398 void getAnnotations(OdAnnotationPtrArray& annotations, OdRectArray& locations) const;
399
411 void getTexts(OdTextPtrArray& texts, OdRectArray& locations, OdDoubleArray& rotations) const;
412
424 void getImages(OdImagePtrArray& images, OdRectArray& locations, OdDoubleArray& rotations) const;
425
435 void getTables(OdTablePtrArray& tables, OdRectArray& locations) const;
436
447 void getLinks(OdLinkPtrArray& links, OdRectArray& locations) const;
448
459 void getButtons(OdButtonPtrArray& buttons, OdRectArray& locations) const;
460
471 void getCheckBoxes(OdCheckBoxPtrArray& check_boxes, OdRectArray& locations) const;
472
483 void getRadioButtons(OdRadioButtonPtrArray& radio_buttons, OdRectArray& locations) const;
484
495 void getListBoxes(OdListBoxPtrArray& list_boxes, OdRectArray& locations) const;
496
506 void getDropDownLists(OdDropDownListPtrArray& drop_down_lists, OdRectArray& locations) const;
507
518 void getSignatureFields(OdSignatureFieldPtrArray& signature_fields, OdRectArray& locations) const;
519
530 void getTextFields(OdTextFieldPtrArray& text_fields, OdRectArray& locations) const;
531
542 void getSlideTables(OdSlideTablePtrArray& slide_tables, OdRectArray& locations) const;
543
556 void getJavaScriptActionsByField(const OdString& field_name, OdStringArray& sources, OdActionTypeArray& action_types, OdSourceTypeArray& source_types) const;
557
565 void get2dGeoms(Od2dGeometryReferencePtrArray& geoms, OdRectArray& locations) const;
566
574 void getCADReferences(OdCADReferencePtrArray& CADreferenses, OdRectArray& locations) const;
575
583 void getStickyNotes(OdStickyNotePtrArray& notes, OdRectArray& locations) const;
584
595 void getWatermarks(OdWatermarkPtrArray& watermarks, OdRectArray& locations) const;
596};
597
602
603}
604#endif // _PDF_PUBLISH_PAGE_INCLUDED_
605
OdArray< OdDouble, OdMemoryAllocator< OdDouble > > OdDoubleArray
Definition DoubleArray.h:36
#define SMARTPTR(classname)
Definition IfcCommon.h:33
#define PDFPUBLISH_TOOLKIT
OdArray< OdString > OdStringArray
Definition StringArray.h:32
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 getTexts(OdTextPtrArray &texts, OdRectArray &locations, OdDoubleArray &rotations) const
void getTextFields(OdTextFieldPtrArray &text_fields, OdRectArray &locations) const
void getListBoxes(OdListBoxPtrArray &list_boxes, OdRectArray &locations) const
void addStickyNote(const OdStickyNotePtr &note, const OdRect &location)
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 getAnnotations(OdAnnotationPtrArray &annotations, OdRectArray &locations) const
void addText(const OdTextPtr &text, const OdRect &location, const double rotation=0.)
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 getDropDownLists(OdDropDownListPtrArray &drop_down_lists, OdRectArray &locations) const
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 getWatermarks(OdWatermarkPtrArray &watermarks, OdRectArray &locations) const
void getImages(OdImagePtrArray &images, OdRectArray &locations, OdDoubleArray &rotations) const
void getLinks(OdLinkPtrArray &links, OdRectArray &locations) const
void getStickyNotes(OdStickyNotePtrArray &notes, OdRectArray &locations) const
void addImage(const OdImagePtr &image, const OdRect &location, const double rotation=0.)
void addLink(const OdLinkPtr &link, const OdRect &location)
void addCADReference(const OdCADReferencePtr &CADreferense)
void getCADReferences(OdCADReferencePtrArray &CADreferenses, OdRectArray &locations) const
void addWatermark(const OdWatermarkPtr &watermark, const OdRect &location)
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
OdArray< Source::Type > OdSourceTypeArray
OdArray< OdRect > OdRectArray
OdArray< Action::Type > OdActionTypeArray