CFx SDK Documentation 2024 SP0
|
#include <PdfPublishSlideTable.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdSlideTable) | |
ODRX_HEAP_OPERATORS () | |
virtual | ~OdSlideTable () |
void | setDimensions (const OdDoubleArray &column_proportions, const OdUInt32 row_height) |
void | setHTML (const OdString &source) |
void | setHTMLStyle (const OdString &source) |
void | setButtons (const OdString &previous_button_name, const OdString &next_button_name) |
void | setText (const OdUInt32 rows, const OdUInt32 columns, const OdTextFieldPtrArray &text) |
void | setHeader (bool state) |
void | getDimensions (OdDoubleArray &column_proportions, OdUInt32 &row_height) const |
void | getHTML (OdString &source) const |
void | getHTMLStyle (OdString &source) const |
void | getButtons (OdString &previous_button_name, OdString &next_button_name) const |
void | getText (OdUInt32 &rows, OdUInt32 &columns, OdTextFieldPtrArray &text) const |
void | getHeader (bool &state) 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 | |
OdSlideTable () | |
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 slide table entity for .pdf documents created with Publish SDK. A slide table contains a scrollbar (by default) or two specific buttons (if their names are specified with the <link OdPdfPublish::OdSlideTable::setButtons@OdString&@OdString&, setButtons() method>): Next button. When a user presses this button, the table content is scrolled one row downwards. Previous button. When a user presses this button, the the table content is scrolled one row upwards.
Definition at line 50 of file PdfPublishSlideTable.h.
|
protected |
|
virtual |
Destroys a slide table object.
void OdPdfPublish::OdSlideTable::getButtons | ( | OdString & | previous_button_name, |
OdString & | next_button_name | ||
) | const |
Returns the current names of the previous and next buttons contained in the slide table. The method fills the passed string objects with previous and next button names and returns them to a calling subroutine.
previous_button_name | [out] A placeholder for the previous button name. |
next_button_name | [out] A placeholder for the next button name. |
void OdPdfPublish::OdSlideTable::getDimensions | ( | OdDoubleArray & | column_proportions, |
OdUInt32 & | row_height | ||
) | const |
Returns the current column width proportions and row height for the slide table. The method fills the passed double array and integer value with the current column width proportions and row height value, then returns them to a calling subroutine.
column_proportions | [out] A placeholder for column width proportions. |
row_height | [out] A placeholder for the row height value. |
void OdPdfPublish::OdSlideTable::getHeader | ( | bool & | state | ) | const |
Returns the current header flag value. The header flag determines whether the slide table has a header (if set to true). The method fills a passed boolean value with a header flag value and returns it to a calling subroutine.
state | [in] A placeholder for the header flag value. |
Returns the current HTML markup source code for the slide table. The HTML markup source code is represented with a string in UTF8 format. The method fills a passed string object with HTML source code and returns it to a calling subroutine.
source | [out] A placeholder for the HTML markup source code. |
Returns the current style options for the HTML markup of the slide table. The HTML markup style options are represented with a string in UTF8 format. The method fills a passed string object and returns it to a calling subroutine.
source | [in] A placeholder for the HTML markup style options. |
void OdPdfPublish::OdSlideTable::getText | ( | OdUInt32 & | rows, |
OdUInt32 & | columns, | ||
OdTextFieldPtrArray & | text | ||
) | const |
Returns the text fields of the slide table. The method fills the passed values with the quantity of rows and columns and adds text field smart pointers into a passed array, then returns the filled values and array to a calling subroutine.
rows | [out] A placeholder for the quantity of slide table rows. |
columns | [out] A placeholder for the quantity of slide table columns. |
text | [out] A placeholder for smart pointers to text fields. |
OdPdfPublish::OdSlideTable::ODRX_DECLARE_MEMBERS | ( | OdSlideTable | ) |
OdPdfPublish::OdSlideTable::ODRX_HEAP_OPERATORS | ( | ) |
void OdPdfPublish::OdSlideTable::setButtons | ( | const OdString & | previous_button_name, |
const OdString & | next_button_name | ||
) |
Sets special buttons for sliding rows upwards and downwards in the slide table.
previous_button_name | [in] A name for the Previous button that slides rows upwards. |
next_button_name | [in] A name for the Next button that slides rows downwards. |
void OdPdfPublish::OdSlideTable::setDimensions | ( | const OdDoubleArray & | column_proportions, |
const OdUInt32 | row_height | ||
) |
Sets column width proportions and row height for the slide table.
column_proportions | [in] An array that contains column width proportions. The array size should match the count of the slide table columns. |
row_height | [in] A new row height value. |
void OdPdfPublish::OdSlideTable::setHeader | ( | bool | state | ) |
Sets a header flag value. The header flag determines whether the slide table has a header (if set to true).
state | [in] A new value of the header flag. |
Sets HTML markup source code for the slide table. The HTML markup source code is represented with a string in UTF8 format.
source | [in] New HTML markup source code. |
Sets style options for the HTML markup of the slide table. The HTML markup style options are represented with a string in UTF8 format.
source | [in] New HTML markup style options. |
void OdPdfPublish::OdSlideTable::setText | ( | const OdUInt32 | rows, |
const OdUInt32 | columns, | ||
const OdTextFieldPtrArray & | text | ||
) |
Adds text fields for slide table cells.
rows | [in] A quantity of slide table rows that should be filled with text fields. |
columns | [in] A quantity of slide table columns that should be filled with text fields. |
text | [in] An array of smart pointers to text fields that should be added to the slide table cells. |