CFx SDK Documentation
2023 SP0
|
#include <PdfPublishButton.h>
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions inherited from OdPdfPublish::OdObject | |
OdObject (OdPublishObjectImpl *pImpl) | |
This class implements a button control encapsulated in a .pdf document created with Teigha Publish. Button control is used in a .pdf document to implement reaction on a user actions (such as different kinds of mouse clicks). A button control appearance (in other words, how a button looks in a document) is defined with a set of special properties (for example, font, color, text and so on).
Definition at line 47 of file PdfPublishButton.h.
OdPdfPublish::OdButton::OdButton | ( | ) |
Creates a button object.
|
virtual |
Destroys a button object.
void OdPdfPublish::OdButton::getBorder | ( | bool & | state | ) | const |
Returns whether the button has border. The method fills a passed boolean value and returns it to a calling subroutine. If the button has border, the method returns true, otherwise it returns false.
state | [out] A placeholder for the border flag value. |
void OdPdfPublish::OdButton::getBorderColor | ( | ODCOLORREF & | color | ) | const |
Returns the button border color. The method fills a passed ODCOLORREF value and returns it to a calling subroutine.
color | [out] A placeholder for the border color value. |
void OdPdfPublish::OdButton::getBorderStyle | ( | Border::Style & | style | ) | const |
Returns the button border style. The method fills a passed value with current style and returns it to a calling subroutine.
style | [out] A placeholder for the border style. |
void OdPdfPublish::OdButton::getBorderThickness | ( | Border::Thickness & | thickness | ) | const |
Returns the button border thickness. The method fills a passed value with current thickness value and returns it to a calling subroutine.
thickness | [out] A placeholder for the border thickness value. |
void OdPdfPublish::OdButton::getFillColor | ( | ODCOLORREF & | color | ) | const |
Returns the button filling color. The method fills a passed ODCOLORREF value and returns it to a calling subroutine.
color | [out] A placeholder for the filling color value. |
void OdPdfPublish::OdButton::getFont | ( | Text::StorageType & | storageType, |
Text::StandardFontsType & | fontType, | ||
OdString & | fontName, | ||
Text::FontStyle & | fontStyle | ||
) | const |
Returns current button font name and style. The method fills passed string object and Text::FontStyle value with font text name and font style, then returns them to a calling subroutine.
font_name | [out] A placeholder for the font name. |
style | [out] A placeholder for the font style. |
Returns the button font size. The method fills a passed value and returns it to a calling subroutine.
size | [out] A placeholder for the font size value. |
void OdPdfPublish::OdButton::getHighlighting | ( | Highlighting::Mode & | mode | ) | const |
Returns current button highlighting mode. The method fills a passed value and returns it to a calling subroutine.
mode | [out] A placeholder for the button hightlighting mode. |
void OdPdfPublish::OdButton::getIconImage | ( | OdImagePtr & | image | ) | const |
Returns the button icon <link OdPdfPublish::OdImage, image>. The method fills a passed OdImage object and returns it to a calling subroutine.
image | [out] A placeholder for the icon image. |
Returns the button label text. The method fills a passed string object with label text and returns this string to a calling subroutine.
label | [out] A placeholder for the button label text. |
void OdPdfPublish::OdButton::getLabelPosition | ( | Label::Position & | position | ) | const |
Returns current button label position. The method fills a passed value and returns it to a calling subroutine.
position | [out] A placeholder for the button label position value. |
void OdPdfPublish::OdButton::getLock | ( | bool & | state | ) | const |
Returns whether the button is locked. The method fills a passed boolean value and returns it to a calling subroutine. If the button is locked, the method returns true, otherwise it returns false.
state | [out] A placeholder for the lock state value. |
Returns the button name. The method fills a passed string object with name value and returns this string to a calling subroutine.
name | [out] A placeholder for the button name. |
void OdPdfPublish::OdButton::getPrintability | ( | bool & | state | ) | const |
Returns current flag value that defines whether the button should be printed. The method fills a passed boolean value and returns it to a calling subroutine. If the button should be printed, the method returns true, otherwise it returns false.
state | [out] A placeholder for the print flag value. |
void OdPdfPublish::OdButton::getTextColor | ( | ODCOLORREF & | color | ) | const |
Returns the button text color. The method fills a passed ODCOLORREF value and returns it to a calling subroutine.
color | [out] A placeholder for the text color value. |
void OdPdfPublish::OdButton::getTextRotation | ( | Text::Rotation & | rotation | ) | const |
Returns current button text rotation. The method fills a passed value with current rotation and returns it to a calling subroutine.
rotation | [out] A placeholder for the button text rotation value. |
Returns the button tooltip text. The method fills a passed string object and returns it to a calling subroutine.
tooltip | [out] A placeholder for the tooltip text. |
void OdPdfPublish::OdButton::getVisibility | ( | bool & | state | ) | const |
Returns current button visibility state. The method fills a passed boolean value and returns it to a calling subroutine. If the button is visible, the method returns true, otherwise it returns false.
state | [out] A placeholder for the visibility state. |
OdPdfPublish::OdButton::ODRX_DECLARE_MEMBERS | ( | OdButton | ) |
OdPdfPublish::OdButton::ODRX_HEAP_OPERATORS | ( | ) |
void OdPdfPublish::OdButton::setBorder | ( | bool | state | ) |
Shows or hides a border around the button.
state | [in] A flag value that determines whether the button has a border (if is true) or has not (if is false). |
void OdPdfPublish::OdButton::setBorderColor | ( | ODCOLORREF | color | ) |
Sets the button border color.
color | [in] A new value of the border color. |
void OdPdfPublish::OdButton::setBorderStyle | ( | Border::Style | style | ) |
Sets the button border style.
style | [in] A new border style. |
void OdPdfPublish::OdButton::setBorderThickness | ( | Border::Thickness | thickness | ) |
Sets the button border thickness.
thickness | [in] A new value of the border thickness. |
void OdPdfPublish::OdButton::setFillColor | ( | ODCOLORREF | color | ) |
Sets a color that is used for filling the button.
color | [in] A new value of the filling color. |
void OdPdfPublish::OdButton::setFont | ( | const OdString & | fontName, |
Text::FontStyle | fontStyle = Text::kRegular |
||
) |
Sets the button font name and style.
name | [in] A new font name. |
font_style | [in] A new font style. |
void OdPdfPublish::OdButton::setFont | ( | const Text::StandardFontsType | fontType | ) |
Sets the button font type.
font_type | [in] A new font type value. |
Sets the button font size.
size | [in] A new font size value. |
void OdPdfPublish::OdButton::setHighlighting | ( | Highlighting::Mode | mode | ) |
Sets the button highlighting mode.
mode | [in] A new value of the highlighting mode. |
void OdPdfPublish::OdButton::setIconImage | ( | const OdImagePtr & | image | ) |
Sets the button icon <link OdPdfPublish::OdImage, image>.
image | [in] A smart pointer to an image object to be used as button icon. |
Sets the button label text.
label | [in] A new value of the label text. |
void OdPdfPublish::OdButton::setLabelPosition | ( | Label::Position | position | ) |
Sets a position of the button label.
position | [in] A new value of the label position. |
void OdPdfPublish::OdButton::setLock | ( | bool | state | ) |
Locks or unlocks the button.
state | [in] A flag value that determines whether the button is locked (if is true) or is unlocked (if is false). |
Sets the button name.
name | [in] A new value of the button name. |
void OdPdfPublish::OdButton::setPrintability | ( | bool | state | ) |
Sets the button behavior when a document is printed.
state | [in] A flag value that determines whether the button should be printed (if is true) or not (if is false). |
void OdPdfPublish::OdButton::setTextColor | ( | ODCOLORREF | color | ) |
Sets the button text color. Text color is applied for button label.
color | [in] A new text color value. |
void OdPdfPublish::OdButton::setTextRotation | ( | Text::Rotation | rotation | ) |
Sets the button text rotation.
rotation | [in] A new text rotation value. |
Sets the button tooltip text. Tooltip text is a text that appears when user hovers over the button.
tooltip | [in] A new text of the tooltip. |
void OdPdfPublish::OdButton::setVisibility | ( | bool | state | ) |
Sets the button visibility.
state | [in] A flag value that determines whether the button is visible (if is true) or not (if is false). |