summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2015-01-24 06:50:03 -0800
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-02-14 22:48:41 +0100
commit7f126fc8570da5c7275a4d4efe019b9ea3b5b073 (patch)
tree69aa96b6eb5bf780eb0d27ffb01b053707dbbf03
parentdcef874cebf37a05e4f125b18e7c85588dbd12cb (diff)
tdf#87574 - Outline numbering "None" is not retained in docx
Partially revert commit d30a8ec448bcd08c6a52a37d6ae41a4b71c235da (Correct number format mapping for CJK numbered lists in rtf/doc/docx filters., 2014-11-04). Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Reviewed on: https://gerrit.libreoffice.org/14211 Change-Id: I0876ecd982cfd8d97887495b23af0e0370821101
-rw-r--r--sw/qa/extras/ooxmlexport/data/outline-num-none.odtbin0 -> 9052 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx6
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx2
3 files changed, 7 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/outline-num-none.odt b/sw/qa/extras/ooxmlexport/data/outline-num-none.odt
new file mode 100644
index 000000000000..b3bb56d5cfa5
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/outline-num-none.odt
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index dcdef6a357b9..18c11ac11c2b 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -610,6 +610,12 @@ DECLARE_OOXMLEXPORT_TEST(testOoxmlNumListZHCN, "numlist-zhcn.odt")
assertXPath ( pXmlDoc, "/w:numbering/w:abstractNum[1]/w:lvl[1]/w:numFmt","val","chineseCountingThousand" );
}
+DECLARE_OOXMLEXPORT_TEST(testOOxmlOutlineNumNone, "outline-num-none.odt")
+{
+ if (xmlDocPtr pXmlDoc = parseExport("word/numbering.xml"))
+ assertXPath(pXmlDoc, "/w:numbering/w:abstractNum[1]/w:lvl[1]/w:numFmt", "val", "none");
+}
+
DECLARE_OOXMLEXPORT_TEST(testNumParentStyle, "num-parent-style.docx")
{
// This was "Outline", i.e. <w:numId> was not imported from the Heading 2 paragraph style.
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 16770aecb975..cdd9a69db279 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -5591,7 +5591,7 @@ static OString impl_LevelNFC( sal_uInt16 nNumberingType , const SfxItemSet *pOut
case style::NumberingType::NUMBER_HANGUL_KO: aType="koreanDigital";break;
case style::NumberingType::NUMBER_UPPER_KO: aType="koreanLegal"; break;
default:
- aType = "decimal"; break;
+ aType = "none"; break;
}
return aType;
}