#include <ie_Table.h>
ie_PartTable::ie_PartTable | ( | PD_Document * | pDoc | ) |
Class to hold a particular table and cell.
References xxx_UT_DEBUGMSG.
ie_PartTable::~ie_PartTable | ( | void | ) | [virtual] |
References xxx_UT_DEBUGMSG.
void ie_PartTable::_clearAll | ( | void | ) | [private] |
Clears both the Table and Cell properties stored in the class.
References _clearAllCell(), m_apiTable, m_iNumCols, m_iNumRows, m_TableAttProp, and m_TableSDH.
Referenced by setDoc(), and setTableApi().
void ie_PartTable::_clearAllCell | ( | void | ) | [private] |
Clears just the cell properties stored in the class.
References m_apiCell, m_bIsCellJustOpenned, m_CellAttProp, m_iBot, m_iLeft, m_iPrevBot, m_iPrevLeft, m_iPrevRight, m_iPrevTop, m_iRight, m_iTop, and xxx_UT_DEBUGMSG.
Referenced by _clearAll(), and setCellApi().
void ie_PartTable::_setRowsCols | ( | void | ) | [private] |
Calculate the number of rows and columns in this table Do this by scanning through the table struxes in the Piece Table
References PD_Document::getRowsColsFromTableSDH(), m_iNumCols, m_iNumRows, m_pDoc, m_TableSDH, and PD_MAX_REVISION.
Referenced by setTableApi().
UT_sint32 ie_PartTable::getBot | ( | void | ) | const |
The bot attach row of the current cell in the current Table.
References m_iBot.
PT_AttrPropIndex ie_PartTable::getCellAPI | ( | void | ) | const [inline] |
const char * ie_PartTable::getCellProp | ( | const char * | pProp | ) | const |
Return the value of the property named *pProp of the current cell.
References gchar, PP_AttrProp::getProperty(), and m_CellAttProp.
Referenced by setCellApi().
UT_sint32 ie_PartTable::getCurRow | ( | void | ) | const [inline] |
UT_sint32 ie_PartTable::getLeft | ( | void | ) | const |
The left attach column of the current cell in the current Table.
References m_iLeft.
UT_sint32 ie_PartTable::getNumCols | ( | void | ) | const |
Number of columns in the Table.
References m_iNumCols.
UT_sint32 ie_PartTable::getNumRows | ( | void | ) | const |
Number of rows in the table.
References m_iNumRows.
UT_sint32 ie_PartTable::getPrevRight | ( | void | ) | const [inline] |
UT_sint32 ie_PartTable::getRight | ( | void | ) | const |
The right attach column of the current cell in the current Table.
References m_iRight.
PT_AttrPropIndex ie_PartTable::getTableAPI | ( | void | ) | const [inline] |
const char * ie_PartTable::getTableProp | ( | const char * | pProp | ) | const |
Return the value of the property named *pProp of the current Table.
References gchar, PP_AttrProp::getProperty(), and m_TableAttProp.
pf_Frag_Strux* ie_PartTable::getTableSDH | ( | void | ) | const [inline] |
UT_sint32 ie_PartTable::getTop | ( | void | ) | const |
The top attach row of the current cell in the current Table.
References m_iTop.
void ie_PartTable::incCurRow | ( | void | ) | [inline] |
bool ie_PartTable::isCellJustOpenned | ( | void | ) | const |
References m_bIsCellJustOpenned.
void ie_PartTable::setCellApi | ( | PT_AttrPropIndex | iApi | ) |
Sets the api of the current cell and all the class cell properties derived from it.
References _clearAllCell(), PD_Document::getAttrProp(), getCellProp(), m_apiCell, m_CellAttProp, m_iBot, m_iLeft, m_iNumCols, m_iNumRows, m_iPrevBot, m_iPrevLeft, m_iPrevRight, m_iPrevTop, m_iRight, m_iTop, m_pDoc, UT_return_if_fail, and xxx_UT_DEBUGMSG.
void ie_PartTable::setCellJustOpenned | ( | bool | b | ) |
References m_bIsCellJustOpenned.
void ie_PartTable::setDoc | ( | PD_Document * | pDoc | ) |
Sets the document pointer
References _clearAll(), and m_pDoc.
void ie_PartTable::setTableApi | ( | pf_Frag_Strux * | sdh, | |
PT_AttrPropIndex | iApi | |||
) |
Sets the Attribute/Property index of the Table in the class. This is used to find a pointer to the pp_AttrProp class associated with the index.
References _clearAll(), _setRowsCols(), PD_Document::getAttrProp(), m_apiTable, m_pDoc, m_TableAttProp, m_TableSDH, and UT_return_if_fail.
Referenced by ie_Table::openTable().
PT_AttrPropIndex ie_PartTable::m_apiCell [private] |
Referenced by _clearAllCell(), and setCellApi().
PT_AttrPropIndex ie_PartTable::m_apiTable [private] |
Referenced by _clearAll(), and setTableApi().
bool ie_PartTable::m_bIsCellJustOpenned [private] |
Referenced by _clearAllCell(), isCellJustOpenned(), and setCellJustOpenned().
const PP_AttrProp* ie_PartTable::m_CellAttProp [private] |
Referenced by _clearAllCell(), getCellProp(), and setCellApi().
UT_sint32 ie_PartTable::m_iBot [private] |
Referenced by _clearAllCell(), getBot(), and setCellApi().
UT_sint32 ie_PartTable::m_iCurRow [private] |
UT_sint32 ie_PartTable::m_iLeft [private] |
Referenced by _clearAllCell(), getLeft(), and setCellApi().
UT_sint32 ie_PartTable::m_iNumCols [private] |
Referenced by _clearAll(), _setRowsCols(), getNumCols(), and setCellApi().
UT_sint32 ie_PartTable::m_iNumRows [private] |
Referenced by _clearAll(), _setRowsCols(), getNumRows(), and setCellApi().
UT_sint32 ie_PartTable::m_iPrevBot [private] |
Referenced by _clearAllCell(), and setCellApi().
UT_sint32 ie_PartTable::m_iPrevLeft [private] |
Referenced by _clearAllCell(), and setCellApi().
UT_sint32 ie_PartTable::m_iPrevRight [private] |
Referenced by _clearAllCell(), and setCellApi().
UT_sint32 ie_PartTable::m_iPrevTop [private] |
Referenced by _clearAllCell(), and setCellApi().
UT_sint32 ie_PartTable::m_iRight [private] |
Referenced by _clearAllCell(), getRight(), and setCellApi().
UT_sint32 ie_PartTable::m_iTop [private] |
Referenced by _clearAllCell(), getTop(), and setCellApi().
PD_Document* ie_PartTable::m_pDoc [private] |
Referenced by _setRowsCols(), setCellApi(), setDoc(), and setTableApi().
const PP_AttrProp* ie_PartTable::m_TableAttProp [private] |
Referenced by _clearAll(), getTableProp(), and setTableApi().
pf_Frag_Strux* ie_PartTable::m_TableSDH [private] |
Referenced by _clearAll(), _setRowsCols(), and setTableApi().