diff options
author | László Németh <nemeth@numbertext.org> | 2019-12-05 09:47:18 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-12-08 15:54:01 +0100 |
commit | b2c6d2d961a6113d0f111fab45ae12a40d389a23 (patch) | |
tree | 316cf6e0472f5c57a4d49d61d40ca5f3cc52e84d /writerfilter/source/dmapper/DomainMapperTableManager.hxx | |
parent | da1f71edfc72928b07a569b98e2766a8a7de9d2a (diff) |
fdo#38414 tdf#44986: DOCX table import: handle gridBefore/After
without serious regressions, ie. losing the import of complex
forms with multiple or nested tables.
Complete the fix for tdf#116194 (DOCX import: fix missing
tables with w:gridBefore) with handling gridAfter on
DomainMapper level.
This consists of also rejections (except their unit tests) of
commit cf33af732ed0d3d553bb74636e3b14c55d44c153
(handle w:gridBefore by faking cells (fdo#38414)) and
commit 1d1748d143ab4270a2ca1b5117852b1b1bb4c526 (Related:
tdf#44986 DOCX import: handle w:gridAfter by faking cells)
Change-Id: I31fa1de03bcdf42424fa5507fb5a3e06aa47107d
Reviewed-on: https://gerrit.libreoffice.org/84517
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapperTableManager.hxx')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapperTableManager.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.hxx b/writerfilter/source/dmapper/DomainMapperTableManager.hxx index 219986870ef3..a0b386657feb 100644 --- a/writerfilter/source/dmapper/DomainMapperTableManager.hxx +++ b/writerfilter/source/dmapper/DomainMapperTableManager.hxx @@ -43,7 +43,7 @@ class DomainMapperTableManager : public TableManager ::std::vector< sal_uInt32 > m_nCell; sal_uInt32 m_nGridSpan; ::std::vector< sal_uInt32 > m_aGridBefore; ///< number of grid columns in the parent table's table grid which must be skipped before the contents of this table row are added to the parent table - sal_uInt32 m_nGridAfter; ///< number of grid columns in the parent table's table grid which shall be left after the last cell in the table row + ::std::vector< sal_uInt32 > m_aGridAfter; ///< number of grid columns in the parent table's table grid which shall be left after the last cell in the table row sal_Int32 m_nHeaderRepeat; //counter of repeated headers - if == -1 then the repeating stops sal_Int32 m_nTableWidth; //might be set directly or has to be calculated from the column positions /// Are we in a shape (text append stack is not empty) or in the body document? @@ -94,6 +94,7 @@ public: IntVectorPtr const & getCurrentSpans( ); IntVectorPtr const & getCurrentCellWidths( ); sal_uInt32 getCurrentGridBefore( ); + sal_uInt32 getCurrentGridAfter( ); /// Turn the attributes collected so far in m_aTableLook into a property and clear the container. void finishTableLook(); |