diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-08 07:55:09 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-08 07:56:20 +0200 |
commit | af4121416c8f4c88385765ec16a7569104ed2714 (patch) | |
tree | 9b5a0f9af8747bed16a205cb13e5f88fb2cb6ca5 /writerfilter/source/dmapper/DomainMapperTableHandler.hxx | |
parent | 799cc41b53a59c543408fa5370e107c2c57a2904 (diff) |
writerfilter: remove not needed TableDataHandler interface
Only DomainMapperTableHandler implemented it, and all clients can use
that directly, no need for this abstraction here.
Change-Id: I800b9eddcfddee643c725c29d9f15db3c9aab02c
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); |