summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorYousuf Philips <philipz85@hotmail.com>2016-08-06 14:34:40 +0400
committerYousuf Philips <philipz85@hotmail.com>2016-08-13 12:21:46 +0000
commitb13974b474ea3fd41c8eab1d21d26a79110c0be9 (patch)
tree814cff803352e1c94c8e2aeba1038a6d21fa60c5 /framework
parent64ff7453408e578b95073db1740bfef4f500a2e4 (diff)
Add Export... function to save split button menu
Change-Id: Iae47e0f671eed78923e3b97ef4bac65327458b41 Reviewed-on: https://gerrit.libreoffice.org/27924 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uielement/saveasmenucontroller.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/framework/source/uielement/saveasmenucontroller.cxx b/framework/source/uielement/saveasmenucontroller.cxx
index dd1566c932df..f591c405accc 100644
--- a/framework/source/uielement/saveasmenucontroller.cxx
+++ b/framework/source/uielement/saveasmenucontroller.cxx
@@ -86,11 +86,16 @@ void SaveAsMenuController::impl_setPopupMenu()
pVCLPopupMenu->InsertItem( ".uno:SaveAs", m_xFrame );
- // Add Save As Template/Save Remote File commands only where they are supported.
+ OUString sExportTo(".uno:ExportTo");
+ if (isCommandAvailable(sExportTo))
+ pVCLPopupMenu->InsertItem( sExportTo, m_xFrame );
+
OUString sSaveAsTemplate(".uno:SaveAsTemplate");
if (isCommandAvailable(sSaveAsTemplate))
pVCLPopupMenu->InsertItem( sSaveAsTemplate, m_xFrame );
+ pVCLPopupMenu->InsertSeparator();
+
OUString sSaveRemote(".uno:SaveAsRemote");
if (isCommandAvailable(sSaveRemote))
pVCLPopupMenu->InsertItem( sSaveRemote, m_xFrame );