CFx SDK Documentation 2024 SP0
|
#include <PdfPublishRadioButton.h>
Protected Member Functions | |
OdRadioButton () | |
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 radio button control contained in a .pdf document created with Publish SDK. A radio button represent a dependent option to be selected. An option is called dependent when several options are joined into a group and only one option from the group can be selected. Then the other options become unselected.
Definition at line 48 of file PdfPublishRadioButton.h.
|
protected |
|
virtual |
Destroys the radio button.
void OdPdfPublish::OdRadioButton::getBorder | ( | bool & | state | ) | const |
Returns the 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 does 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 the 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 the current radio button border style. The method fills a passed value with the 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 the current radio button border thickness. The method fills a passed value with the 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 the current radio button default state. If the default state is equal to true, the radio button is switched on when it is displayed in a document, otherwise the radio button is switched off. The method fills a boolean object with the radio button default state value and returns it to a calling subroutine.
default_state | [out] A placeholder for the default state value. |
Returns the current export value for the radio button. The method fills a passed string object 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 the current radio button fill color. The method fills a passed ODCOLORREF value with the radio button fill 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 parameters used for displaying the radio button caption. The method fills passed values and returns them to a calling subroutine.
storageType | [out] A placeholder for the storage type value. |
fontType | [out] A placeholder for the font type that should be used for displaying the radio button caption. |
fontName | [out] A placeholder for the font name that should be used for displaying the radio button caption. |
fontStyle | [out] A placeholder for the font style that should be used for displaying the radio button caption. |
Returns the current font size used for displaying the radio button caption. The method fills a passed integer value with the radio button caption 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 caption. |
void OdPdfPublish::OdRadioButton::getGrouping | ( | bool & | grouping | ) | const |
Returns the current value of the group 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 a group, otherwise it is a standalone radio button. The method fills a passed boolean value with the current flag value and returns it to a calling subroutine.
grouping | [out] A new flag value. |
void OdPdfPublish::OdRadioButton::getLock | ( | bool & | state | ) | const |
Returns the 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 is 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 the current name of the radio button. The method fills a passed string object with the radio button name and returns it to a calling subroutine.
name | [out] A placeholder for the radio button name. |
void OdPdfPublish::OdRadioButton::getPrintability | ( | bool & | state | ) | const |
Returns the 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 the current text color used for displaying the 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 the current value of the radio text rotation. The method fills a passed value with the current text rotation value and returns it to a calling subroutine.
rotation | [out] A placeholder for the text rotation value. |
Returns the current tooltip text for the radio button. Tooltip text is 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.
tooltip | [out] A placeholder for the tooltip text. |
void OdPdfPublish::OdRadioButton::getVisibility | ( | bool & | state | ) | const |
Returns the current value of the visibility flag for the radio button. The visibility flag determines whether the radio button is visible in a 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 for 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 does 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 the default state is equal to true, the radio button is switched on when it is 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 fill color.
color | [in] A new color value. |
void OdPdfPublish::OdRadioButton::setFont | ( | const OdString & | fontName, |
Text::FontStyle | fontStyle = Text::kRegular |
||
) |
Sets the radio button font name and style.
fontName | [in] A new font name. |
fontStyle | [in] A new font style. |
void OdPdfPublish::OdRadioButton::setFont | ( | Text::StandardFontsType | fontType | ) |
Sets the radio button font type from the list of <link OdPdfPublish::Text::StandardFontsType, predefined fonts>.
fontType | [in] A new font type value. |
Sets a font size for the radio button.
size | [in] A new font size value of the radio button. |
void OdPdfPublish::OdRadioButton::setGrouping | ( | bool | state | ) |
Sets a new value for 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 a group, otherwise it is a standalone radio button.
state | [in] A new flag value. |
void OdPdfPublish::OdRadioButton::setLock | ( | bool | state | ) |
Sets a new value for 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 is 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 for 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 for the radio button.
color | [in] A new color value. |
void OdPdfPublish::OdRadioButton::setTextRotation | ( | Text::Rotation | rotation | ) |
Sets a new value for the radio button text rotation.
rotation | [in] A new text rotation value. |
Sets tooltip text for the radio button. Tooltip text is text that appears when a user hovers the mouse pointer over the radio button.
tooltip | [in] A new value of the tooltip text. |
void OdPdfPublish::OdRadioButton::setVisibility | ( | bool | state | ) |
Sets a new value for the visibility flag for the radio button. The visibility flag determines whether the radio button is visible in a document (if true) or is hidden (if false).
state | [in] A new flag value. |