summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/TablePositionHandler.hxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-05-31 10:51:47 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2013-05-31 14:12:46 +0200
commit173d24a7316fccf0e838f71b92c10a772b19298d (patch)
tree47c4bba7f77292d7f0394e4c869d05b255d49380 /writerfilter/source/dmapper/TablePositionHandler.hxx
parentf00db76911d4fdc53a737e1b9d4ffe6ae31bc97e (diff)
n#816593: docx consecutive tables with different tblpPr needs to be split
When importing docx with 2 <w:tbl> following each other, we have 2 possible behaviors: either merge them as one table as we did before or split them into two tables. The tables need to be split if they have different floating position properties. This required the ooxml tokenizer to repeat the table properties for each row of the table: or how would we know we don't need to split the table? The basic idea behind this hack is to temporarily store the table position and table properties before saving them. Thus we can compare them at the end of the row and decide to split the table or not. Change-Id: I2e3e70dfe7386090fe356575ee9d0e81aa031dc4
Diffstat (limited to 'writerfilter/source/dmapper/TablePositionHandler.hxx')
-rw-r--r--writerfilter/source/dmapper/TablePositionHandler.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/TablePositionHandler.hxx b/writerfilter/source/dmapper/TablePositionHandler.hxx
index dc096e687d26..b6ddd5006d21 100644
--- a/writerfilter/source/dmapper/TablePositionHandler.hxx
+++ b/writerfilter/source/dmapper/TablePositionHandler.hxx
@@ -43,6 +43,8 @@ namespace writerfilter {
properties before actually using them.
*/
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> getTablePosition() const;
+
+ bool operator== (const TablePositionHandler& rHandler) const;
};
typedef boost::shared_ptr<TablePositionHandler> TablePositionHandlerPtr;