LibreOffice Module writerfilter (master) 1
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
writerfilter::dmapper::TableData Class Reference

Class that holds the data of a table. More...

#include <TableData.hxx>

Inheritance diagram for writerfilter::dmapper::TableData:
[legend]
Collaboration diagram for writerfilter::dmapper::TableData:
[legend]

Public Types

typedef tools::SvRef< TableDataPointer_t
 

Public Member Functions

 TableData (unsigned int nDepth)
 
void endRow (TablePropertyMapPtr pProperties)
 End the current row. More...
 
void addCell (const css::uno::Reference< css::text::XTextRange > &start, TablePropertyMapPtr pProps)
 Add a cell to the current row. More...
 
void endCell (const css::uno::Reference< css::text::XTextRange > &end)
 End the current cell of the current row. More...
 
bool isCellOpen () const
 Return if the current cell of the current row is open. More...
 
void insertCellProperties (TablePropertyMapPtr pProps)
 Insert properties to the current cell of the current row. More...
 
unsigned int getRowCount () const
 Return number of rows in the table. More...
 
unsigned int getDepth () const
 Return depth of table in surrounding table hierarchy. More...
 
RowPointer_t const & getRow (unsigned int i) const
 Return row data of a certain row. More...
 
const RowPointer_tgetCurrentRow () const
 
- Public Member Functions inherited from SvRefBase
 SvRefBase ()
 
 SvRefBase (const SvRefBase &)
 
SvRefBaseoperator= (const SvRefBase &)
 
void RestoreNoDelete ()
 
void AddNextRef ()
 
void AddFirstRef ()
 
void ReleaseRef ()
 
unsigned int GetRefCount () const
 

Private Types

typedef RowData::Pointer_t RowPointer_t
 
typedef ::std::vector< RowPointer_tRows
 

Private Member Functions

void newRow ()
 initialize mpRow More...
 

Private Attributes

Rows mRows
 the data of the rows of the table More...
 
RowPointer_t mpRow
 pointer to the data of the current row (while building up the table data). More...
 
unsigned int mnDepth
 depth of the current table in a hierarchy of tables More...
 

Additional Inherited Members

- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

Class that holds the data of a table.

Definition at line 271 of file TableData.hxx.

Member Typedef Documentation

◆ Pointer_t

Definition at line 297 of file TableData.hxx.

◆ RowPointer_t

Definition at line 273 of file TableData.hxx.

◆ Rows

typedef ::std::vector<RowPointer_t> writerfilter::dmapper::TableData::Rows
private

Definition at line 274 of file TableData.hxx.

Constructor & Destructor Documentation

◆ TableData()

writerfilter::dmapper::TableData::TableData ( unsigned int  nDepth)
inlineexplicit

Definition at line 299 of file TableData.hxx.

References newRow().

Member Function Documentation

◆ addCell()

void writerfilter::dmapper::TableData::addCell ( const css::uno::Reference< css::text::XTextRange > &  start,
TablePropertyMapPtr  pProps 
)
inline

Add a cell to the current row.

Parameters
startstart handle of the cell
endend handle of the cell
pPropsproperties of the cell

Definition at line 323 of file TableData.hxx.

References mpRow, and start.

◆ endCell()

void writerfilter::dmapper::TableData::endCell ( const css::uno::Reference< css::text::XTextRange > &  end)
inline

End the current cell of the current row.

@parm end end handle of the cell

Definition at line 333 of file TableData.hxx.

References end, and mpRow.

◆ endRow()

void writerfilter::dmapper::TableData::endRow ( TablePropertyMapPtr  pProperties)
inline

End the current row.

Sets properties of the current row and pushes the row to the back of the rows currently contained in the table.

Parameters
pPropertiesproperties of the row to be ended

Definition at line 309 of file TableData.hxx.

References mpRow, mRows, and newRow().

◆ getCurrentRow()

const RowPointer_t & writerfilter::dmapper::TableData::getCurrentRow ( ) const
inline

Definition at line 382 of file TableData.hxx.

References mpRow.

◆ getDepth()

unsigned int writerfilter::dmapper::TableData::getDepth ( ) const
inline

Return depth of table in surrounding table hierarchy.

Definition at line 367 of file TableData.hxx.

References mnDepth.

◆ getRow()

RowPointer_t const & writerfilter::dmapper::TableData::getRow ( unsigned int  i) const
inline

Return row data of a certain row.

Parameters
iindex of the row

Definition at line 377 of file TableData.hxx.

References i, and mRows.

◆ getRowCount()

unsigned int writerfilter::dmapper::TableData::getRowCount ( ) const
inline

Return number of rows in the table.

Definition at line 359 of file TableData.hxx.

References mRows.

◆ insertCellProperties()

void writerfilter::dmapper::TableData::insertCellProperties ( TablePropertyMapPtr  pProps)
inline

Insert properties to the current cell of the current row.

Parameters
pPropsthe properties to add

Definition at line 351 of file TableData.hxx.

References mpRow.

◆ isCellOpen()

bool writerfilter::dmapper::TableData::isCellOpen ( ) const
inline

Return if the current cell of the current row is open.

Definition at line 341 of file TableData.hxx.

References mpRow.

◆ newRow()

void writerfilter::dmapper::TableData::newRow ( )
inlineprivate

initialize mpRow

Definition at line 294 of file TableData.hxx.

References mpRow.

Referenced by endRow(), and TableData().

Member Data Documentation

◆ mnDepth

unsigned int writerfilter::dmapper::TableData::mnDepth
private

depth of the current table in a hierarchy of tables

Definition at line 289 of file TableData.hxx.

Referenced by getDepth().

◆ mpRow

RowPointer_t writerfilter::dmapper::TableData::mpRow
private

pointer to the data of the current row (while building up the table data).

Definition at line 284 of file TableData.hxx.

Referenced by addCell(), endCell(), endRow(), getCurrentRow(), insertCellProperties(), isCellOpen(), and newRow().

◆ mRows

Rows writerfilter::dmapper::TableData::mRows
private

the data of the rows of the table

Definition at line 279 of file TableData.hxx.

Referenced by endRow(), getRow(), and getRowCount().


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