#include <ie_Table.h>
Public Member Functions | |
ie_imp_cell (ie_imp_table *pImpTable, PD_Document *pDoc, ie_imp_cell *pImpCell, UT_sint32 iRow) | |
virtual | ~ie_imp_cell (void) |
void | setCellX (UT_sint32 cellx) |
UT_sint32 | getCellX (void) const |
void | setCellLeft (ie_imp_cell *pImpCell) |
void | setLeft (UT_sint32 iLeft) |
UT_sint32 | getLeft (void) const |
void | setRight (UT_sint32 iRight) |
UT_sint32 | getRight (void) const |
void | setTop (UT_sint32 iTop) |
UT_sint32 | getTop (void) const |
void | setBot (UT_sint32 iBot) |
UT_sint32 | getBot (void) const |
pf_Frag_Strux * | getCellSDH (void) const |
void | setCellSDH (pf_Frag_Strux *cellSDH) |
bool | writeCellPropsInDoc (void) const |
ie_imp_cell * | getCellAbove (void) const |
ie_imp_cell * | getCellBelow (void) const |
ie_imp_cell * | getCellLeft (void) const |
ie_imp_cell * | getCellRight (void) const |
void | addPropString (const std::string &sPropString) |
void | setProp (const std::string &psProp, const std::string &psVal) |
std::string | getPropVal (const std::string &psProp) const |
void | setProp (const char *szProp, const char *szVal) |
std::string | getPropVal (const char *szProp) const |
UT_sint32 | getRow (void) const |
void | setMergeAbove (bool bAbove) |
void | setMergeRight (bool bRight) |
void | setMergeLeft (bool bLeft) |
void | setFirstHorizontalMerge (bool bHori) |
void | setFirstVerticalMerge (bool bVert) |
bool | isMergedAbove (void) const |
bool | isMergedRight (void) const |
bool | isMergedLeft (void) const |
bool | isFirstVerticalMerged (void) const |
bool | isFirstHorizontalMerged (void) const |
void | copyCell (ie_imp_cell *pCell) |
void | setImpTable (ie_imp_table *pTable) |
void | setRow (UT_sint32 row) |
Private Attributes | |
PD_Document * | m_pDoc |
UT_sint32 | m_iCellX |
UT_sint32 | m_iLeft |
UT_sint32 | m_iRight |
UT_sint32 | m_iTop |
UT_sint32 | m_iBot |
pf_Frag_Strux * | m_cellSDH |
ie_imp_table * | m_pImpTable |
ie_imp_cell * | m_pCellLeft |
UT_sint32 | m_iRow |
bool | m_bMergeAbove |
bool | m_bMergeRight |
bool | m_bMergeLeft |
bool | m_bFirstVertical |
bool | m_bFirstHori |
std::string | m_sCellProps |
ie_imp_cell::ie_imp_cell | ( | ie_imp_table * | pImpTable, | |
PD_Document * | pDoc, | |||
ie_imp_cell * | pLeftImpCell, | |||
UT_sint32 | iRow | |||
) |
These classes aid the import of table information. They we designed to import RTF but they might useful for other classes too.
References m_sCellProps, and xxx_UT_DEBUGMSG.
ie_imp_cell::~ie_imp_cell | ( | void | ) | [virtual] |
void ie_imp_cell::addPropString | ( | const std::string & | sPropString | ) |
Add a list of properties to the cell definition. The definition is the standard prop:value; pair
References m_sCellProps, and UT_std_string_addPropertyString().
Referenced by IE_Imp_RTF::FlushCellProps().
void ie_imp_cell::copyCell | ( | ie_imp_cell * | pCell | ) |
Copy the relevant contents of one cell to another. Useful for rows of of cells with properties identical to the previous row.
References m_bFirstHori, m_bMergeAbove, m_bMergeLeft, m_bMergeRight, m_iCellX, and m_sCellProps.
Referenced by IE_Imp_RTF::HandleCell(), and ie_imp_table::NewRow().
UT_sint32 ie_imp_cell::getBot | ( | void | ) | const |
Get the bottom attach for the cell
References m_iBot.
Referenced by ie_imp_table::writeAllCellPropsInDoc().
ie_imp_cell * ie_imp_cell::getCellAbove | ( | void | ) | const |
Return a pointer to the import cell class above this one.
ie_imp_cell * ie_imp_cell::getCellBelow | ( | void | ) | const |
Return a pointer to the import cell class below this one.
ie_imp_cell * ie_imp_cell::getCellLeft | ( | void | ) | const |
Return a pointer to the import cell class left of this one.
References m_pCellLeft.
ie_imp_cell * ie_imp_cell::getCellRight | ( | void | ) | const |
Return a pointer to the import cell class right of this one.
pf_Frag_Strux * ie_imp_cell::getCellSDH | ( | void | ) | const |
Get the cell SDH for this cell.
References m_cellSDH.
Referenced by ie_imp_table::_removeAllStruxes(), ie_imp_table::deleteRow(), ie_imp_table_control::NewRow(), ie_imp_table::removeExtraneousCells(), and ie_imp_table::writeAllCellPropsInDoc().
UT_sint32 ie_imp_cell::getCellX | ( | void | ) | const |
Get the cellX value for the cell.
References m_iCellX.
Referenced by ie_imp_table::_buildCellXVector(), ie_imp_table::buildTableStructure(), ie_imp_table::deleteRow(), ie_imp_table::getCellAtRowColX(), ie_imp_table::getColNumber(), ie_imp_table::getVecOfCellsOnRow(), IE_Imp_RTF::HandleCell(), IE_Imp_RTF::HandleCellX(), ie_imp_table::NewRow(), and ie_imp_table::removeExtraneousCells().
UT_sint32 ie_imp_cell::getLeft | ( | void | ) | const |
Get the left attach for the cell
References m_iLeft.
Referenced by ie_imp_table::deleteRow(), ie_imp_table::removeOnThisCellRow(), and ie_imp_table::writeAllCellPropsInDoc().
std::string ie_imp_cell::getPropVal | ( | const std::string & | psProp | ) | const |
Return the value of a property of this cell. This should be deleted when you've finished with it.
References m_sCellProps, and UT_std_string_getPropVal().
Referenced by ie_imp_table::getCellPropVal().
std::string ie_imp_cell::getPropVal | ( | const char * | szProp | ) | const |
Return the value of a property of this cell. This should be deleted when you've finished with it.
References m_sCellProps, and UT_std_string_getPropVal().
UT_sint32 ie_imp_cell::getRight | ( | void | ) | const |
Get the right attach for the cell
References m_iRight.
Referenced by ie_imp_table::writeAllCellPropsInDoc().
UT_sint32 ie_imp_cell::getRow | ( | void | ) | const [inline] |
Referenced by ie_imp_table::buildTableStructure(), ie_imp_table::deleteRow(), ie_imp_table::getCellAtRowColX(), ie_imp_table::getNthCellOnRow(), ie_imp_table::getNumRows(), ie_imp_table::getVecOfCellsOnRow(), ie_imp_table::OpenCell(), ie_imp_table::removeOnThisCellRow(), ie_imp_table::removeRow(), ie_imp_table::setCellRowNthCell(), and ie_imp_table::writeAllCellPropsInDoc().
UT_sint32 ie_imp_cell::getTop | ( | void | ) | const |
Get the top attach for the cell
References m_iTop.
Referenced by ie_imp_table::removeOnThisCellRow(), and ie_imp_table::writeAllCellPropsInDoc().
bool ie_imp_cell::isFirstHorizontalMerged | ( | void | ) | const [inline] |
bool ie_imp_cell::isFirstVerticalMerged | ( | void | ) | const [inline] |
Referenced by ie_imp_table::buildTableStructure().
bool ie_imp_cell::isMergedAbove | ( | void | ) | const [inline] |
Referenced by ie_imp_table::buildTableStructure(), and ie_imp_table::writeAllCellPropsInDoc().
bool ie_imp_cell::isMergedLeft | ( | void | ) | const [inline] |
Referenced by ie_imp_table::buildTableStructure(), and ie_imp_table::writeAllCellPropsInDoc().
bool ie_imp_cell::isMergedRight | ( | void | ) | const [inline] |
Referenced by ie_imp_table::writeAllCellPropsInDoc().
void ie_imp_cell::setBot | ( | UT_sint32 | iBot | ) |
set bottom attach for this this cell..
References m_iBot, setProp(), and UT_std_string_sprintf().
Referenced by ie_imp_table::buildTableStructure().
void ie_imp_cell::setCellLeft | ( | ie_imp_cell * | pImpCell | ) |
set a pointer to the cell immedidately left of this one.
References m_pCellLeft.
void ie_imp_cell::setCellSDH | ( | pf_Frag_Strux * | cellSDH | ) |
Set Cell SDH
References m_cellSDH.
Referenced by IE_Imp_RTF::HandleCell(), and IE_Imp_RTF::OpenTable().
void ie_imp_cell::setCellX | ( | UT_sint32 | cellx | ) |
Set the cellX value for the cell. rtf uses this to distinguish between cells. All the cells with the same cellx have in the same column. The value of cellX is the right most-edge of the cell including 0.5 of the spacing to the next cell in uints of twips.
References m_iCellX.
Referenced by ie_imp_table::setCellX().
void ie_imp_cell::setFirstHorizontalMerge | ( | bool | bHori | ) | [inline] |
Referenced by IE_Imp_RTF::FlushCellProps().
void ie_imp_cell::setFirstVerticalMerge | ( | bool | bVert | ) | [inline] |
Referenced by IE_Imp_RTF::FlushCellProps().
void ie_imp_cell::setImpTable | ( | ie_imp_table * | pTable | ) | [inline] |
Referenced by ie_imp_table::appendRow().
void ie_imp_cell::setLeft | ( | UT_sint32 | iLeft | ) |
set Left attach for this this cell..
References m_iLeft, setProp(), and UT_std_string_sprintf().
Referenced by ie_imp_table::buildTableStructure().
void ie_imp_cell::setMergeAbove | ( | bool | bAbove | ) | [inline] |
Referenced by IE_Imp_RTF::FlushCellProps().
void ie_imp_cell::setMergeLeft | ( | bool | bLeft | ) | [inline] |
Referenced by IE_Imp_RTF::FlushCellProps().
void ie_imp_cell::setMergeRight | ( | bool | bRight | ) | [inline] |
void ie_imp_cell::setProp | ( | const char * | szProp, | |
const char * | szVal | |||
) |
set a property of this cell.
References m_sCellProps, and UT_std_string_setProperty().
void ie_imp_cell::setProp | ( | const std::string & | psProp, | |
const std::string & | psVal | |||
) |
set a property of this cell.
References m_sCellProps, and UT_std_string_setProperty().
Referenced by setBot(), ie_imp_table::setCellProp(), setLeft(), setRight(), and setTop().
void ie_imp_cell::setRight | ( | UT_sint32 | iRight | ) |
set Right attach for this this cell..
References m_iRight, setProp(), and UT_std_string_sprintf().
Referenced by ie_imp_table::buildTableStructure().
void ie_imp_cell::setRow | ( | UT_sint32 | row | ) | [inline] |
Referenced by ie_imp_table::appendRow().
void ie_imp_cell::setTop | ( | UT_sint32 | iTop | ) |
set top attach for this this cell..
References m_iTop, setProp(), and UT_std_string_sprintf().
Referenced by ie_imp_table::buildTableStructure().
bool ie_imp_cell::writeCellPropsInDoc | ( | void | ) | const |
Write all the properties of this cell to the piecetable without throwing a changerecord return false if no cellSDH is present. true otherwise
References PD_Document::changeStruxAttsNoUpdate(), m_cellSDH, m_pDoc, m_sCellProps, and xxx_UT_DEBUGMSG.
Referenced by ie_imp_table::writeAllCellPropsInDoc().
bool ie_imp_cell::m_bFirstHori [private] |
Referenced by copyCell().
bool ie_imp_cell::m_bFirstVertical [private] |
bool ie_imp_cell::m_bMergeAbove [private] |
Referenced by copyCell().
bool ie_imp_cell::m_bMergeLeft [private] |
Referenced by copyCell().
bool ie_imp_cell::m_bMergeRight [private] |
Referenced by copyCell().
pf_Frag_Strux* ie_imp_cell::m_cellSDH [private] |
Referenced by getCellSDH(), setCellSDH(), and writeCellPropsInDoc().
UT_sint32 ie_imp_cell::m_iBot [private] |
UT_sint32 ie_imp_cell::m_iCellX [private] |
Referenced by copyCell(), getCellX(), and setCellX().
UT_sint32 ie_imp_cell::m_iLeft [private] |
UT_sint32 ie_imp_cell::m_iRight [private] |
Referenced by getRight(), and setRight().
UT_sint32 ie_imp_cell::m_iRow [private] |
UT_sint32 ie_imp_cell::m_iTop [private] |
ie_imp_cell* ie_imp_cell::m_pCellLeft [private] |
Referenced by getCellLeft(), and setCellLeft().
PD_Document* ie_imp_cell::m_pDoc [private] |
Referenced by writeCellPropsInDoc().
ie_imp_table* ie_imp_cell::m_pImpTable [private] |
std::string ie_imp_cell::m_sCellProps [private] |
Referenced by addPropString(), copyCell(), getPropVal(), ie_imp_cell(), setProp(), and writeCellPropsInDoc().