sc: filter: rtf: use a separate document stream
commit98321ad324d386a9ad14a428fae949c3d7f5e3d3
authorHenry Castro <hcastro@collabora.com>
Tue, 25 Jul 2023 19:18:10 +0000 (25 15:18 -0400)
committerHenry Castro <hcastro@collabora.com>
Wed, 2 Aug 2023 14:06:31 +0000 (2 16:06 +0200)
treec39efc5eb22316113fe26529cb2b2ffdcc9dc256
parenta3a00555d4b0e07ee921f85ac088e7b17047c6cf
sc: filter: rtf: use a separate document stream

"An RTF file has the following syntax:
'{' <header> <document>'}' "

In order to build the header:

<header>
\rtf <charset> \deff? <fonttbl> <filetbl>? <colortbl>? <stylesheet>? <listtables>? <revtbl>?

The font table should be created while visiting the column/rows.

Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: Id72a3c87acab6cfc7889cf81f7e83a0d73e378a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154903
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155258
sc/source/filter/inc/rtfexp.hxx
sc/source/filter/rtf/rtfexp.cxx