CFx SDK Documentation  2023 SP0
PdfPublishPage.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 // PdfPublishPage.h
28 //
30 
31 #ifndef _PDF_PUBLISH_PAGE_INCLUDED_
32 #define _PDF_PUBLISH_PAGE_INCLUDED_
33 
34 #include "PdfPublishBaseObject.h"
35 #include "PdfPublishAnnotation.h"
36 #include "PdfPublishText.h"
37 #include "PdfPublishImage.h"
38 #include "PdfPublishTextField.h"
40 #include "PdfPublishDropDownList.h"
41 #include "PdfPublishListBox.h"
42 #include "PdfPublishRadioButton.h"
43 #include "PdfPublishCheckBox.h"
44 #include "PdfPublishLink.h"
45 #include "PdfPublishSlideTable.h"
46 #include "PdfPublishButton.h"
47 #include "PdfPublishTable.h"
48 #include "PdfPublishTableCreator.h"
50 
54 namespace OdPdfPublish{
55 
64 {
65 public:
66  //DOM-IGNORE-BEGIN
69  //DOM-IGNORE-END
70 
74  OdPage();
75 
79  virtual ~OdPage();
80 
90 
99  void setOrientation(Page::Orientation orientation);
100 
101  void setPaperSize(const Page::PaperUnits units, const double width, const double height);
102 
112  void addAnnotation(const OdAnnotationPtr& annotation, const OdRect& location);
113 
123  void addText(const OdTextPtr& text, const OdRect& location);
124 
134  void addImage(const OdImagePtr& image, const OdRect& location);
135 
145  void addTable(const OdTablePtr& table, const OdRect& location);
146 
156  void addLink(const OdLinkPtr& link, const OdRect& location);
157 
167  void addButton(const OdButtonPtr& button, const OdRect& location);
168 
178  void addTextField(const OdTextFieldPtr& text_field, const OdRect& location);
179 
189  void addSlideTable(const OdSlideTablePtr& slide_table, const OdRect& location);
190 
200  void addCheckBox(const OdCheckBoxPtr& check_box, const OdRect& location);
201 
211  void addRadioButton(const OdRadioButtonPtr& radio_button, const OdRect& location);
212 
222  void addListBox(const OdListBoxPtr& list_box, const OdRect& location);
223 
233  void addDropDownList(const OdDropDownListPtr& drop_down_list, const OdRect& location);
234 
244  void addSignatureField(const OdSignatureFieldPtr& signature_field, const OdRect& location);
245 
246  void add2dGeometry(const Od2dGeometryReferencePtr& geom, const OdRect& location);
247  void add2dGeometry(const Od2dGeometryReferencePtr& geom);
248 
249  void addJavaScriptActionByField(const OdString& field_name, const OdString& source, const Action::Type action_type);
250 
260 
269  void getOrientation(Page::Orientation& orientation) const;
270 
271  void getPaperSize(const Page::PaperUnits units, double& width, double& height) const;
272 
283  void getAnnotations(OdAnnotationPtrArray& annotations, OdRectArray& locations) const;
284 
295  void getTexts(OdTextPtrArray& texts, OdRectArray& locations) const;
296 
307  void getImages(OdImagePtrArray& images, OdRectArray& locations) const;
308 
318  void getTables(OdTablePtrArray& tables, OdRectArray& locations) const;
319 
330  void getLinks(OdLinkPtrArray& links, OdRectArray& locations) const;
331 
342  void getButtons(OdButtonPtrArray& buttons, OdRectArray& locations) const;
343 
354  void getCheckBoxes(OdCheckBoxPtrArray& check_boxes, OdRectArray& locations) const;
355 
366  void getRadioButtons(OdRadioButtonPtrArray& radio_buttons, OdRectArray& locations) const;
367 
378  void getListBoxes(OdListBoxPtrArray& list_boxes, OdRectArray& locations) const;
379 
389  void getDropDownLists(OdDropDownListPtrArray& drop_down_lists, OdRectArray& locations) const;
390 
401  void getSignatureFields(OdSignatureFieldPtrArray& signature_fields, OdRectArray& locations) const;
402 
413  void getTextFields(OdTextFieldPtrArray& text_fields, OdRectArray& locations) const;
414 
425  void getSlideTables(OdSlideTablePtrArray& slide_tables, OdRectArray& locations) const;
426 
427  void getJavaScriptActionsByField(const OdString& field_name, OdStringArray& sources, OdActionTypeArray& action_types) const;
428 
429  void get2dGeoms(Od2dGeometryReferencePtrArray& geoms, OdRectArray& locations) const;
430 
431 };
432 
437 
438 }
439 #endif // _PDF_PUBLISH_PAGE_INCLUDED_
440 
#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 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 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 addJavaScriptActionByField(const OdString &field_name, const OdString &source, const Action::Type action_type)
void getImages(OdImagePtrArray &images, OdRectArray &locations) const
void getAnnotations(OdAnnotationPtrArray &annotations, OdRectArray &locations) const
void getJavaScriptActionsByField(const OdString &field_name, OdStringArray &sources, OdActionTypeArray &action_types) 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 get2dGeoms(Od2dGeometryReferencePtrArray &geoms, OdRectArray &locations) const
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
SMARTPTR(OdFile)