Kaydet (Commit) 91582427 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

Save Remote File isn't supported in all modules

so don't add it there to the save dropdown.

Change-Id: Iee604cc15616080266f7192ac451f04830ba1bb8
(cherry picked from commit 5a3b930b)
üst f58e7753
...@@ -83,7 +83,19 @@ void SaveAsMenuController::impl_setPopupMenu() ...@@ -83,7 +83,19 @@ void SaveAsMenuController::impl_setPopupMenu()
if ( pVCLPopupMenu ) if ( pVCLPopupMenu )
{ {
pVCLPopupMenu->InsertItem( ".uno:SaveAs", m_xFrame ); pVCLPopupMenu->InsertItem( ".uno:SaveAs", m_xFrame );
pVCLPopupMenu->InsertItem( ".uno:SaveAsRemote", m_xFrame );
// Add Save Remote File command only where it's supported.
css::uno::Reference< css::frame::XDispatchProvider > xDispatchProvider( m_xFrame, css::uno::UNO_QUERY );
if ( xDispatchProvider.is() )
{
css::util::URL aTargetURL;
aTargetURL.Complete = ".uno:SaveAsRemote";
m_xURLTransformer->parseStrict( aTargetURL );
css::uno::Reference< css::frame::XDispatch > xDispatch( xDispatchProvider->queryDispatch( aTargetURL, OUString(), 0 ) );
if ( xDispatch.is() )
pVCLPopupMenu->InsertItem( aTargetURL.Complete, m_xFrame );
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment