summaryrefslogtreecommitdiffstats
path: root/sw/source/filter/ww8/rtfattributeoutput.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-04-20 10:21:12 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-20 10:56:24 +0200
commita2fea109e6454b10e8e85148b93bdca89066fe8d (patch)
tree399e53d21bab2253af65e49e70142062f928edf9 /sw/source/filter/ww8/rtfattributeoutput.cxx
parentRTF import: handle \hyphpar (diff)
downloadcore-a2fea109e6454b10e8e85148b93bdca89066fe8d.tar.gz
core-a2fea109e6454b10e8e85148b93bdca89066fe8d.zip
RtfAttributeOutput::ParaHyphenZone: use \hyphpar
Previously SvxHyphenZoneItem was serialized to some custom RTF extension that even our own RTF import ignores since LO 3.5. Change-Id: Ia99d9750ad0b1a07105eeef2bee07e6fdbfe7876
Diffstat (limited to 'sw/source/filter/ww8/rtfattributeoutput.cxx')
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index 4f7ce74f8a83..c05aacf0d3a0 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -2663,20 +2663,8 @@ void RtfAttributeOutput::ParaTabStop(const SvxTabStopItem& rTabStop)
void RtfAttributeOutput::ParaHyphenZone(const SvxHyphenZoneItem& rHyphenZone)
{
- sal_Int32 nFlags = rHyphenZone.IsHyphen() ? 1 : 0;
- if (rHyphenZone.IsPageEnd())
- nFlags += 2;
- m_aStyles.append('{');
- m_aStyles.append(OOO_STRING_SVTOOLS_RTF_IGNORE);
- m_aStyles.append(OOO_STRING_SVTOOLS_RTF_HYPHEN);
- m_aStyles.append((sal_Int32)nFlags);
- m_aStyles.append(OOO_STRING_SVTOOLS_RTF_HYPHLEAD);
- m_aStyles.append((sal_Int32)rHyphenZone.GetMinLead());
- m_aStyles.append(OOO_STRING_SVTOOLS_RTF_HYPHTRAIL);
- m_aStyles.append((sal_Int32)rHyphenZone.GetMinTrail());
- m_aStyles.append(OOO_STRING_SVTOOLS_RTF_HYPHMAX);
- m_aStyles.append((sal_Int32)rHyphenZone.GetMaxHyphens());
- m_aStyles.append('}');
+ m_aStyles.append(OOO_STRING_SVTOOLS_RTF_HYPHPAR);
+ m_aStyles.append(int(rHyphenZone.IsHyphen()));
}
void RtfAttributeOutput::ParaNumRule_Impl(const SwTxtNode* pTxtNd, sal_Int32 nLvl, sal_Int32 nNumId)