summaryrefslogtreecommitdiffstats
path: root/sw/source/filter/ww8/rtfattributeoutput.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-15 13:56:35 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-15 14:22:09 +0100
commita936658e6cd92d8f073227cd5c586bcecc7124e0 (patch)
tree6a3a364bb7105011553e0ffec38a7451027d8fd1 /sw/source/filter/ww8/rtfattributeoutput.cxx
parentRTF import: handle \sautoupd (diff)
downloadcore-a936658e6cd92d8f073227cd5c586bcecc7124e0.tar.gz
core-a936658e6cd92d8f073227cd5c586bcecc7124e0.zip
RTF export: handle \sautoupd
Change-Id: Ifddb3fda827aef0a95649bf074dad7d9cc797edb
Diffstat (limited to 'sw/source/filter/ww8/rtfattributeoutput.cxx')
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index 191bff0f2421..83ef2bad3444 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -1016,7 +1016,7 @@ void RtfAttributeOutput::DefaultStyle(sal_uInt16 /*nStyle*/)
void RtfAttributeOutput::StartStyle(const OUString& rName, StyleType eType,
sal_uInt16 nBase, sal_uInt16 nNext, sal_uInt16 /*nWwId*/, sal_uInt16 nId,
- bool /* bAutoUpdate */)
+ bool bAutoUpdate)
{
SAL_INFO("sw.rtf", OSL_THIS_FUNC << ", rName = '" << rName << "'");
@@ -1036,6 +1036,9 @@ void RtfAttributeOutput::StartStyle(const OUString& rName, StyleType eType,
m_aStylesheet.append(OOO_STRING_SVTOOLS_RTF_SNEXT);
m_aStylesheet.append((sal_Int32)nNext);
+ if (bAutoUpdate)
+ m_aStylesheet.append(OOO_STRING_SVTOOLS_RTF_SAUTOUPD);
+
m_rStyleName = rName;
m_nStyleId = nId;
}