CFx SDK Documentation  2020SP3
PdfPublishButton.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 // PdfPublishButton.h
28 //
30 
31 #ifndef _PDF_PUBLISH_BUTTON_INCLUDED_
32 #define _PDF_PUBLISH_BUTTON_INCLUDED_
33 
34 #include "PdfPublishBaseObject.h"
35 #include "PdfPublishImage.h"
36 
40 namespace OdPdfPublish{
41 
48 {
49 public:
50  //DOM-IGNORE-BEGIN
53  //DOM-IGNORE-END
54 
59 
63  virtual ~OdButton();
64 
72  void setName(const OdString& name);
73 
79  void setLabel(const OdString& label);
80 
90  void setFont(const OdString& fontName, Text::FontStyle fontStyle = Text::kRegular);
91 
100  void setFont(const Text::StandardFontsType fontType);
101 
108 
115 
121  void setTooltip(const OdString& tooltip);
122 
128  void setVisibility(bool state);
129 
135  void setPrintability(bool state);
136 
146 
152  void setLock(bool state);
153 
159  void setBorder(bool state);
160 
167 
177 
186 
193 
203 
213 
222  void setIconImage(const OdImagePtr& image);
223 
230  void getName(OdString& name) const;
231 
238  void getLabel(OdString& label) const;
239 
250  void getFont(Text::StorageType& storageType, Text::StandardFontsType& fontType, OdString& fontName, Text::FontStyle& fontStyle) const;
251 
258  void getFontSize(OdUInt16 & size) const;
259 
266  void getTextColor(ODCOLORREF& color) const;
267 
274  void getTooltip(OdString& tooltip) const;
275 
283  void getVisibility(bool& state) const;
284 
292  void getPrintability(bool& state) const;
293 
303  void getTextRotation(Text::Rotation & rotation) const;
304 
312  void getLock(bool& state) const;
313 
321  void getBorder(bool& state) const;
322 
329  void getBorderColor(ODCOLORREF& color) const;
330 
340  void getBorderThickness(Border::Thickness & thickness) const;
341 
351  void getBorderStyle(Border::Style & style) const;
352 
359  void getFillColor(ODCOLORREF& color) const;
360 
370  void getLabelPosition(Label::Position & position) const;
371 
382 
392  void getIconImage(OdImagePtr& image) const;
393 
394 };
395 
400 
401 }
402 #endif // _PDF_PUBLISH_BUTTON_INCLUDED_
403 
OdPdfPublish::Highlighting::Mode
Mode
Definition: PdfPublishCommon.h:382
OdPdfPublish::OdButton::setFontSize
void setFontSize(OdUInt16 size)
OdString
Definition: OdString.h:95
OdPdfPublish::OdButton::~OdButton
virtual ~OdButton()
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdPdfPublish::OdButton::getVisibility
void getVisibility(bool &state) const
PdfPublishImage.h
OdPdfPublish::Label::Position
Position
Definition: PdfPublishCommon.h:361
OdPdfPublish::OdButton::getIconImage
void getIconImage(OdImagePtr &image) const
OdPdfPublish::Text::StorageType
StorageType
Definition: PdfPublishCommon.h:330
OdPdfPublish::OdButton::setFont
void setFont(const Text::StandardFontsType fontType)
OdPdfPublish::OdButton::OdButton
OdButton()
OdPdfPublish::Text::kRegular
@ kRegular
Definition: PdfPublishCommon.h:284
OdPdfPublish::OdButton::setVisibility
void setVisibility(bool state)
OdPdfPublish::OdButton::setBorderThickness
void setBorderThickness(Border::Thickness thickness)
OdPdfPublish::OdButton::getLabel
void getLabel(OdString &label) const
OdPdfPublish::OdButton::setPrintability
void setPrintability(bool state)
OdPdfPublish::OdButton::setLock
void setLock(bool state)
OdPdfPublish::OdButton::getLock
void getLock(bool &state) const
OdPdfPublish::Border::Thickness
Thickness
Definition: PdfPublishCommon.h:257
OdUInt16
unsigned short OdUInt16
Definition: OdPlatformSettings.h:760
OdPdfPublish::OdButton::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdButton)
OdPdfPublish::OdButton::getPrintability
void getPrintability(bool &state) const
OdPdfPublish::OdButton::setBorderColor
void setBorderColor(ODCOLORREF color)
size
GLsizeiptr size
Definition: gles2_ext.h:182
OdPdfPublish::OdButton::setFillColor
void setFillColor(ODCOLORREF color)
OdPdfPublish::OdButton::setBorderStyle
void setBorderStyle(Border::Style style)
OdPdfPublish::SMARTPTR
SMARTPTR(OdFile)
PDFPUBLISH_TOOLKIT
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
OdPdfPublish::OdButton::setTextRotation
void setTextRotation(Text::Rotation rotation)
OdPdfPublish::Border::Style
Style
Definition: PdfPublishCommon.h:266
OdPdfPublish::OdButton::setFont
void setFont(const OdString &fontName, Text::FontStyle fontStyle=Text::kRegular)
OdPdfPublish::OdButton::getBorderColor
void getBorderColor(ODCOLORREF &color) const
OdPdfPublish::OdButton::getFontSize
void getFontSize(OdUInt16 &size) const
OdPdfPublish::OdButton::getBorderThickness
void getBorderThickness(Border::Thickness &thickness) const
OdPdfPublish::OdButton::ODRX_HEAP_OPERATORS
ODRX_HEAP_OPERATORS()
OdPdfPublish::OdButton::setLabelPosition
void setLabelPosition(Label::Position position)
OdPdfPublish::OdButton::getTextColor
void getTextColor(ODCOLORREF &color) const
OdPdfPublish
Definition: PdfPublish.h:42
OdPdfPublish::Text::StandardFontsType
StandardFontsType
Definition: PdfPublishCommon.h:313
OdPdfPublish::OdButton::setName
void setName(const OdString &name)
OdPdfPublish::OdButton::setTextColor
void setTextColor(ODCOLORREF color)
OdPdfPublish::OdButton::setBorder
void setBorder(bool state)
OdPdfPublish::OdButton::getBorderStyle
void getBorderStyle(Border::Style &style) const
OdPdfPublish::OdButton::setLabel
void setLabel(const OdString &label)
OdPdfPublish::OdButton::getHighlighting
void getHighlighting(Highlighting::Mode &mode) const
PdfPublishBaseObject.h
OdPdfPublish::OdButton
Definition: PdfPublishButton.h:48
OdPdfPublish::OdButton::getLabelPosition
void getLabelPosition(Label::Position &position) const
OdPdfPublish::OdButton::getName
void getName(OdString &name) const
OdPdfPublish::OdButton::setIconImage
void setIconImage(const OdImagePtr &image)
OdPdfPublish::OdButton::getTooltip
void getTooltip(OdString &tooltip) const
OdPdfPublish::OdButton::getBorder
void getBorder(bool &state) const
OdPdfPublish::OdButton::getFillColor
void getFillColor(ODCOLORREF &color) const
OdPdfPublish::Text::FontStyle
FontStyle
Definition: PdfPublishCommon.h:283
ODCOLORREF
#define ODCOLORREF
Definition: OdPlatform.h:883
OdPdfPublish::OdButton::setHighlighting
void setHighlighting(Highlighting::Mode mode)
OdPdfPublish::OdButton::getTextRotation
void getTextRotation(Text::Rotation &rotation) const
OdPdfPublish::OdButton::getFont
void getFont(Text::StorageType &storageType, Text::StandardFontsType &fontType, OdString &fontName, Text::FontStyle &fontStyle) const
OdPdfPublish::OdButton::setTooltip
void setTooltip(const OdString &tooltip)
OdPdfPublish::Text::Rotation
Rotation
Definition: PdfPublishCommon.h:302
OdPdfPublish::OdObject
Definition: PdfPublishBaseObject.h:71