diff options
author | Tünde Tóth <tundeth@gmail.com> | 2019-09-30 10:48:25 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-10-01 15:09:08 +0200 |
commit | 0ddd856af3a9383dc2c6a9a95fd5dc4bfdfeaf7d (patch) | |
tree | a67d065cd30f3fc5cbb5d47ffe1145ebcf567965 /sw/qa | |
parent | c9dfb6ba71a462021911bdd273738180f06d6421 (diff) |
tdf#123628 DOCX export: fix color change of unvisited hyperlinks
by exporting the character style name "Hyperlink" requested by Word
instead of the previous "Internet Link" to allow unvisited/visited color
change at opening the link in the document editor.
Change-Id: Ib5e22f8f26a6f3c71543d6e5410d6cc263b83830
Reviewed-on: https://gerrit.libreoffice.org/79855
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa')
-rwxr-xr-x | sw/qa/extras/ooxmlexport/data/tdf123628.odt | bin | 0 -> 8410 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport13.cxx | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf123628.odt b/sw/qa/extras/ooxmlexport/data/tdf123628.odt Binary files differnew file mode 100755 index 000000000000..53ce54ad2e70 --- /dev/null +++ b/sw/qa/extras/ooxmlexport/data/tdf123628.odt diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx index ec8635943f4d..07ae47ffff37 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport13.cxx @@ -815,6 +815,20 @@ DECLARE_OOXMLEXPORT_TEST(testTdf127735, "internal_hyperlink_table.odt") CPPUNIT_ASSERT_EQUAL(anchor, bookmarkName); } +DECLARE_OOXMLEXPORT_TEST(testTdf123628, "tdf123628.odt") +{ + xmlDocPtr pXmlDoc = parseExport("word/document.xml"); + if (!pXmlDoc) + return; + + xmlDocPtr pXmlStyles = parseExport("word/styles.xml"); + if (!pXmlStyles) + return; + + assertXPath(pXmlDoc, "/w:document/w:body/w:p[1]/w:hyperlink/w:r/w:rPr/w:rStyle", "val", "InternetLink"); + assertXPath(pXmlStyles, "/w:styles/w:style[@w:styleId='InternetLink']/w:name", "val", "Hyperlink"); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |