sfx2/source/control/unoctitm.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit d5dccc8780c737c0f23164fd98669303e61ba737 Author: Gökay Şatır <[email protected]> AuthorDate: Mon Mar 18 15:17:32 2024 +0300 Commit: Miklos Vajna <[email protected]> CommitDate: Wed Mar 27 16:57:06 2024 +0100 Allow export commands in readonly view mode. (cherry picked from commit 5c8c5db55e082eed3422e3fb9455943b2f285253) Change-Id: I88e9a45fd9e5c7b6bf1984a424e36b010aaaff4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165389 Tested-by: Jenkins Reviewed-by: Miklos Vajna <[email protected]> diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index f8c62b3dae19..d81b191d8623 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -544,7 +544,10 @@ static bool isCommandAllowedForViewType(const OUString& command) u"LayoutStatus"_ustr, u"ToolbarMode"_ustr, u"ChangeTheme"_ustr, - u"CopyHyperlinkLocation"_ustr + u"CopyHyperlinkLocation"_ustr, + u"ExportDirectToPDF"_ustr, + u"ExportToPDF"_ustr, + u"ExportToEPUB"_ustr }; bool allowed = std::find(std::begin(allowedCommandList), std::end(allowedCommandList), command) != std::end(allowedCommandList);
