CFx SDK Documentation 2024 SP0
|
#include <PdfPublishCheckBox.h>
Protected Member Functions | |
OdCheckBox () | |
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 checkbox control encapsulated in a .pdf document created with Publish SDK. A checkbox control is used in a .pdf document to set any boolean parameters and can accept two values: true (the checkbox is switched on) and false (the checkbox is switched off).
Definition at line 47 of file PdfPublishCheckBox.h.
|
protected |
|
virtual |
Destroys a checkbox control.
void OdPdfPublish::OdCheckBox::getBorder | ( | bool & | state | ) | const |
Returns the current value of the flag that determines whether the checkbox has a border. If the flag value is equal to true, the checkbox has a border, otherwise it does not. The method fills a passed boolean value with the checkbox border flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
void OdPdfPublish::OdCheckBox::getBorderColor | ( | ODCOLORREF & | color | ) | const |
Returns the current checkbox border color. The method fills a passed ODCOLORREF value with the checkbox border color value and returns it to a calling subroutine.
color | [out] A placeholder for the color value. |
void OdPdfPublish::OdCheckBox::getBorderStyle | ( | Border::Style & | style | ) | const |
Returns the current checkbox border style. The method fills a passed value with current border style and returns it to a calling subroutine.
style | [out] A placeholder for the style value. |
void OdPdfPublish::OdCheckBox::getBorderThickness | ( | Border::Thickness & | thickness | ) | const |
Returns the current checkbox border thickness. The method fills a passed value with the current border thickness and returns it to a calling subroutine.
thickness | [out] A placeholder for the thickness value. |
void OdPdfPublish::OdCheckBox::getDefaultState | ( | bool & | default_state | ) | const |
Returns the current checkbox default state. If the default state is equal to true, the checkbox is switched on when it displays in a document, otherwise the checbox is switched off. The method fills a boolean object with the checkbox 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 checkbox. The method fills a passed string object with the checkbox export value and returns it to a calling subroutine.
export_value | [out] A placeholder for the export value. |
void OdPdfPublish::OdCheckBox::getFillColor | ( | ODCOLORREF & | color | ) | const |
Returns the current checkbox fill color. The method fills a passed ODCOLORREF value with the checkbox fill color value and returns it to a calling subroutine.
color | [out] A placeholder for the color value. |
void OdPdfPublish::OdCheckBox::getFont | ( | Text::StorageType & | storageType, |
Text::StandardFontsType & | fontType, | ||
OdString & | fontName, | ||
Text::FontStyle & | fontStyle | ||
) | const |
Returns the current font parameters used for displaying the checkbox caption. 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 that should be used for the checkbox. |
fontName | [out] A placeholder for the font name that should be used for the checkbox. |
fontStyle | [out] A placeholder for the font style that should be used for the checkbox. |
Returns the current font size used for displaying the checkbox caption. The method fills a passed integer value with the checkbox font size and returns it to a calling subroutine.
size | [out] A placeholder for the font size that should be used for the checkbox. |
void OdPdfPublish::OdCheckBox::getLock | ( | bool & | state | ) | const |
Returns the current value of the flag that determines whether the checkbox is locked. If the flag value is equal to true, the checkbox is locked and becomes disabled, otherwise it is enabled and unlocked. The method fills a passed boolean value with the checkbox lock flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
Returns the current name of the checkbox. The method fills a passed string object with the checkbox name and returns it to a calling subroutine.
name | [out] A placeholder for the checkbox name. |
void OdPdfPublish::OdCheckBox::getPrintability | ( | bool & | state | ) | const |
Returns the current value of the flag that determines whether the checkbox should be printed. If the checkbox 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 checkbox printability flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
void OdPdfPublish::OdCheckBox::getTextColor | ( | ODCOLORREF & | color | ) | const |
Returns the current text color used for displaying the checkbox caption. The method fills a passed ODCOLORREF value with the checkbox caption color and returns it to a calling subroutine.
color | [out] A placeholder for the text color that should be used for the checkbox caption. |
void OdPdfPublish::OdCheckBox::getTextRotation | ( | Text::Rotation & | rotation | ) | const |
Returns the current rotation for the checkbox text. The method fills a passed value with current rotation value and returns it to a calling subroutine.
rotation | [out] A placeholder for the rotation value. |
Returns the current tooltip text for the checkbox. Tooltip text is text that appears when a user hovers the mouse pointer over the checkbox.
The method fills a passed string object with the checkbox tooltip text and returns it to a calling subroutine.
tooltip | [out] A placeholder for the tooltip text. |
void OdPdfPublish::OdCheckBox::getVisibility | ( | bool & | state | ) | const |
Returns the current value of the visibility flag for the checkbox. The visibility flag determines whether the checkbox is visible in a document (if true) or is hidden (if false). The method fills a passed boolean value with the checkbox visibility flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
OdPdfPublish::OdCheckBox::ODRX_DECLARE_MEMBERS | ( | OdCheckBox | ) |
OdPdfPublish::OdCheckBox::ODRX_HEAP_OPERATORS | ( | ) |
void OdPdfPublish::OdCheckBox::setBorder | ( | bool | state | ) |
Sets a new value of the flag that determines whether the checkbox has a border. If the flag value is equal to true, the checkbox has a border, otherwise it does not.
state | [in] A new flag value. |
void OdPdfPublish::OdCheckBox::setBorderColor | ( | ODCOLORREF | color | ) |
Sets a checkbox border color.
color | [in] A new color value. |
void OdPdfPublish::OdCheckBox::setBorderStyle | ( | Border::Style | style | ) |
Sets a checkbox border style.
style | [in] A new border style value. |
void OdPdfPublish::OdCheckBox::setBorderThickness | ( | Border::Thickness | thickness | ) |
Sets a checkbox border thickness.
thickness | [in] A new thickness value. |
void OdPdfPublish::OdCheckBox::setDefaultState | ( | bool | state | ) |
Sets a checkbox default state. If the default state is equal to true, the checkbox is switched on when it is displayed in a document, otherwise the checbox is switched off.
state | [in] A new default state. |
Sets an export value for the checkbox.
export_value | [in] A new export value. |
void OdPdfPublish::OdCheckBox::setFillColor | ( | ODCOLORREF | color | ) |
Sets a checkbox fill color.
color | [in] A new color value. |
void OdPdfPublish::OdCheckBox::setFont | ( | const OdString & | fontName, |
Text::FontStyle | fontStyle = Text::kRegular |
||
) |
Sets the checkbox font name and style.
fontName | [in] A new font name. |
fontStyle | [in] A new font style. |
void OdPdfPublish::OdCheckBox::setFont | ( | Text::StandardFontsType | fontType | ) |
Sets the checkbox font type from the list of <link OdPdfPublish::Text::StandardFontsType, predefined fonts>.
fontType | [in] A new font type value. |
Sets a font size used for displaying the checkbox caption.
size | [in] A new value of the font size that should be used for the checkbox caption. |
void OdPdfPublish::OdCheckBox::setLock | ( | bool | state | ) |
Sets a new value of the flag that determines whether the checkbox is locked. If the flag value is equal to true, the checkbox is locked and becomes disabled, otherwise it is enabled and unlocked.
state | [in] A new flag value. |
Sets a name for the checkbox.
name | [in] A new value of the checkbox name. |
void OdPdfPublish::OdCheckBox::setPrintability | ( | bool | state | ) |
Sets a new value of the flag that determines whether the checkbox should be printed. If the checkbox should be printed, the flag value is equal to true, otherwise it is equal to false.
state | [in] A new flag value. |
void OdPdfPublish::OdCheckBox::setTextColor | ( | ODCOLORREF | color | ) |
Sets a text color used for displaying the checkbox caption.
color | [in] A new value of the text color that should be used for the checkbox caption. |
void OdPdfPublish::OdCheckBox::setTextRotation | ( | Text::Rotation | rotation | ) |
Sets a new rotation value for the checkbox text.
rotation | [in] A new rotation value. |
Sets tooltip text for the checkbox. Tooltip text is text that appears when a user hovers the mouse pointer over the checkbox.
tooltip | [in] A new value of the tooltip text. |
void OdPdfPublish::OdCheckBox::setVisibility | ( | bool | state | ) |
Sets a new value of the visibility flag for the checkbox. The visibility flag determines whether the checkbox is visible in a document (if true) or is hidden (if false).
state | [in] A new flag value. |