diff options
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapperTableHandler.hxx')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapperTableHandler.hxx | 42 |
1 files changed, 34 insertions, 8 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.hxx b/writerfilter/source/dmapper/DomainMapperTableHandler.hxx index bec48a323705..6fe306e7cc10 100644 --- a/writerfilter/source/dmapper/DomainMapperTableHandler.hxx +++ b/writerfilter/source/dmapper/DomainMapperTableHandler.hxx @@ -60,7 +60,8 @@ struct HorizontallyMergedCell } }; -class DomainMapperTableHandler : public TableDataHandler +/// Class to handle events generated by TableManager::resolveCurrentTable(). +class DomainMapperTableHandler { css::uno::Reference<css::text::XTextAppendAndConvert> m_xText; DomainMapper_Impl& m_rDMapper_Impl; @@ -92,13 +93,38 @@ public: DomainMapper_Impl& rDMapper_Impl); virtual ~DomainMapperTableHandler(); - virtual void startTable(unsigned int nRows, unsigned int nDepth, - TablePropertyMapPtr pProps) SAL_OVERRIDE; - virtual void endTable(unsigned int nestedTableLevel) SAL_OVERRIDE; - virtual void startRow(unsigned int nCells, TablePropertyMapPtr pProps) SAL_OVERRIDE; - virtual void endRow() SAL_OVERRIDE; - virtual void startCell(const css::uno::Reference< css::text::XTextRange > & start, TablePropertyMapPtr pProps) SAL_OVERRIDE; - virtual void endCell(const css::uno::Reference< css::text::XTextRange > & end) SAL_OVERRIDE; + /** + Handle start of table. + + @param nRows number of rows in the table + @param nDepth depth of the table in surrounding table hierarchy + @param pProps properties of the table + */ + void startTable(unsigned int nRows, unsigned int nDepth, TablePropertyMapPtr pProps); + /// Handle end of table. + void endTable(unsigned int nestedTableLevel); + /** + Handle start of row. + + @param nCols number of columns in the table + @param pProps properties of the row + */ + void startRow(unsigned int nCells, TablePropertyMapPtr pProps); + /// Handle end of row. + void endRow(); + /** + Handle start of cell. + + @param rT start handle of the cell + @param pProps properties of the cell + */ + void startCell(const css::uno::Reference< css::text::XTextRange > & start, TablePropertyMapPtr pProps); + /** + Handle end of cell. + + @param rT end handle of cell + */ + void endCell(const css::uno::Reference< css::text::XTextRange > & end); css::uno::Reference< css::text::XTextRange >& getTable() { return m_xTableRange; }; void setHadFootOrEndnote(bool bHadFootOrEndnote); |