summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-01-28 15:27:32 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-01-28 18:52:22 +0100
commitba8413d2629352b1e5defaf154498856580e4651 (patch)
tree1fe88fed9227b84da0d44ee840cdd56b3418fc56 /forms
parentb2c89e7236d71d92a96430db0a7eca14b41c227a (diff)
Introduce com.sun.star.frame.theUICommandDescription singleton.
Change-Id: Ic88cca3722d555ba48d7da8c176556fa1ff90650
Diffstat (limited to 'forms')
-rw-r--r--forms/source/helper/commanddescriptionprovider.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/helper/commanddescriptionprovider.cxx b/forms/source/helper/commanddescriptionprovider.cxx
index b1edc2a216c6..045fe585a371 100644
--- a/forms/source/helper/commanddescriptionprovider.cxx
+++ b/forms/source/helper/commanddescriptionprovider.cxx
@@ -23,7 +23,7 @@
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/frame/ModuleManager.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
-#include <com/sun/star/frame/UICommandDescription.hpp>
+#include <com/sun/star/frame/theUICommandDescription.hpp>
#include <comphelper/namedvaluecollection.hxx>
#include <tools/diagnose_ex.h>
@@ -50,7 +50,7 @@ namespace frm
using ::com::sun::star::frame::ModuleManager;
using ::com::sun::star::frame::XModuleManager2;
using ::com::sun::star::beans::PropertyValue;
- using ::com::sun::star::frame::UICommandDescription;
+ using ::com::sun::star::frame::theUICommandDescription;
//====================================================================
//= DefaultCommandDescriptionProvider
@@ -90,7 +90,7 @@ namespace frm
Reference< XModuleManager2 > xModuleManager( ModuleManager::create(_rxContext) );
OUString sModuleID = xModuleManager->identify( _rxDocument );
- Reference< XNameAccess > xUICommandDescriptions( UICommandDescription::create(_rxContext) );
+ Reference< XNameAccess > xUICommandDescriptions( theUICommandDescription::get(_rxContext) );
m_xCommandAccess.set( xUICommandDescriptions->getByName( sModuleID ), UNO_QUERY_THROW );
}
catch( const Exception& )