summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
authorGökay Şatır <gokaysatir@gmail.com>2024-03-18 15:17:32 +0300
committerMiklos Vajna <vmiklos@collabora.com>2024-03-27 16:57:06 +0100
commitd5dccc8780c737c0f23164fd98669303e61ba737 (patch)
tree43f143105a7129a22c657056f9a1d1bed1f60e9d /sfx2/source/control
parent207876cdcd7a4c19940d769a52d118751059dfe0 (diff)
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 <vmiklos@collabora.com>
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/unoctitm.cxx5
1 files changed, 4 insertions, 1 deletions
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);