CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdPdfPublish::OdTable Class Reference

#include <PdfPublishTable.h>

Inheritance diagram for OdPdfPublish::OdTable:
OdPdfPublish::OdObject OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdTable)
 
 ODRX_HEAP_OPERATORS ()
 
 OdTable ()
 
virtual ~OdTable ()
 
void setLink (const OdUInt32 row, const OdUInt32 column, const OdLinkPtr &link)
 
void setText (const OdUInt32 row, const OdUInt32 column, const OdTextPtr &text)
 
void setButton (const OdUInt32 row, const OdUInt32 column, const OdButtonPtr &button)
 
void setTextField (const OdUInt32 row, const OdUInt32 column, const OdTextFieldPtr &text_field)
 
void getLink (const OdUInt32 row, const OdUInt32 column, OdLinkPtr &link) const
 
void getText (const OdUInt32 row, const OdUInt32 column, OdTextPtr &text) const
 
void getButton (const OdUInt32 row, const OdUInt32 column, OdButtonPtr &button) const
 
void getTextField (const OdUInt32 row, const OdUInt32 column, OdTextFieldPtr &text_field) 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 OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Protected Member Functions inherited from OdPdfPublish::OdObject
 OdObject (OdPublishObjectImpl *pImpl)
 

Detailed Description

This class implements a table entity for .pdf documents created with Teigha Publish.

Definition at line 49 of file PdfPublishTable.h.

Constructor & Destructor Documentation

◆ OdTable()

OdPdfPublish::OdTable::OdTable ( )

Creates a table object.

◆ ~OdTable()

virtual OdPdfPublish::OdTable::~OdTable ( )
virtual

Destroys a table object.

Member Function Documentation

◆ getButton()

void OdPdfPublish::OdTable::getButton ( const OdUInt32  row,
const OdUInt32  column,
OdButtonPtr &  button 
) const

Returns a <link OdPdfPublish::OdButton, button> contained in a specified table cell. The table cell is addressed through row and column index. The method fills a passed smart pointer with a pointer to the button object and returns it to a calling subroutine.

Parameters
row[in] A table row index. Can accept values from 0 to table row quantity - 1.
column[in] A table column index. Can accept values from 0 to table column quantity - 1.
button[out] A placeholder for a smart pointer to the button object.
Returns
Returns a smart pointer to the button contained in the table cell. If the cell does not contain a button, null pointer is returned.
See also
<link OdPdfPublish::OdButton, OdButton class>

◆ getLink()

void OdPdfPublish::OdTable::getLink ( const OdUInt32  row,
const OdUInt32  column,
OdLinkPtr &  link 
) const

Returns a link contained in a specified table cell. The table cell is addressed through row and column index. The method fills a passed smart pointer with a pointer to the link object and returns it to a calling subroutine.

Parameters
row[in] A table row index. Can accept values from 0 to table row quantity - 1.
column[in] A table column index. Can accept values from 0 to table column quantity - 1.
link[out] A placeholder for a smart pointer to the link object.
Returns
Returns a smart pointer to the link contained in the table cell. If the cell does not contain a link, null pointer is returned.

◆ getText()

void OdPdfPublish::OdTable::getText ( const OdUInt32  row,
const OdUInt32  column,
OdTextPtr &  text 
) const

Returns a <link OdPdfPublish::OdText, text label> contained in a specified table cell. The table cell is addressed through row and column index. The method fills a passed smart pointer with a pointer to the text label object and returns it to a calling subroutine.

Parameters
row[in] A table row index. Can accept values from 0 to table row quantity - 1.
column[in] A table column index. Can accept values from 0 to table column quantity - 1.
text[out] A placeholder for a smart pointer to the text label object.
Returns
Returns a smart pointer to the text label contained in the table cell. If the cell does not contain a text label, null pointer is returned.
See also
<link OdPdfPublish::OdText, OdText class>

◆ getTextField()

void OdPdfPublish::OdTable::getTextField ( const OdUInt32  row,
const OdUInt32  column,
OdTextFieldPtr &  text_field 
) const

Returns a <link OdPdfPublish::OdTextField, text field> contained in a specified table cell. The table cell is addressed through row and column index. The method fills a passed smart pointer with a pointer to the text field object and returns it to a calling subroutine.

Parameters
row[in] A table row index. Can accept values from 0 to table row quantity - 1.
column[in] A table column index. Can accept values from 0 to table column quantity - 1.
text[out] A placeholder for a smart pointer to the text field object.
Returns
Returns a smart pointer to the text field contained in the table cell. If the cell does not contain a text field, null pointer is returned.
See also
<link OdPdfPublish::OdTextField, OdTextField class>

◆ ODRX_DECLARE_MEMBERS()

OdPdfPublish::OdTable::ODRX_DECLARE_MEMBERS ( OdTable  )

◆ ODRX_HEAP_OPERATORS()

OdPdfPublish::OdTable::ODRX_HEAP_OPERATORS ( )

◆ setButton()

void OdPdfPublish::OdTable::setButton ( const OdUInt32  row,
const OdUInt32  column,
const OdButtonPtr &  button 
)

Adds a <link OdPdfPublish::OdButton, button> to a specified table cell. The table cell is addressed through row and column index.

Parameters
row[in] A table row index. Can accept values from 0 to table row quantity - 1.
column[in] A table column index. Can accept values from 0 to table column quantity - 1.
button[in] A smart pointer to an OdButton object that should be added.
See also
<link OdPdfPublish::OdButton, OdButton class>

◆ setLink()

void OdPdfPublish::OdTable::setLink ( const OdUInt32  row,
const OdUInt32  column,
const OdLinkPtr &  link 
)

Adds a <link OdPdfPublish::OdLink, link> to a specified table cell. The table cell is determined with row and column indexes.

Parameters
row[in] A table row index. Can accept values from 0 to table row quantity - 1.
column[in] A table column index. Can accept values from 0 to table column quantity - 1.
link[in] A smart pointer to an OdLink object that should be added.
See also
<link OdPdfPublish::OdLink, OdLink class>

◆ setText()

void OdPdfPublish::OdTable::setText ( const OdUInt32  row,
const OdUInt32  column,
const OdTextPtr &  text 
)

Adds a <link OdPdfPublish::OdText, text label̃ to a specified table cell. The table cell is addressed through row and column index.

Parameters
row[in] A table row index. Can accept values from 0 to table row quantity - 1.
column[in] A table column index. Can accept values from 0 to table column quantity - 1.
text[in] A smart pointer to an OdText object that should be added.
See also
<link OdPdfPublish::OdText, OdText class>

◆ setTextField()

void OdPdfPublish::OdTable::setTextField ( const OdUInt32  row,
const OdUInt32  column,
const OdTextFieldPtr &  text_field 
)

Adds a <link OdPdfPublish::OdTextField, text field> to a specified table cell. The table cell is addressed through row and column index.

Parameters
row[in] A table row index. Can accept values from 0 to table row quantity - 1.
column[in] A table column index. Can accept values from 0 to table column quantity - 1.
text_field[in] A smart pointer to an OdTextField object that should be added.
See also
<link OdPdfPublish::OdTextField, OdTextField class>

The documentation for this class was generated from the following file: