Public Member Functions | Private Attributes

ie_imp_cell Class Reference

#include <ie_Table.h>

List of all members.

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_StruxgetCellSDH (void) const
void setCellSDH (pf_Frag_Strux *cellSDH)
bool writeCellPropsInDoc (void) const
ie_imp_cellgetCellAbove (void) const
ie_imp_cellgetCellBelow (void) const
ie_imp_cellgetCellLeft (void) const
ie_imp_cellgetCellRight (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_Documentm_pDoc
UT_sint32 m_iCellX
UT_sint32 m_iLeft
UT_sint32 m_iRight
UT_sint32 m_iTop
UT_sint32 m_iBot
pf_Frag_Struxm_cellSDH
ie_imp_tablem_pImpTable
ie_imp_cellm_pCellLeft
UT_sint32 m_iRow
bool m_bMergeAbove
bool m_bMergeRight
bool m_bMergeLeft
bool m_bFirstVertical
bool m_bFirstHori
std::string m_sCellProps

Constructor & Destructor Documentation

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]

Member Function Documentation

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
UT_sint32 ie_imp_cell::getCellX ( void   )  const
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]
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]
bool ie_imp_cell::isMergedAbove ( void   )  const [inline]
bool ie_imp_cell::isMergedLeft ( void   )  const [inline]
bool ie_imp_cell::isMergedRight ( void   )  const [inline]
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]
void ie_imp_cell::setFirstVerticalMerge ( bool  bVert  )  [inline]
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]
void ie_imp_cell::setMergeLeft ( bool  bLeft  )  [inline]
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().


Member Data Documentation

bool ie_imp_cell::m_bFirstHori [private]

Referenced by copyCell().

Referenced by copyCell().

bool ie_imp_cell::m_bMergeLeft [private]

Referenced by copyCell().

Referenced by copyCell().

Referenced by getBot(), and setBot().

Referenced by copyCell(), getCellX(), and setCellX().

Referenced by getLeft(), and setLeft().

Referenced by getRight(), and setRight().

Referenced by getTop(), and setTop().

Referenced by getCellLeft(), and setCellLeft().

Referenced by writeCellPropsInDoc().

std::string ie_imp_cell::m_sCellProps [private]

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