Public 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)
UT_sint32 getLeft (void)
UT_sint32 getRight (void)
UT_sint32 getTop (void)
UT_sint32 getBot (void)
UT_sint32 getNumRows (void)
UT_sint32 getNumCols (void)
const char * getTableProp (const char *pPropName)
const char * getCellProp (const char *pPropName)
UT_sint32 getNestDepth (void)
void setCellRowCol (UT_sint32 row, UT_sint32 col)
pf_Frag_StruxgetTableSDH (void)
void setCellJustOpenned (bool b)
bool isCellJustOpenned (void)
PT_AttrPropIndex getTableAPI (void)
PT_AttrPropIndex getCellAPI (void)
UT_sint32 getPrevNumRightMostVMerged (void)
UT_sint32 getCurRow (void)
void incCurRow (void)

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 m_sLastTable.


Member Function Documentation

void ie_Table::CloseCell ( void   ) 
void ie_Table::CloseTable ( void   ) 
UT_sint32 ie_Table::getBot ( void   ) 
PT_AttrPropIndex ie_Table::getCellAPI ( void   ) 

Return the api of the current Cell.

References ie_PartTable::getCellAPI(), m_sLastTable, and UT_return_val_if_fail.

Referenced by s_RTF_ListenerWriteDoc::_newRow().

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

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

References ie_PartTable::getCellProp(), 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   ) 
UT_sint32 ie_Table::getLeft ( void   ) 
UT_sint32 ie_Table::getNestDepth ( void   ) 

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.

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   ) 
UT_sint32 ie_Table::getNumRows ( void   ) 

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

References ie_PartTable::getNumRows(), m_sLastTable, and UT_return_val_if_fail.

UT_sint32 ie_Table::getPrevNumRightMostVMerged ( void   ) 

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 ie_PartTable::getNumCols(), ie_PartTable::getPrevRight(), ie_PartTable::getRight(), m_sLastTable, and xxx_UT_DEBUGMSG.

Referenced by s_RTF_ListenerWriteDoc::_open_cell().

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

Return the api of the current Table.

References ie_PartTable::getTableAPI(), m_sLastTable, and UT_return_val_if_fail.

Referenced by s_RTF_ListenerWriteDoc::_newRow().

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

This increments the current row counter

References ie_PartTable::incCurRow(), and m_sLastTable.

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

bool ie_Table::isCellJustOpenned ( void   ) 
bool ie_Table::isNewRow ( void   ) 
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(), ie_PartTable::getTableSDH(), m_pDoc, m_sdhLastCell, m_sLastTable, PD_MAX_REVISION, ie_PartTable::setCellApi(), 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 m_pDoc, m_sdhLastCell, and m_sLastTable.

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: