diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-09-05 14:55:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-05 14:56:19 +0200 |
commit | 24391f605703bda1bcfa99ef06e5a73c6b52d267 (patch) | |
tree | 3a4cf9732c8a8c82b56cdc038e5dfda857cdc518 /forms/source/helper | |
parent | 1c7a54e3a14ad932e68b9281420e6c469e5dd2e5 (diff) |
Some clean up of previous commit
Change-Id: I14097acf09e9663af7d7abc5f0c9d481880ecc51
Diffstat (limited to 'forms/source/helper')
-rw-r--r-- | forms/source/helper/commanddescriptionprovider.cxx | 4 | ||||
-rw-r--r-- | forms/source/helper/commandimageprovider.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
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( |