From 24391f605703bda1bcfa99ef06e5a73c6b52d267 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 5 Sep 2012 14:55:34 +0200 Subject: Some clean up of previous commit Change-Id: I14097acf09e9663af7d7abc5f0c9d481880ecc51 --- forms/source/helper/commanddescriptionprovider.cxx | 4 ++-- forms/source/helper/commandimageprovider.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'forms/source/helper') diff --git a/forms/source/helper/commanddescriptionprovider.cxx b/forms/source/helper/commanddescriptionprovider.cxx index 2cfe8e7d2687..900e3ceed558 100644 --- a/forms/source/helper/commanddescriptionprovider.cxx +++ b/forms/source/helper/commanddescriptionprovider.cxx @@ -49,7 +49,7 @@ namespace frm using ::com::sun::star::frame::XModel; using ::com::sun::star::container::XNameAccess; using ::com::sun::star::frame::ModuleManager; - using ::com::sun::star::frame::XModuleManager; + using ::com::sun::star::frame::XModuleManager2; using ::com::sun::star::beans::PropertyValue; using ::com::sun::star::ui::UICommandDescription; /** === end UNO using === **/ @@ -89,7 +89,7 @@ namespace frm try { - Reference< XModuleManager > xModuleManager( ModuleManager::create(_rxContext), UNO_QUERY_THROW ); + Reference< XModuleManager2 > xModuleManager( ModuleManager::create(_rxContext) ); ::rtl::OUString sModuleID = xModuleManager->identify( _rxDocument ); Reference< XNameAccess > xUICommandDescriptions( UICommandDescription::create(_rxContext) ); diff --git a/forms/source/helper/commandimageprovider.cxx b/forms/source/helper/commandimageprovider.cxx index 7925985c9393..049b0fcc0b11 100644 --- a/forms/source/helper/commandimageprovider.cxx +++ b/forms/source/helper/commandimageprovider.cxx @@ -60,7 +60,7 @@ namespace frm using ::com::sun::star::ui::XModuleUIConfigurationManagerSupplier; using ::com::sun::star::ui::ModuleUIConfigurationManagerSupplier; using ::com::sun::star::frame::ModuleManager; - using ::com::sun::star::frame::XModuleManager; + using ::com::sun::star::frame::XModuleManager2; using ::com::sun::star::graphic::XGraphic; /** === end UNO using === **/ namespace ImageType = ::com::sun::star::ui::ImageType; @@ -112,7 +112,7 @@ namespace frm // obtain the image manager or the module try { - Reference< XModuleManager > xModuleManager( ModuleManager::create(_rContext.getUNOContext()), UNO_QUERY_THROW ); + Reference< XModuleManager2 > xModuleManager( ModuleManager::create(_rContext.getUNOContext()) ); ::rtl::OUString sModuleID = xModuleManager->identify( _rxDocument ); Reference< XModuleUIConfigurationManagerSupplier > xSuppUIConfig( -- cgit