tdf#125719 sw: rtf: refactor associated character properties
commitfd95fb975b754d71d3750e85431a4e596a40e659
authorSerge Krot <Serge.Krot@cib.de>
Thu, 30 May 2019 13:33:29 +0000 (30 15:33 +0200)
committerThorsten Behrens <Thorsten.Behrens@CIB.de>
Thu, 6 Jun 2019 12:20:44 +0000 (6 14:20 +0200)
treeae0e9afd2016a6e95c8a6190403f6cee7592a647
parent50696615fa8698ba18f9afc05202acd0a5a24cf8
tdf#125719 sw: rtf: refactor associated character properties

1. \rtlch, \ltrch should be placed before their properties.
2. Do not mix associated and normal character properties in output.
3. Do not output empty "\rtlch \ltrch", "\ltrch \rtlch" pairs.
4. Handle associated character properties runs instead of
handling separately their parts without order of them.

Change-Id: Ibbf7365d04708682a5f1eb664a579c60a47465d2
Reviewed-on: https://gerrit.libreoffice.org/72578
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
sw/qa/extras/rtfexport/data/tdf125719_case_1.rtf [new file with mode: 0644]
sw/qa/extras/rtfexport/data/tdf125719_case_2.rtf [new file with mode: 0644]
sw/qa/extras/rtfexport/rtfexport3.cxx
sw/source/filter/ww8/rtfattributeoutput.cxx
sw/source/filter/ww8/rtfattributeoutput.hxx
sw/source/filter/ww8/rtfsdrexport.cxx
writerfilter/source/rtftok/rtfdispatchflag.cxx
writerfilter/source/rtftok/rtfdispatchvalue.cxx
writerfilter/source/rtftok/rtfdocumentimpl.cxx
writerfilter/source/rtftok/rtfdocumentimpl.hxx