summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper/TablePositionHandler.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-08-14 15:54:30 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-08-14 17:30:08 +0200
commit53d27a30ce5f2c9f7d37a4089286116854c16215 (patch)
tree4dd47ab0a6877e1bfdffc591b020edcbce9f6927 /writerfilter/source/dmapper/TablePositionHandler.hxx
parent824cc4bf4ae9035d4108e8da8e81eb57284f0b54 (diff)
DOCX import: fixed horizontal position of floating tables
In Word, just like normal tables, floating tables should be positioned in a way that the start of the cell text has the same horizontal position as normal paragraph text. To emulate this, first the table should be moved left by the table border distance, then also by the border with / 2; as done for non-floating tables already. Change-Id: I581311fbb08009e6c1839106e8f615d078a4a705
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 b6ddd5006d21..43eabbcddae5 100644
--- a/writerfilter/source/dmapper/TablePositionHandler.hxx
+++ b/writerfilter/source/dmapper/TablePositionHandler.hxx
@@ -27,6 +27,8 @@ namespace writerfilter {
OUString m_aXSpec;
sal_Int32 m_nY;
sal_Int32 m_nX;
+ sal_Int32 m_nLeftBorderDistance;
+ sal_Int32 m_nRightBorderDistance;
// Properties
virtual void lcl_attribute(Id Name, Value & val);