diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2015-07-08 23:17:53 +0200 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2015-07-16 09:53:34 +0200 |
commit | 548313840238eb3dcbdeb2bcfeec3fbdd9c293f7 (patch) | |
tree | 3b493dc8962e6bfcace55be31cea08ea76855119 /framework | |
parent | 92f32585708a251526492f1eb576744bee8d5a5f (diff) |
Working toolbar entry: Save As > Remote file
Change-Id: I5601c7847f30a7d5fb7ede5f90b2a6a89f4c8693
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/saveasmenucontroller.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/source/uielement/saveasmenucontroller.cxx b/framework/source/uielement/saveasmenucontroller.cxx index 7e4fd92db865..646001397ba7 100644 --- a/framework/source/uielement/saveasmenucontroller.cxx +++ b/framework/source/uielement/saveasmenucontroller.cxx @@ -41,7 +41,7 @@ using namespace framework; namespace { -static const char CMD_SAVE_REMOTE[] = ".uno:OpenRemote"; // TODO +static const char CMD_SAVE_REMOTE[] = ".uno:SaveAsRemote"; class SaveAsMenuController : public svt::PopupMenuControllerBase { @@ -115,9 +115,9 @@ void SaveAsMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& rPo if ( pVCLPopupMenu ) { // Open remote menu entry - pVCLPopupMenu->InsertItem( sal_uInt16( 0 ), + pVCLPopupMenu->InsertItem( sal_uInt16( 1 ), FWK_RESSTR( STR_REMOTE_FILE ) ); - pVCLPopupMenu->SetItemCommand( sal_uInt16( 0 ), + pVCLPopupMenu->SetItemCommand( sal_uInt16( 1 ), OUString( CMD_SAVE_REMOTE ) ); } } @@ -160,6 +160,7 @@ void SAL_CALL SaveAsMenuController::itemSelected( const css::awt::MenuEvent& rEv if ( aCommand == CMD_SAVE_REMOTE ) { Sequence< PropertyValue > aArgsList( 0 ); + dispatchCommand( CMD_SAVE_REMOTE, aArgsList ); } } |