From 0ddd856af3a9383dc2c6a9a95fd5dc4bfdfeaf7d Mon Sep 17 00:00:00 2001 From: Tünde Tóth Date: Mon, 30 Sep 2019 10:48:25 +0200 Subject: tdf#123628 DOCX export: fix color change of unvisited hyperlinks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: László Németh --- sw/source/filter/ww8/wrtw8sty.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw/source/filter/ww8/wrtw8sty.cxx') diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx index c8715e0be9d3..2e67ac47e5a8 100644 --- a/sw/source/filter/ww8/wrtw8sty.cxx +++ b/sw/source/filter/ww8/wrtw8sty.cxx @@ -630,6 +630,10 @@ void MSWordStyles::OutputStyle( SwFormat* pFormat, sal_uInt16 nPos ) // tdf#92335 don't export redundant DOCX import style "ListLabel" return; } + else if (aName.equalsIgnoreAsciiCase("Internet Link")) + { + aName = "Hyperlink"; + } m_rExport.AttrOutput().StartStyle( aName, (bFormatColl ? STYLE_TYPE_PARA : STYLE_TYPE_CHAR), nBase, nWwNext, GetWWId( *pFormat ), nPos, -- cgit