Public Member Functions | Private Member Functions | Private Attributes

ie_PartTable Class Reference

#include <ie_Table.h>

List of all members.

Public Member Functions

 ie_PartTable (PD_Document *pDoc)
virtual ~ie_PartTable (void)
void setDoc (PD_Document *pDoc)
void setTableApi (pf_Frag_Strux *sdh, PT_AttrPropIndex iApi)
void setCellApi (PT_AttrPropIndex iApi)
UT_sint32 getLeft (void) const
UT_sint32 getRight (void) const
UT_sint32 getPrevRight (void) const
UT_sint32 getTop (void) const
UT_sint32 getBot (void) const
const char * getTableProp (const char *pPropName) const
const char * getCellProp (const char *pPropName) const
PT_AttrPropIndex getTableAPI (void) const
PT_AttrPropIndex getCellAPI (void) const
UT_sint32 getNumRows (void) const
UT_sint32 getNumCols (void) const
UT_sint32 getCurRow (void) const
void incCurRow (void)
pf_Frag_StruxgetTableSDH (void) const
void setCellJustOpenned (bool b)
bool isCellJustOpenned (void) const

Private Member Functions

void _setRowsCols (void)
void _clearAll (void)
void _clearAllCell (void)

Private Attributes

PD_Documentm_pDoc
PT_AttrPropIndex m_apiTable
PT_AttrPropIndex m_apiCell
const PP_AttrPropm_TableAttProp
const PP_AttrPropm_CellAttProp
UT_sint32 m_iNumRows
UT_sint32 m_iNumCols
UT_sint32 m_iLeft
UT_sint32 m_iRight
UT_sint32 m_iTop
UT_sint32 m_iBot
UT_sint32 m_iPrevLeft
UT_sint32 m_iPrevRight
UT_sint32 m_iPrevTop
UT_sint32 m_iPrevBot
pf_Frag_Struxm_TableSDH
bool m_bIsCellJustOpenned
UT_sint32 m_iCurRow

Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

Referenced by _clearAllCell(), and setCellApi().

Referenced by _clearAll(), and setTableApi().

Referenced by _clearAllCell(), getBot(), and setCellApi().

Referenced by _clearAllCell(), getLeft(), and setCellApi().

Referenced by _clearAllCell(), and setCellApi().

Referenced by _clearAllCell(), and setCellApi().

Referenced by _clearAllCell(), and setCellApi().

Referenced by _clearAllCell(), and setCellApi().

Referenced by _clearAllCell(), getRight(), and setCellApi().

Referenced by _clearAllCell(), getTop(), and setCellApi().


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