PDFix SDK  6.12.0
PdeCell Struct Referenceabstract

PdeCell class. More...

Inheritance diagram for PdeCell:
PdeContainer PdeElement

Public Member Functions

virtual int GetRowSpan () const =0
 
virtual int GetColSpan () const =0
 Returns the number of columns spanned by the cell. More...
 
virtual bool HasBorderGraphicState (int index) const =0
 Returns true if the border with requested index has a stoke border. More...
 
virtual PdeCellGetSpanCell ()=0
 Returns the parent cell. More...
 
- Public Member Functions inherited from PdeElement
virtual PdfElementType GetType () const =0
 Gets the type of an element. More...
 
virtual void GetBBox (PdfRect *bbox) const =0
 
virtual bool SetBBox (const PdfRect *bbox)=0
 
virtual void GetQuad (PdfQuad *quad) const =0
 
virtual int GetId ()=0
 Gets the id of an element. The id is unique number on a page. More...
 
virtual void GetGraphicState (PdfGraphicState *g_state)=0
 Gets the graphics state information for an element. More...
 
virtual int GetNumChildren () const =0
 Gets the number of child elements in an element object. More...
 
virtual PdeElementGetChild (int index)=0
 Gets the requested child element from an element. More...
 
virtual PdfAlignment GetAlignment () const =0
 Gets the element alignment within the content column. More...
 
virtual float GetAngle () const =0
 Gets the element angle. More...
 
virtual void SetData (void *data)=0
 Sets user-supplied data to pass to the element. More...
 
virtual void * GetData () const =0
 Gets user-supplied data to pass to the element. More...
 
virtual bool SetAlt (const wchar_t *alt)=0
 Sets the alternate description of the element. More...
 
virtual bool SetActualText (const wchar_t *text)=0
 Sets the actual text of the element. More...
 
virtual int GetFlags () const =0
 Get the element state flags. More...
 
virtual bool SetFlags (int flags)=0
 Set the element state flags. More...
 
virtual int GetStateFlags () const =0
 Get the element state flags. More...
 
virtual bool SetStateFlags (int flags, bool objects)=0
 Set the element state flags. More...
 
virtual int GetNumPageObjects () const =0
 Get the the number pf page object in the element. More...
 
virtual PdsPageObjectGetPageObject (int index)=0
 Get the the page object of the element by index. More...
 
virtual PdePageMapGetPageMap ()=0
 Get the the page map object containing this element. More...
 

Detailed Description

PdeCell class.

A PdeCell class represents a single cell of PdeTable element.

Member Function Documentation

◆ GetColSpan()

virtual int PdeCell::GetColSpan ( ) const
pure virtual

Returns the number of columns spanned by the cell.

Returns
Cell colspan, 0 if the cell is merged with another cell.
See also
PdeTable::GetCell

◆ GetRowSpan()

virtual int PdeCell::GetRowSpan ( ) const
pure virtual

Returns the number of rows spanned by the cell. The default value is 0, which indicates that this cell is merged. NOTE: Ignore such cells in further processing.

Returns
Cell rowspan, 0 if the cell is merged with another cell.
See also
PdeTable::GetCell

◆ GetSpanCell()

virtual PdeCell* PdeCell::GetSpanCell ( )
pure virtual

Returns the parent cell.

Returns
A requested span parent cell.

◆ HasBorderGraphicState()

virtual bool PdeCell::HasBorderGraphicState ( int  index) const
pure virtual

Returns true if the border with requested index has a stoke border.

Parameters
indexThe border index from 0(top) to 3(left).
Returns
True if the stroke border exist, false otherwise.