Public Member Functions | Private Member Functions | Private Attributes

OXML_Element_Table Class Reference

#include <OXML_Element_Table.h>

Inheritance diagram for OXML_Element_Table:
OXML_Element OXML_ObjectWithAttrProp

List of all members.

Public Member Functions

 OXML_Element_Table (const std::string &id)
virtual ~OXML_Element_Table ()
virtual UT_Error serialize (IE_Exp_OpenXML *exporter)
virtual UT_Error serializeChildren (IE_Exp_OpenXML *exporter)
virtual UT_Error addToPT (PD_Document *pDocument)
virtual std::string getColumnWidth (int colIndex) const
virtual std::string getRowHeight (int rowIndex) const
UT_Error addChildrenToPT (PD_Document *pDocument)
void addRow (OXML_Element_Row *row)
int getCurrentRowNumber () const
int getCurrentColNumber () const
void setCurrentRowNumber (int row)
void setCurrentColNumber (int col)
void incrementCurrentRowNumber ()
void incrementCurrentColNumber ()
bool incrementBottomVerticalMergeStart (const OXML_SharedElement_Cell &cell)
bool incrementRightHorizontalMergeStart (const OXML_SharedElement_Cell &cell)
void addMissingCell (unsigned int rowNumber, const OXML_SharedElement_Cell &cell)
void applyStyle (OXML_SharedStyle style)
int getNumberOfRows () const

Private Member Functions

virtual UT_Error serializeProperties (IE_Exp_OpenXML *exporter)

Private Attributes

std::vector< std::string > columnWidth
std::vector< std::string > rowHeight
std::vector< OXML_Element_Row * > m_rows
int m_currentRowNumber
int m_currentColNumber

Constructor & Destructor Documentation

OXML_Element_Table::OXML_Element_Table ( const std::string &  id  ) 
OXML_Element_Table::~OXML_Element_Table (  )  [virtual]

Member Function Documentation

UT_Error OXML_Element_Table::addChildrenToPT ( PD_Document pDocument  ) 
void OXML_Element_Table::addMissingCell ( unsigned int  rowNumber,
const OXML_SharedElement_Cell cell 
void OXML_Element_Table::addRow ( OXML_Element_Row row  ) 
void OXML_Element_Table::applyStyle ( OXML_SharedStyle  style  ) 
std::string OXML_Element_Table::getColumnWidth ( int  colIndex  )  const [virtual]
int OXML_Element_Table::getCurrentColNumber (  )  const

References m_currentColNumber.

int OXML_Element_Table::getCurrentRowNumber (  )  const
int OXML_Element_Table::getNumberOfRows (  )  const [inline]

References m_rows.

std::string OXML_Element_Table::getRowHeight ( int  rowIndex  )  const [virtual]
bool OXML_Element_Table::incrementBottomVerticalMergeStart ( const OXML_SharedElement_Cell cell  ) 
void OXML_Element_Table::incrementCurrentColNumber (  ) 

References m_currentColNumber.

void OXML_Element_Table::incrementCurrentRowNumber (  ) 

References m_currentRowNumber.

bool OXML_Element_Table::incrementRightHorizontalMergeStart ( const OXML_SharedElement_Cell cell  ) 

References m_rows.

UT_Error OXML_Element_Table::serializeChildren ( IE_Exp_OpenXML exporter  )  [virtual]

Reimplemented from OXML_Element.

References OXML_Element::getChildren(), m_currentRowNumber, and UT_OK.

Referenced by serialize().

void OXML_Element_Table::setCurrentColNumber ( int  col  ) 

References m_currentColNumber.

void OXML_Element_Table::setCurrentRowNumber ( int  row  ) 

References m_currentRowNumber.

Member Data Documentation

std::vector<std::string> OXML_Element_Table::columnWidth [private]
std::vector<std::string> OXML_Element_Table::rowHeight [private]

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