summaryrefslogtreecommitdiff
path: root/cui/source/customize/selector.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-23 18:06:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-03 15:55:03 +0200
commit7a464263cc5c2ca2b7128734ff4860e02d662818 (patch)
tree4614aa57736484cb46c8702f6afee1c2e663e8a0 /cui/source/customize/selector.cxx
parent10362695c2060f6aa48bd88f6b8dd6cfa556392a (diff)
fdo#46808, Adapt UICommandDescription UNO service to new style
Change-Id: Ibca112904f137ff981ae9be3e5bd56aa11aec352
Diffstat (limited to 'cui/source/customize/selector.cxx')
-rw-r--r--cui/source/customize/selector.cxx14
1 files changed, 3 insertions, 11 deletions
diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx
index f58aa45d3352..1da7e337b0bf 100644
--- a/cui/source/customize/selector.cxx
+++ b/cui/source/customize/selector.cxx
@@ -62,6 +62,7 @@
#include <com/sun/star/frame/XDispatchInformationProvider.hpp>
#include <com/sun/star/frame/DispatchInformation.hpp>
#include <com/sun/star/container/XChild.hpp>
+#include <com/sun/star/ui/UICommandDescription.hpp>
using ::rtl::OUString;
using namespace ::com::sun::star;
@@ -429,17 +430,8 @@ void SvxConfigGroupListBox_Impl::Init()
}catch(const uno::Exception&)
{ aModuleId = ::rtl::OUString(); }
- Reference< container::XNameAccess > xNameAccess(
- xMCF->createInstanceWithContext(
- OUString(RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.frame.UICommandDescription" )),
- xContext ),
- UNO_QUERY );
-
- if ( xNameAccess.is() )
- {
- xNameAccess->getByName( aModuleId ) >>= m_xModuleCommands;
- }
+ Reference< container::XNameAccess > xNameAccess( ui::UICommandDescription::create(xContext) );
+ xNameAccess->getByName( aModuleId ) >>= m_xModuleCommands;
Reference< container::XNameAccess > xAllCategories(
xMCF->createInstanceWithContext(