I worked on this mainly to see what the impact of the
docx changes would be on RTF.
It seemed to be OK. This patch shows that RTF
can now import gradient page backgrounds.
It does NOT import image backgrounds
(at least no the ones I tested)
because they were specified as
XML_sn: fillBlip
XML_sv: <shape_as_text_string>
which is an unknown property in RTFSdrImport::resolve.
The only fill type that RTFSdrImport::resolve knows about
is XML_gradient.
The only existing unit test I noted was
page-background.rtf
Change-Id: Ie40b91468d21b29a102472c859cd1eecfcb2a5f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163199
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Import Filters for LibreOffice Writer
The writerfilter module contains import filters for Writer, using its UNO API.
Import filter for DOCX and RTF.
-
Module contents
documentation: RNG schema for the OOXML tokenizer, etc.inc: module-global headers (can be included by any files under source)qa:cppunittestssource: the filters themselvesutil: UNO passive registration config
-
Source contents
dmapper: the domain mapper, hiding UNO from the tokenizers, used by DOCX and RTF import- The incoming traffic of
dmappercan be dumped into an XML file in/tmpindbgutilbuilds, start soffice with theSW_DEBUG_WRITERFILTER=1environment variable if you want that.
- The incoming traffic of
filter: the UNO filter service implementations, invoked by UNO and calling the dmapper + one of the tokenizersooxml: the docx tokenizerrtftok: the rtf tokenizer