Public Member Functions | Private Member Functions | Private Attributes

ie_Table Class Reference

#include <ie_Table.h>

List of all members.

Public Member Functions

 ie_Table (PD_Document *pDoc)
 ie_Table (void)
virtual ~ie_Table (void)
void setDoc (PD_Document *pDoc)
void openTable (pf_Frag_Strux *tableSDH, PT_AttrPropIndex iApi)
void openCell (PT_AttrPropIndex iApi)
void closeTable (void)
void closeCell (void)
bool isNewRow (void) const
UT_sint32 getLeft (void) const
UT_sint32 getRight (void) const
UT_sint32 getTop (void) const
UT_sint32 getBot (void) const
UT_sint32 getNumRows (void) const
UT_sint32 getNumCols (void) const
const char * getTableProp (const char *pPropName) const
const char * getCellProp (const char *pPropName) const
UT_sint32 getNestDepth (void) const
void setCellRowCol (UT_sint32 row, UT_sint32 col)
pf_Frag_StruxgetTableSDH (void) const
void setCellJustOpenned (bool b)
bool isCellJustOpenned (void) const
PT_AttrPropIndex getTableAPI (void) const
PT_AttrPropIndex getCellAPI (void) const
UT_sint32 getPrevNumRightMostVMerged (void) const
UT_sint32 getCurRow (void) const
void incCurRow (void)

Private Member Functions

void _clearLastTables ()

Private Attributes

PD_Documentm_pDoc
std::stack< ie_PartTable * > m_sLastTable
bool m_bNewRow
pf_Frag_Struxm_sdhLastCell

Constructor & Destructor Documentation

ie_Table::ie_Table ( PD_Document pDoc  ) 

References m_sLastTable.

ie_Table::ie_Table ( void   ) 

References m_sLastTable.

ie_Table::~ie_Table ( void   )  [virtual]

Clean up the stack if needed.

References _clearLastTables().


Member Function Documentation

void ie_Table::_clearLastTables (  )  [private]

Clean up the stack Must be safe to call from the dtor

References m_sLastTable.

Referenced by setDoc(), and ~ie_Table().

void ie_Table::closeCell ( void   ) 
void ie_Table::closeTable ( void   ) 
UT_sint32 ie_Table::getBot ( void   )  const
PT_AttrPropIndex ie_Table::getCellAPI ( void   )  const

Return the api of the current Cell.

References m_sLastTable, and UT_return_val_if_fail.

Referenced by s_RTF_ListenerWriteDoc::_newRow().

const char * ie_Table::getCellProp ( const char *  pProp  )  const

Return the value of the property named *pProp of the current Cell.

References m_sLastTable, and UT_return_val_if_fail.

Referenced by s_XSL_FO_Listener::_getCellColors(), s_XSL_FO_Listener::_getCellThicknesses(), and IE_Exp_HTML_Listener::_openCell().

UT_sint32 ie_Table::getCurRow ( void   )  const
UT_sint32 ie_Table::getLeft ( void   )  const
UT_sint32 ie_Table::getNestDepth ( void   )  const

RTF expects an unnested table to have a nest depth of 0. Since we push NULL at the start we have to subtract this from the depth calculation.

References m_sLastTable, and UT_return_val_if_fail.

Referenced by s_RTF_ListenerWriteDoc::_close_cell(), s_RTF_ListenerWriteDoc::_close_table(), s_RTF_ListenerWriteDoc::_newRow(), s_RTF_ListenerWriteDoc::_open_cell(), s_RTF_ListenerWriteDoc::_open_table(), s_RTF_ListenerWriteDoc::_rtf_open_block(), and getPropertySize().

UT_sint32 ie_Table::getNumCols ( void   )  const
UT_sint32 ie_Table::getNumRows ( void   )  const

Convience function to get the current number of rows in table.

References m_sLastTable, and UT_return_val_if_fail.

Referenced by TFTEST_MAIN().

UT_sint32 ie_Table::getPrevNumRightMostVMerged ( void   )  const

The returns the Right attached column of the previous cell. We needs to get vertically merged cells at the right edge of a table.

References m_sLastTable, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.

Referenced by s_RTF_ListenerWriteDoc::_open_cell().

UT_sint32 ie_Table::getRight ( void   )  const
PT_AttrPropIndex ie_Table::getTableAPI ( void   )  const

Return the api of the current Table.

References m_sLastTable, and UT_return_val_if_fail.

Referenced by s_RTF_ListenerWriteDoc::_newRow().

const char * ie_Table::getTableProp ( const char *  pProp  )  const
pf_Frag_Strux * ie_Table::getTableSDH ( void   )  const
UT_sint32 ie_Table::getTop ( void   )  const
void ie_Table::incCurRow ( void   ) 

This increments the current row counter

References m_sLastTable, and UT_return_if_fail.

Referenced by s_RTF_ListenerWriteDoc::_newRow(), and s_XSL_FO_Listener::_openRow().

bool ie_Table::isCellJustOpenned ( void   )  const
bool ie_Table::isNewRow ( void   )  const
void ie_Table::openCell ( PT_AttrPropIndex  iApi  ) 
void ie_Table::openTable ( pf_Frag_Strux tableSDH,
PT_AttrPropIndex  iApi 
)
void ie_Table::setCellJustOpenned ( bool  b  ) 
void ie_Table::setCellRowCol ( UT_sint32  row,
UT_sint32  col 
)

Set the cell api on the top of the stack to that at location (row,col) If there is no cell at the (row,col) the cellApi is not changed.

References PD_Document::getAPIFromSDH(), PD_Document::getCellSDHFromRowCol(), m_pDoc, m_sdhLastCell, m_sLastTable, PD_MAX_REVISION, and UT_return_if_fail.

Referenced by s_RTF_ListenerWriteDoc::_newRow().

void ie_Table::setDoc ( PD_Document pDoc  ) 

Set pointer to the document. Clear out all previous table info

References _clearLastTables(), m_pDoc, and m_sdhLastCell.

Referenced by s_RTF_ListenerWriteDoc::s_RTF_ListenerWriteDoc().


Member Data Documentation

bool ie_Table::m_bNewRow [private]

Referenced by isNewRow(), and openCell().

Referenced by openTable(), setCellRowCol(), and setDoc().

std::stack<ie_PartTable*> ie_Table::m_sLastTable [private]

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