#include <ie_Table.h>
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().
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 | ) |
Signal close of cell from endCell strux
References m_sLastTable, and UT_return_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_close_cell(), s_LaTeX_Listener::_closeCell(), s_XSL_FO_Listener::populateStrux(), s_WML_Listener::populateStrux(), IE_Exp_OpenXML_Listener::populateStrux(), LaTeX_Analysis_Listener::populateStrux(), IE_Exp_HTML_Listener::populateStrux(), and s_DocBook_Listener::populateStrux().
void ie_Table::closeTable | ( | void | ) |
pop the stack on this endTable strux.
References m_sdhLastCell, m_sLastTable, and UT_return_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_close_table(), s_XSL_FO_Listener::populateStrux(), s_WML_Listener::populateStrux(), IE_Exp_OpenXML_Listener::populateStrux(), s_LaTeX_Listener::populateStrux(), LaTeX_Analysis_Listener::populateStrux(), IE_Exp_HTML_Listener::populateStrux(), and s_DocBook_Listener::populateStrux().
UT_sint32 ie_Table::getBot | ( | void | ) | const |
Convience function to get the bottom attach of the current cell.
References m_sLastTable, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_close_table(), s_RTF_ListenerWriteDoc::_newRow(), s_RTF_ListenerWriteDoc::_open_cell(), s_XSL_FO_Listener::_openCell(), s_LaTeX_Listener::_openCell(), IE_Exp_HTML_Listener::_openCell(), s_DocBook_Listener::_openCell(), IE_Exp_OpenXML_Listener::populateStrux(), and LaTeX_Analysis_Listener::populateStrux().
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 |
This returns the current row counter
References m_sLastTable, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_newRow(), s_RTF_ListenerWriteDoc::_open_cell(), and s_XSL_FO_Listener::_openRow().
UT_sint32 ie_Table::getLeft | ( | void | ) | const |
Convience function to get the left attach of the current cell.
References m_sLastTable, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_close_table(), s_RTF_ListenerWriteDoc::_newRow(), s_RTF_ListenerWriteDoc::_open_cell(), s_XSL_FO_Listener::_openCell(), s_LaTeX_Listener::_openCell(), IE_Exp_HTML_Listener::_openCell(), s_DocBook_Listener::_openCell(), IE_Exp_HTML_Listener::_setCellWidthInches(), and IE_Exp_OpenXML_Listener::populateStrux().
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 |
Convience function to get the current number of columns in table.
References m_sLastTable, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_close_table(), s_WML_Listener::_closeCell(), IE_Exp_HTML_Listener::_fillColWidthsVector(), s_XSL_FO_Listener::_handleTableColumns(), s_RTF_ListenerWriteDoc::_newRow(), s_DocBook_Listener::_openNestedTable(), s_WML_Listener::_openTable(), s_LaTeX_Listener::_openTable(), s_DocBook_Listener::_openTable(), IE_Exp_OpenXML_Listener::populateStrux(), s_LaTeX_Listener::populateStrux(), and TFTEST_MAIN().
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 |
Convience function to get the right attach of the current cell.
References m_sLastTable, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_close_table(), s_WML_Listener::_closeCell(), s_RTF_ListenerWriteDoc::_newRow(), s_RTF_ListenerWriteDoc::_open_cell(), s_XSL_FO_Listener::_openCell(), s_LaTeX_Listener::_openCell(), IE_Exp_HTML_Listener::_openCell(), s_DocBook_Listener::_openCell(), IE_Exp_HTML_Listener::_setCellWidthInches(), and IE_Exp_OpenXML_Listener::populateStrux().
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 |
Return the value of the property named *pProp of the current Table.
References m_sLastTable, and UT_return_val_if_fail.
Referenced by IE_Exp_HTML_Listener::_fillColWidthsVector(), s_XSL_FO_Listener::_getCellColors(), s_XSL_FO_Listener::_getCellThicknesses(), s_XSL_FO_Listener::_getTableColors(), s_XSL_FO_Listener::_getTableThicknesses(), s_XSL_FO_Listener::_handleTableColumns(), s_RTF_ListenerWriteDoc::_newRow(), IE_Exp_HTML_Listener::_openCell(), s_XSL_FO_Listener::_openRow(), and IE_Exp_HTML_Listener::_openTable().
pf_Frag_Strux * ie_Table::getTableSDH | ( | void | ) | const |
Return the current table SDH for debugging purposes.
References m_sLastTable, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_fillTableProps(), s_RTF_ListenerWriteDoc::_newRow(), and s_RTF_ListenerWriteDoc::getRightOfCell().
UT_sint32 ie_Table::getTop | ( | void | ) | const |
Convience function to get the top attach of the current cell.
References m_sLastTable, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_close_table(), s_RTF_ListenerWriteDoc::_newRow(), s_RTF_ListenerWriteDoc::_open_cell(), s_XSL_FO_Listener::_openCell(), s_LaTeX_Listener::_openCell(), IE_Exp_HTML_Listener::_openCell(), s_DocBook_Listener::_openCell(), IE_Exp_OpenXML_Listener::populateStrux(), and LaTeX_Analysis_Listener::populateStrux().
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 |
References m_sLastTable, and UT_return_val_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_rtf_open_block().
bool ie_Table::isNewRow | ( | void | ) | const |
void ie_Table::openCell | ( | PT_AttrPropIndex | iApi | ) |
A cell strux has been found. Update all info with this api.
References m_bNewRow, m_sLastTable, and UT_return_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_open_cell(), s_LaTeX_Listener::_openCell(), s_XSL_FO_Listener::populateStrux(), s_WML_Listener::populateStrux(), IE_Exp_OpenXML_Listener::populateStrux(), LaTeX_Analysis_Listener::populateStrux(), IE_Exp_HTML_Listener::populateStrux(), and s_DocBook_Listener::populateStrux().
void ie_Table::openTable | ( | pf_Frag_Strux * | tableSDH, | |
PT_AttrPropIndex | iApi | |||
) |
a table strux has been been found. Push it and it's api onto the stack.
References m_pDoc, m_sdhLastCell, m_sLastTable, and ie_PartTable::setTableApi().
Referenced by s_RTF_ListenerWriteDoc::_open_table(), s_XSL_FO_Listener::populateStrux(), s_WML_Listener::populateStrux(), IE_Exp_OpenXML_Listener::populateStrux(), s_LaTeX_Listener::populateStrux(), LaTeX_Analysis_Listener::populateStrux(), IE_Exp_HTML_Listener::populateStrux(), and s_DocBook_Listener::populateStrux().
void ie_Table::setCellJustOpenned | ( | bool | b | ) |
References m_sLastTable, and UT_return_if_fail.
Referenced by s_RTF_ListenerWriteDoc::_rtf_open_block().
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().
bool ie_Table::m_bNewRow [private] |
Referenced by isNewRow(), and openCell().
PD_Document* ie_Table::m_pDoc [private] |
Referenced by openTable(), setCellRowCol(), and setDoc().
pf_Frag_Strux* ie_Table::m_sdhLastCell [private] |
Referenced by closeTable(), openTable(), setCellRowCol(), and setDoc().
std::stack<ie_PartTable*> ie_Table::m_sLastTable [private] |
Referenced by _clearLastTables(), closeCell(), closeTable(), getBot(), getCellAPI(), getCellProp(), getCurRow(), getLeft(), getNestDepth(), getNumCols(), getNumRows(), getPrevNumRightMostVMerged(), getRight(), getTableAPI(), getTableProp(), getTableSDH(), getTop(), ie_Table(), incCurRow(), isCellJustOpenned(), openCell(), openTable(), setCellJustOpenned(), and setCellRowCol().