diff options
Diffstat (limited to 'cui/source/customize/selector.cxx')
-rw-r--r-- | cui/source/customize/selector.cxx | 14 |
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( |