CFx SDK Documentation
2020SP3
|
#include <PdfPublishRadioButton.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 radio button control contained in a .pdf document created with Teigha Publish. A radio button represent a dependent option to be selected. Option is called dependent because if several options are joined into a group, only one option from the group can be selected. Other options become unselected.
Definition at line 47 of file PdfPublishRadioButton.h.
OdPdfPublish::OdRadioButton::OdRadioButton | ( | ) |
Creates a radio button.
|
virtual |
Destroys the radio button.
void OdPdfPublish::OdRadioButton::getBorder | ( | bool & | state | ) | const |
Returns current value of the flag that determines whether the radio button has a border. If the flag value is equal to true, the radio button has a border, otherwise it has not. The method fills a passed boolean value with the radio button border flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
void OdPdfPublish::OdRadioButton::getBorderColor | ( | ODCOLORREF & | color | ) | const |
Returns current radio button border color. The method fills a passed ODCOLORREF value with the radio button border color value and returns it to a calling subroutine.
color | [out] A placeholder for the color value. |
void OdPdfPublish::OdRadioButton::getBorderStyle | ( | Border::Style & | style | ) | const |
Returns current radio button border style. The method fills a passed value with current radio button border style and returns it to a calling subroutine.
style | [out] A placeholder for the border style. |
void OdPdfPublish::OdRadioButton::getBorderThickness | ( | Border::Thickness & | thickness | ) | const |
Returns current radio button border thickness. The method fills a passed value with current radio button border thickness and returns it to a calling subroutine.
thickness | [out] A placeholder for the border thickness. |
void OdPdfPublish::OdRadioButton::getDefaultState | ( | bool & | default_state | ) | const |
Returns current radio button default state. If default state is equal to true, the radio button is switched on when it displayed in a document, otherwise the radio button is switched off. The method fills a boolean object with with the radio button default state value and returns it to a calling subroutine.
state | [out] A placeholder for the default state value. |
Returns current export value for the radio button. The method fills a passed string object with with the radio button export value and returns it to a calling subroutine.
export_value | [out] A placeholder for the export value. |
void OdPdfPublish::OdRadioButton::getFillColor | ( | ODCOLORREF & | color | ) | const |
Returns current radio button filling color. The method fills a passed ODCOLORREF value with the radio button filling color value and returns it to a calling subroutine.
color | [out] A placeholder for the color value. |
void OdPdfPublish::OdRadioButton::getFont | ( | Text::StorageType & | storageType, |
Text::StandardFontsType & | fontType, | ||
OdString & | fontName, | ||
Text::FontStyle & | fontStyle | ||
) | const |
Returns current font name and style used for displaying radio button caption. The method fills a passed string object and Text::FontStyle value with current font name and style, then returns them to a calling subroutine.
font_name | [out] A placeholder for the font name of the radio button. |
style | [out] A placeholder for the font style of the radio button. |
Returns current font size used for displaying radio button caption. The method fills a passed integer value with the radio button font size and returns it to a calling subroutine.
size | [out] A placeholder for the font size that should be used for the radio button. |
void OdPdfPublish::OdRadioButton::getGrouping | ( | bool & | grouping | ) | const |
Returns current value of the grouping flag that determines whether the radio button is included in a group of radio buttons. If the flag value is equal to true, the radio button is in group, otherwise it is a stand alone radio button. The method fills a passed boolean value with current flag value and returns it to a calling subroutine.
grouping | [out] A new flag value. |
void OdPdfPublish::OdRadioButton::getLock | ( | bool & | state | ) | const |
Returns current value of the flag that determines whether the radio button is locked. If the flag value is equal to true, the radio button is locked and becomes disabled otherwise it enabled and unlocked. The method fills a passed boolean value with the radio button lock flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
Returns current name of the radio button. The method fills a passed string object with radio button name and returns it to a calling subroutine.
name | [out] A placeholder for the the radio button name. |
void OdPdfPublish::OdRadioButton::getPrintability | ( | bool & | state | ) | const |
Returns current value of the flag that determines whether the radio button should be printed. If the radio button should be printed, the flag value is equal to true, otherwise it is equal to false. The method fills a passed boolean value with the radio button printability flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
void OdPdfPublish::OdRadioButton::getTextColor | ( | ODCOLORREF & | color | ) | const |
Returns current text color used for displaying radio button caption. The method fills a passed ODCOLORREF value with the radio button caption color and returns it to a calling subroutine.
color | [out] A placeholder for the text color that should be used for the radio button caption. |
void OdPdfPublish::OdRadioButton::getTextRotation | ( | Text::Rotation & | rotation | ) | const |
Returns current value of the radio text rotation. The method fills a passed value with current text rotation value and returns it to a calling subroutine.
rotation | [out] A placeholder for the text rotation value. |
Returns current tooltip text for the radio button. Tooltip text is a text that appears when a user hovers the mouse pointer over the radio button.
The method fills a passed string object with the radio button tooltip text and returns it to a calling subroutine.
tooptip | [out] A placeholder for the tooltip text. |
void OdPdfPublish::OdRadioButton::getVisibility | ( | bool & | state | ) | const |
Returns current value of the visibility flag for the radio button. Visibility flag determines whether the radio button is visible in document (if true) or is hidden (if false). The method fills a passed boolean value with the radio button visibility flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
OdPdfPublish::OdRadioButton::ODRX_DECLARE_MEMBERS | ( | OdRadioButton | ) |
OdPdfPublish::OdRadioButton::ODRX_HEAP_OPERATORS | ( | ) |
void OdPdfPublish::OdRadioButton::setBorder | ( | bool | state | ) |
Sets a new value of the flag that determines whether the radio button has a border. If the flag value is equal to true, the radio button has a border, otherwise it has not.
state | [in] A new flag value. |
void OdPdfPublish::OdRadioButton::setBorderColor | ( | ODCOLORREF | color | ) |
Sets the radio button border color.
color | [in] A new color value. |
void OdPdfPublish::OdRadioButton::setBorderStyle | ( | Border::Style | style | ) |
Sets the radio button border style.
style | [in] A new border style. |
void OdPdfPublish::OdRadioButton::setBorderThickness | ( | Border::Thickness | thickness | ) |
Sets the radio button border thickness.
thickness | [in] A new border thickness value. |
void OdPdfPublish::OdRadioButton::setDefaultState | ( | bool | state | ) |
Sets the radio button default state. If default state is equal to true, the radio button is switched on when it displayed in a document, otherwise the radio button is switched off.
state | [in] A new default state. |
Sets an export value for the radio button.
export_value | [in] A new export value. |
void OdPdfPublish::OdRadioButton::setFillColor | ( | ODCOLORREF | color | ) |
Sets the radio button filling color.
color | [in] A new color value. |
void OdPdfPublish::OdRadioButton::setFont | ( | const OdString & | fontName, |
Text::FontStyle | fontStyle = Text::kRegular |
||
) |
Sets font name and type of the radio button.
name | [in] A new font name of the radio button. |
style | [in] A new font type of the radio button. |
void OdPdfPublish::OdRadioButton::setFont | ( | Text::StandardFontsType | fontType | ) |
Sets a font size of the radio button.
size | [in] A new font size value of the radio button. |
void OdPdfPublish::OdRadioButton::setGrouping | ( | bool | state | ) |
Sets a new value of the flag that determines whether the radio button is included in a group of radio buttons. If the flag value is equal to true, the radio button is in group, otherwise it is a stand alone radio button.
state | [in] A new flag value. |
void OdPdfPublish::OdRadioButton::setLock | ( | bool | state | ) |
Sets a new value of the flag that determines whether the radio button is locked. If the flag value is equal to true, the radio button is locked and becomes disabled otherwise it enabled and unlocked.
state | [in] A new flag value. |
Sets the radio button name.
name | [in] A new radio button name. |
void OdPdfPublish::OdRadioButton::setPrintability | ( | bool | state | ) |
Sets a new value of the flag that determines whether the radio button should be printed. If the radio button should be printed, the flag value is equal to true, otherwise it is equal to false.
state | [in] A new flag value. |
void OdPdfPublish::OdRadioButton::setTextColor | ( | ODCOLORREF | color | ) |
Sets a text color of the radio button.
color | [in] A new color value. |
void OdPdfPublish::OdRadioButton::setTextRotation | ( | Text::Rotation | rotation | ) |
Sets a new value of the radio button text rotation.
rotation | [in] A new text rotation value. |
Sets a tooltip text for the radio button. Tooltip text is a text that appears when a user hovers the mouse pointer over the radio button.
tooptip | [in] A new value of the tooltip text. |
void OdPdfPublish::OdRadioButton::setVisibility | ( | bool | state | ) |
Sets a new value of the visibility flag for the radio button. Visibility flag determines whether the radio button is visible in document (if true) or is hidden (if false).
state | [in] A new flag value. |