diff options
author | László Németh <nemeth@numbertext.org> | 2020-02-17 14:34:11 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-02-19 16:46:18 +0100 |
commit | 4d5c0eaf3e0d3d3bcd9e691fffee19b75f3d6631 (patch) | |
tree | 6ed8e4a013884c28db01b9175dfc933141b7c395 /writerfilter/source/dmapper/DomainMapperTableHandler.hxx | |
parent | faa2e7b7227b6b87379e7e136ea9ab63f37c3fc4 (diff) |
tdf#118812 DOCX import: fix table style preference – part 2
Apply table styles according to OOXML and – in
the case of font sizes – MSO exception
"overrideTableStyleFontSizeAndJustification".
Fix temporary regression in styles of paragraph
portions, table cell regions and nested tables from
commit f15d67442972c5f69c71925a6bfa5aa1a39d54eb
(tdf#129575 DOCX import: fix table style preference).
Unit test document was created by Justin Luth.
Change-Id: I7b076ac27f5b44d44934b7efb18ac4a878f8b596
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88869
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapperTableHandler.hxx')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapperTableHandler.hxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.hxx b/writerfilter/source/dmapper/DomainMapperTableHandler.hxx index b454be94f563..bb0ea2e01804 100644 --- a/writerfilter/source/dmapper/DomainMapperTableHandler.hxx +++ b/writerfilter/source/dmapper/DomainMapperTableHandler.hxx @@ -56,6 +56,15 @@ struct HorizontallyMergedCell } }; +/// Information about a paragraph to be finished after a table end. +struct TableParagraph +{ + css::uno::Reference<css::text::XTextRange> m_rStartParagraph; + css::uno::Reference<css::text::XTextRange> m_rEndParagraph; + PropertyMapPtr m_pPropertyMap; + css::uno::Reference<css::beans::XPropertySet> m_rPropertySet; +}; + /// Class to handle events generated by TableManager::resolveCurrentTable(). class DomainMapperTableHandler final : public virtual SvRefBase { @@ -91,7 +100,7 @@ public: */ void startTable(const TablePropertyMapPtr& pProps); - void ApplyParagraphPropertiesFromTableStyle(TableInfo & rInfo); + void ApplyParagraphPropertiesFromTableStyle(TableParagraph rParaProp, std::vector< PropertyIds > aAllTableProperties, css::beans::PropertyValues rCellProperties); /// Handle end of table. void endTable(unsigned int nestedTableLevel, bool bTableStartsAtCellStart); |