|
CFx SDK Documentation 2024 SP0
|
#include <PdfPublishText.h>
Public Member Functions | |
| ODRX_DECLARE_MEMBERS (OdText) | |
| ODRX_HEAP_OPERATORS () | |
| virtual | ~OdText () |
| void | setText (const OdString &text) |
| void | setFont (Text::StandardFontsType fontType) |
| void | setFont (const OdString &fontName, Text::Language language, bool embed) |
| void | setSize (OdUInt16 size) |
| void | setColor (ODCOLORREF color) |
| void | getText (OdString &text) const |
| void | getFont (Text::StorageType &storageType, Text::StandardFontsType &fontType, OdString &fontName, Text::Language &language, bool &embed) const |
| void | getSize (OdUInt16 &size) const |
| void | getColor (ODCOLORREF &color) const |
| void | setLayer (const Od2dGeometryLayerPtr &layer) |
| void | getLayer (Od2dGeometryLayerPtr &layer) const |
Public Member Functions inherited from OdPdfPublish::OdObject | |
| ODRX_DECLARE_MEMBERS (OdObject) | |
| ODRX_HEAP_OPERATORS () | |
| virtual | ~OdObject () |
| virtual bool | isEmpty () const |
| virtual bool | isValid () const |
| virtual void | clear () |
Public Member Functions inherited from OdRxObject | |
| ODRX_HEAP_OPERATORS () | |
| OdRxObject () | |
| virtual | ~OdRxObject () |
| virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
| virtual OdRxObject * | x (const OdRxClass *pClass) const |
| virtual OdRxClass * | isA () const |
| virtual void | addRef ()=0 |
| virtual void | release ()=0 |
| virtual long | numRefs () const |
| bool | isKindOf (const OdRxClass *pClass) const |
| virtual OdRxObjectPtr | clone () const |
| virtual void | copyFrom (const OdRxObject *pSource) |
| virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
| virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Member Functions | |
| OdText () | |
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 text label for .pdf documents created with Publish SDK. Text label options consist of two parts: text content and formatting parameters (font type, size, color).
Definition at line 47 of file PdfPublishText.h.
|
protected |
|
virtual |
Destroys a text label.
| void OdPdfPublish::OdText::getColor | ( | ODCOLORREF & | color | ) | const |
Returns the text label color. The method fills a passed ODCOLORREF value and returns it to a calling subroutine.
| color | [out] A placeholder for the text label color value. |
| void OdPdfPublish::OdText::getFont | ( | Text::StorageType & | storageType, |
| Text::StandardFontsType & | fontType, | ||
| OdString & | fontName, | ||
| Text::Language & | language, | ||
| bool & | embed | ||
| ) | const |
Returns the text label font type. The method fills a passed font type value and returns this string 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 list box items. |
| fontName | [out] A placeholder for the font name that should be used for displaying list box items. |
| language | [out] A placeholder for the font language that should be used for displaying list box items. |
| embed | [out] A placeholder for the font embedding flag. |
| void OdPdfPublish::OdText::getLayer | ( | Od2dGeometryLayerPtr & | layer | ) | const |
Returns the current PDF layer object for the text object.
| layer | [out] A placeholder for a smart pointer to PDF layer object. |
Returns the text label font size. The method fills a passed value and returns it to a calling subroutine.
| size | [out] A placeholder for the font size value. |
Returns the text label content. The method fills a passed string object with label text and returns this string to a calling subroutine.
| text | [out] A placeholder for the label text. |
| OdPdfPublish::OdText::ODRX_DECLARE_MEMBERS | ( | OdText | ) |
| OdPdfPublish::OdText::ODRX_HEAP_OPERATORS | ( | ) |
| void OdPdfPublish::OdText::setColor | ( | ODCOLORREF | color | ) |
Sets the text label foreground color.
| color | [in] A new color value. |
| void OdPdfPublish::OdText::setFont | ( | const OdString & | fontName, |
| Text::Language | language, | ||
| bool | embed | ||
| ) |
Sets font name and font language for the text label.
| fontName | [in] A new font name for the text label. |
| language | [in] A new font language for the text label. |
| embed | [in] A flag that determines whether the font is embedded. |
| void OdPdfPublish::OdText::setFont | ( | Text::StandardFontsType | fontType | ) |
Sets the text label font type from the list of <link OdPdfPublish::Text::StandardFontsType, predefined fonts>.
| fontType | [in] A new font type value. |
| void OdPdfPublish::OdText::setLayer | ( | const Od2dGeometryLayerPtr & | layer | ) |
Sets a new PDF layer object for the text object.
| layer | [in] A smart pointer to a PDF layer object. |
Sets the text label font size.
| size | [in] A new font size value. |
Sets the label text.
| text | [in] New label text. |