sfx2/source/control/unoctitm.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 5c8c5db55e082eed3422e3fb9455943b2f285253
Author:     Gökay Şatır <gokaysa...@gmail.com>
AuthorDate: Mon Mar 18 15:17:32 2024 +0300
Commit:     Gökay ŞATIR <gokaysa...@collabora.com>
CommitDate: Mon Mar 18 14:41:09 2024 +0100

    Allow export commands in readonly view mode.
    
    Signed-off-by: Gökay Şatır <gokaysa...@gmail.com>
    Change-Id: I88e9a45fd9e5c7b6bf1984a424e36b010aaaff4d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164969
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>

diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 8072e1a9ad8d..59d51a8c3cf1 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);

Reply via email to