[Libreoffice-commits] core.git: framework/source
Yousuf Philips
philipz85 at hotmail.com
Sat Aug 13 12:22:07 UTC 2016
framework/source/uielement/saveasmenucontroller.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit b13974b474ea3fd41c8eab1d21d26a79110c0be9
Author: Yousuf Philips <philipz85 at hotmail.com>
Date: Sat Aug 6 14:34:40 2016 +0400
Add Export... function to save split button menu
Change-Id: Iae47e0f671eed78923e3b97ef4bac65327458b41
Reviewed-on: https://gerrit.libreoffice.org/27924
Reviewed-by: Yousuf Philips <philipz85 at hotmail.com>
Tested-by: Yousuf Philips <philipz85 at hotmail.com>
diff --git a/framework/source/uielement/saveasmenucontroller.cxx b/framework/source/uielement/saveasmenucontroller.cxx
index dd1566c..f591c40 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 );
More information about the Libreoffice-commits
mailing list