CFx SDK Documentation 2024 SP0
|
#include <PdfPublishButton.h>
Protected Member Functions | |
OdButton () | |
Protected Member Functions inherited from OdPdfPublish::OdObject | |
OdObject (OdPublishObjectImpl *pImpl) | |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class implements a button control encapsulated in a .pdf document created with Publish SDK. A button control is used in a .pdf document to implement a reaction to user actions (such as different kinds of mouse clicks). The button control appearance (how a button looks in a document) is defined by a set of special properties (for example, font, color, text and so on).
Definition at line 48 of file PdfPublishButton.h.
|
protected |
|
virtual |
Destroys a button object.
void OdPdfPublish::OdButton::getBorder | ( | bool & | state | ) | const |
Returns whether the button has a border. The method fills a passed boolean value and returns it to a calling subroutine. If the button has a 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 the 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 the 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 fill color. The method fills a passed ODCOLORREF value and returns it to a calling subroutine.
color | [out] A placeholder for the fill color value. |
void OdPdfPublish::OdButton::getFont | ( | Text::StorageType & | storageType, |
Text::StandardFontsType & | fontType, | ||
OdString & | fontName, | ||
Text::FontStyle & | fontStyle | ||
) | const |
Returns the current button font parameters. The method fills passed values and returns them to a calling subroutine.
storageType | [out] A placeholder for the storage type. |
fontType | [out] A placeholder for the font type. |
fontName | [out] A placeholder for the font name. |
fontStyle | [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 the 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 the 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 the 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 the 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 the 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 the current button text rotation. The method fills a passed value with the 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 the 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 true) or not (if 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 fill color. |
void OdPdfPublish::OdButton::setFont | ( | const OdString & | fontName, |
Text::FontStyle | fontStyle = Text::kRegular |
||
) |
Sets the button font name and style.
fontName | [in] A new font name. |
fontStyle | [in] A new font style. |
void OdPdfPublish::OdButton::setFont | ( | const Text::StandardFontsType | fontType | ) |
Sets the button font type from the list of <link OdPdfPublish::Text::StandardFontsType, predefined fonts>.
fontType | [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 the 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 for 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 true) or is unlocked (if 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 true) or not (if false). |
void OdPdfPublish::OdButton::setTextColor | ( | ODCOLORREF | color | ) |
Sets the button text color. The text color is applied to the 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 text that appears when a user hovers the pointer over the button.
tooltip | [in] New text for 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 true) or not (if false). |