sw: fix merge mail to direct export as pdf
commit1e007e8f1703851b01c68884e87c906f6bae5a5e
authorHenry Castro <hcastro@collabora.com>
Tue, 18 Oct 2022 21:08:36 +0000 (18 17:08 -0400)
committerMiklos Vajna <vmiklos@collabora.com>
Fri, 4 Nov 2022 07:41:06 +0000 (4 08:41 +0100)
tree833ebb55d38837f7d17f9418e4e7318af0a5c029
parentfb8d94e77f16e0f9d3af42d64756bd771de9d17c
sw: fix merge mail to direct export as pdf

In order to export directly to PDF, the document
must remove the hidden sections (if format condition),
the data source should stay on current selected
record finally restore the hidden sections.

Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: Idf8e2a26d5c9cbe61ddac6c35cc2e1df1175da27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141520
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
sfx2/source/doc/objserv.cxx