lok: add batch mode option to load the document
commita207551215ca4d7445bf129a3f6863418d75383e
authorHenry Castro <hcastro@collabora.com>
Wed, 17 Feb 2021 20:47:27 +0000 (17 16:47 -0400)
committerHenry Castro <hcastro@collabora.com>
Wed, 3 Mar 2021 18:27:41 +0000 (3 19:27 +0100)
tree938c161ea2851a9b63d67a0a2b7c593fb2ae18f6
parent3c9936a9b77fe18396d048de2f97b9e8eb66a787
lok: add batch mode option to load the document

When the LibreOffice Kit is active by default is
set to headless mode, with the flag "DialogCancelMode::Silent",
according to the documentation it should close the dialog,
but it was changed for dialog tunneling.

However the dialog tunneling is being deprecated, and
in order to not produce any regression, it will be used
temporary a new state "DialogCancelMode::LOKSilent", to disable
any dialog interactivity.

Change-Id: I3b6cce38c37f75dc1b24dda352f6caec19438ff1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111087
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 5f3fbb019bd79bd57eed94e01bd2202efd9a0c06)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111319
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
desktop/source/lib/init.cxx
include/vcl/svapp.hxx
vcl/source/window/dialog.cxx