CFx SDK Documentation
2023 SP0
|
#include <PdfPublishTextField.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 text field control contained in a .pdf document created with Teigha Publish. A text field allows to enter text information with a specified format options.
Definition at line 45 of file PdfPublishTextField.h.
OdPdfPublish::OdTextField::OdTextField | ( | ) |
Creates a text field.
|
virtual |
Destroys the text field.
void OdPdfPublish::OdTextField::getBorder | ( | bool & | state | ) | const |
Returns current value of the flag that determines whether the text field has a border. If the flag value is equal to true, the text field has a border, otherwise it has not. The method fills a passed boolean value with the text field border flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
void OdPdfPublish::OdTextField::getBorderColor | ( | ODCOLORREF & | color | ) | const |
Returns current text field border color. The method fills a passed ODCOLORREF value with the text field border color value and returns it to a calling subroutine.
color | [out] A placeholder for the color value. |
void OdPdfPublish::OdTextField::getBorderStyle | ( | Border::Style & | style | ) | const |
Returns current text field border style.
style | [out] A placeholder for the border style of the text field. |
void OdPdfPublish::OdTextField::getBorderThickness | ( | Border::Thickness & | thickness | ) | const |
Returns current thickness value of the text field border. This method fills a passed value with current thickness value and returns it to a calling subroutine.
thickness | [out] A placeholder for the thickness value. |
Returns current text field default value. The method fills a passed string object with current text field default value and returns it to a calling subroutine.
value | [out] A placeholder for the text field default value. |
void OdPdfPublish::OdTextField::getFillColor | ( | ODCOLORREF & | color | ) | const |
Returns the text field 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::OdTextField::getFont | ( | Text::StorageType & | storageType, |
Text::StandardFontsType & | fontType, | ||
OdString & | fontName, | ||
Text::FontStyle & | fontStyle | ||
) | const |
Returns current font size used for displaying text field caption. The method fills a passed integer value with the text field font size and returns it to a calling subroutine.
size | [out] A placeholder for the font size that should be used for the text field. |
void OdPdfPublish::OdTextField::getLock | ( | bool & | state | ) | const |
Returns current value of the flag that determines whether the text field is locked. If the flag value is equal to true, the text field is locked and becomes disabled otherwise it enabled and unlocked. The method fills a passed boolean value with the text field lock flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
void OdPdfPublish::OdTextField::getMultiline | ( | bool & | state | ) | const |
Returns current multi line flag value of the text value. This flag determines whether the text field content can be divided into several lines. If the flag is equal to true, the text field can contain several lines, otherwise text field content is encapsulated into single line. The method fills a passed boolean value with current flag value and returns it to a calling subroutine.
state | [out] A placeholder for the multi line flag value. |
Returns current name of the text field. The method fills a passed string object with text field name and returns it to a calling subroutine.
name | [out] A placeholder for the the text field name. |
void OdPdfPublish::OdTextField::getPrintability | ( | bool & | state | ) | const |
Returns current value of the flag that determines whether the text field should be printed. If the text field 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 text field printability flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
void OdPdfPublish::OdTextField::getReadOnly | ( | bool & | state | ) | const |
Returns current read only flag value of the text field. The read only flag determines whether text field content can be edited (if its value is true) or not (if its value is false). The method fills a passed boolean value with the current flag value and returns it to a calling subroutine.
state | [out] A placeholder for the scrolling flag value. |
void OdPdfPublish::OdTextField::getScrolling | ( | bool & | state | ) | const |
Returns current text field scrolling flag value. If the flag is equal to true, the text field has scroll control that can be used to scroll multi line text in it. Otherwise the text field does not contain scroll control. The method fills a passed boolean value with the current flag value and returns it to a calling subroutine.
state | [out] A placeholder for the scrolling flag value. |
void OdPdfPublish::OdTextField::getTextColor | ( | ODCOLORREF & | color | ) | const |
Returns current text color used for displaying text field caption. The method fills a passed ODCOLORREF value with the text field caption color and returns it to a calling subroutine.
color | [out] A placeholder for the text color that should be used for the text field caption. |
void OdPdfPublish::OdTextField::getTextJustification | ( | Text::Justification & | justification | ) | const |
Returns current text field justification. The method fills a passed justification value and returns it to a calling subroutine.
justification | [out] A placeholder for the justification value. |
void OdPdfPublish::OdTextField::getTextRotation | ( | Text::Rotation & | rotation | ) | const |
Returns current text field rotation value. The method fills a passed value with the current rotation value and returns it to a calling subroutine.
rotation | [out] A placeholder for the rotation value of the text field. |
Returns current tooltip text for the text field. Tooltip text is a text that appears when a user hovers the mouse pointer over the text field.
The method fills a passed string object with the text field tooltip text and returns it to a calling subroutine.
tooptip | [out] A placeholder for the tooltip text. |
void OdPdfPublish::OdTextField::getVisibility | ( | bool & | state | ) | const |
Returns current value of the visibility flag for the text field. Visibility flag determines whether the text field is visible in document (if true) or is hidden (if false). The method fills a passed boolean value with the text field visibility flag value and returns it to a calling subroutine.
state | [out] A placeholder for the flag value. |
OdPdfPublish::OdTextField::ODRX_DECLARE_MEMBERS | ( | OdTextField | ) |
OdPdfPublish::OdTextField::ODRX_HEAP_OPERATORS | ( | ) |
void OdPdfPublish::OdTextField::setBorder | ( | bool | state | ) |
Sets a new value of the flag that determines whether the text field has a border. If the flag value is equal to true, the text field has a border, otherwise it has not.
state | [in] A new flag value. |
void OdPdfPublish::OdTextField::setBorderColor | ( | ODCOLORREF | color | ) |
Sets a text field border color.
color | [in] A new color value. |
void OdPdfPublish::OdTextField::setBorderStyle | ( | Border::Style | style | ) |
Sets a text field border style.
style | [in] A new border style. |
void OdPdfPublish::OdTextField::setBorderThickness | ( | Border::Thickness | thickness | ) |
Sets a text field border thickness.
thickness | [in] A new thickness value. |
Sets a text field default value.
value | [in] A new default value. |
void OdPdfPublish::OdTextField::setFillColor | ( | ODCOLORREF | color | ) |
Sets a text field filling color.
color | [in] A new color value. |
void OdPdfPublish::OdTextField::setFont | ( | const OdString & | fontName, |
Text::FontStyle | fontStyle = Text::kRegular |
||
) |
void OdPdfPublish::OdTextField::setFont | ( | Text::StandardFontsType | fontType | ) |
Sets a font type name of the text field.
font_type | [in] A new font type name of the text field. |
Sets a font size of the text field.
size | [in] A new font size value of the text field. |
void OdPdfPublish::OdTextField::setLock | ( | bool | state | ) |
Sets a new value of the flag that determines whether the text field is locked. If the flag value is equal to true, the text field is locked and becomes disabled otherwise it enabled and unlocked.
state | [in] A new flag value. |
void OdPdfPublish::OdTextField::setMultiline | ( | bool | state | ) |
Sets a text field multi line flag value. This flag determines whether the text field content can be divided into several lines. If the flag is equal to true, the text field can contain several lines, otherwise text field content is encapsulated into single line.
state | [in] A new multi line flag value. |
Sets the text field name.
name | [in] A new text field name. |
void OdPdfPublish::OdTextField::setPrintability | ( | bool | state | ) |
Sets a new value of the flag that determines whether the text field should be printed. If the text field should be printed, the flag value is equal to true, otherwise it is equal to false.
state | [in] A new flag value. |
void OdPdfPublish::OdTextField::setReadOnly | ( | bool | state | ) |
Sets a text field read only flag value. The read only flag determines whether text field content can be edited (if its value is true) or not (if its value is false).
state | [in] A new scrolling flag value. |
void OdPdfPublish::OdTextField::setScrolling | ( | bool | state | ) |
Sets a text field scrolling flag value. If the flag is equal to true, the text field has scroll control that can be used to scroll multi line text in it. Otherwise the text field does not contain scroll control.
state | [in] A new scrolling flag value. |
void OdPdfPublish::OdTextField::setTextColor | ( | ODCOLORREF | color | ) |
Sets a foreground color of the text field.
color | [in] A new color value. |
void OdPdfPublish::OdTextField::setTextJustification | ( | Text::Justification | justification | ) |
Sets a text field justification.
justification | [in] A new text justification value. |
void OdPdfPublish::OdTextField::setTextRotation | ( | Text::Rotation | rotation | ) |
Sets a text field rotation.
rotation | [in] A new rotation value. |
Sets a tooltip text for the text field. Tooltip text is a text that appears when a user hovers the mouse pointer over the text field.
tooptip | [in] A new value of the tooltip text. |
void OdPdfPublish::OdTextField::setVisibility | ( | bool | state | ) |
Sets a new value of the visibility flag for the text field. Visibility flag determines whether the text field is visible in document (if true) or is hidden (if false).
state | [in] A new flag value. |