summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfdocumentimpl.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-04-20 10:14:19 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-20 10:56:23 +0200
commita3ec386c2283a196f8d9f1edd0ff97c38ddb281a (patch)
tree372d893e9ccb5f49f00aeab10f189047a2b9e217 /writerfilter/source/rtftok/rtfdocumentimpl.cxx
parent9c50c39fb4410d966d12aee915f6dc9ed53d0211 (diff)
RTF import: handle \hyphpar
Change-Id: I2a1d0e194af6eb5fb865d3ed26712eed09a3b28f
Diffstat (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index dd873fe88755..d8e5d6ab9fb8 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -4890,6 +4890,9 @@ RTFError RTFDocumentImpl::dispatchToggle(RTFKeyword nKeyword, bool bParam, int n
case RTF_HYPHAUTO:
m_aSettingsTableSprms.set(NS_ooxml::LN_CT_Settings_autoHyphenation, pBoolValue);
break;
+ case RTF_HYPHPAR:
+ m_aStates.top().aParagraphSprms.set(NS_ooxml::LN_CT_PPrBase_suppressAutoHyphens, std::make_shared<RTFValue>(int(bParam && nParam == 0)));
+ break;
default:
{
SAL_INFO("writerfilter", "TODO handle toggle '" << lcl_RtfToString(nKeyword) << "'");