summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2021-08-05 23:50:14 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2021-09-23 11:15:24 +0200
commit53bfea78bc218c84b7be5fe30e3146b7e90c8481 (patch)
treee46d1ea8c53c73b3a42ace0eed3cf4f2315555a1 /writerfilter
parent03a215cfb95fea956b90d8068f4504e9671defe3 (diff)
tdf#143722 DOCX import: map using default TOC heading style
of Writer ("Contents Heading") instead of "TOC Heading". This essentially reverts the fix to bug #83300. When that was added the TOC import was broken enough that it made no visible regression. In 6.3 the TOC import was fixed up so now it's more annoying. The unit test of bug #83300 is reused but depends on the fix to bug #143726. I checked the example file of bug #83300 and the layout problem of comment 6 that was fixed there does not come back. Follow-up to commit 5440492ff9f949ee9ed9052e8bab6f5136d78b2a "tf143726 DOCX: export default TOC Header style with correct name". Change-Id: Iaee73729ea46a0c36d08ccc6fc5fb04fdf592a1d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120092 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit e3f9170c03eb9121b0c244c0e2e60d15e6920deb) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122279 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/StyleSheetTable.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index af4eefc0d54f..ba3b0d97550e 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -1384,6 +1384,7 @@ OUString StyleSheetTable::ConvertStyleName( const OUString& rWWName, bool bExten
{ "TOC 7", "Contents 7" },
{ "TOC 8", "Contents 8" },
{ "TOC 9", "Contents 9" },
+ { "TOC Heading", "Contents Heading" },
{ "TOCHeading", "Contents Heading" },
{ "toc 1", "Contents 1" },
{ "toc 2", "Contents 2" },