diff options
Diffstat (limited to 'writerfilter/source/dmapper/TableData.hxx')
-rw-r--r-- | writerfilter/source/dmapper/TableData.hxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/TableData.hxx b/writerfilter/source/dmapper/TableData.hxx index 8489254f4ab8..6326dbe33704 100644 --- a/writerfilter/source/dmapper/TableData.hxx +++ b/writerfilter/source/dmapper/TableData.hxx @@ -131,11 +131,18 @@ public: @param start the start handle of the cell @param end the end handle of the cell @param pProps the properties of the cell + @param bAddBefore true: add an empty cell at beginning of the row for gridBefore */ - void addCell(const css::uno::Reference<css::text::XTextRange>& start, TablePropertyMapPtr pProps) + void addCell(const css::uno::Reference<css::text::XTextRange>& start, TablePropertyMapPtr pProps, bool bAddBefore = false) { CellData::Pointer_t pCellData(new CellData(start, pProps)); - mCells.push_back(pCellData); + if (bAddBefore) + { + mCells.insert(mCells.begin(), pCellData); + mCells[0]->setEnd(start); + } + else + mCells.push_back(pCellData); } void endCell(const css::uno::Reference<css::text::XTextRange>& end) |