diff options
Diffstat (limited to 'filter/source/msfilter')
-rw-r--r-- | filter/source/msfilter/mstoolbar.cxx | 4 | ||||
-rw-r--r-- | filter/source/msfilter/msvbahelper.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/filter/source/msfilter/mstoolbar.cxx b/filter/source/msfilter/mstoolbar.cxx index 723145ab00c4..b25884b1fc5b 100644 --- a/filter/source/msfilter/mstoolbar.cxx +++ b/filter/source/msfilter/mstoolbar.cxx @@ -86,7 +86,7 @@ void CustomToolBarImportHelper::addIcon( const uno::Reference< graphic::XGraphic CustomToolBarImportHelper::CustomToolBarImportHelper( SfxObjectShell& rDocShell, const css::uno::Reference< css::ui::XUIConfigurationManager>& rxAppCfgMgr ) : mrDocSh( rDocShell ) { m_xCfgSupp.set( mrDocSh.GetModel(), uno::UNO_QUERY_THROW ); - m_xAppCfgMgr.set( rxAppCfgMgr, uno::UNO_QUERY_THROW ); + m_xAppCfgMgr.set( rxAppCfgMgr, uno::UNO_SET_THROW ); } uno::Reference< ui::XUIConfigurationManager > @@ -130,7 +130,7 @@ CustomToolBarImportHelper::createMenu( const OUString& rName, const uno::Referen uno::Reference< ui::XUIConfigurationManager > xCfgManager( getCfgManager() ); OUString sMenuBar("private:resource/menubar/"); sMenuBar += rName; - uno::Reference< container::XIndexContainer > xPopup( xCfgManager->createSettings(), uno::UNO_QUERY_THROW ); + uno::Reference< container::XIndexContainer > xPopup( xCfgManager->createSettings(), uno::UNO_SET_THROW ); uno::Reference< beans::XPropertySet > xProps( xPopup, uno::UNO_QUERY_THROW ); // set name for menubar xProps->setPropertyValue("UIName", uno::makeAny( rName ) ); diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx index 3a6e0a378706..2f0f0a25b3fe 100644 --- a/filter/source/msfilter/msvbahelper.cxx +++ b/filter/source/msfilter/msvbahelper.cxx @@ -112,7 +112,7 @@ static SfxObjectShell* findShellForUrl( const OUString& sMacroURLOrPath ) OUString aName = xModel->getURL() ; if (aName.isEmpty()) { - uno::Reference< frame::XFrame > xFrame( xModel->getCurrentController()->getFrame(), uno::UNO_QUERY_THROW ); + uno::Reference< frame::XFrame > xFrame( xModel->getCurrentController()->getFrame(), uno::UNO_SET_THROW ); uno::Reference< beans::XPropertySet > xProps( xFrame, uno::UNO_QUERY_THROW ); xProps->getPropertyValue("Title") >>= aName; aName = aName.getToken(0, '-').trim(); @@ -131,7 +131,7 @@ static SfxObjectShell* findShellForUrl( const OUString& sMacroURLOrPath ) { uno::Reference< document::XDocumentProperties > const xDocProps(xDocPropSupp->getDocumentProperties(), - uno::UNO_QUERY_THROW); + uno::UNO_SET_THROW); OUString sCurrName = xDocProps->getTemplateName(); if( sMacroURLOrPath.lastIndexOf( sCurrName ) >= 0 ) { @@ -762,7 +762,7 @@ void applyShortCutKeyBinding ( const uno::Reference< frame::XModel >& rxModel, c uno::Reference< ui::XUIConfigurationManagerSupplier > xCfgSupplier(rxModel, uno::UNO_QUERY_THROW); uno::Reference< ui::XUIConfigurationManager > xCfgMgr = xCfgSupplier->getUIConfigurationManager(); - uno::Reference< ui::XAcceleratorConfiguration > xAcc( xCfgMgr->getShortCutManager(), uno::UNO_QUERY_THROW ); + uno::Reference< ui::XAcceleratorConfiguration > xAcc( xCfgMgr->getShortCutManager(), uno::UNO_SET_THROW ); if ( MacroName.isEmpty() ) // I believe this should really restore the [application] default. Since // afaik we don't actually setup application default bindings on import |