diff options
author | Noel Grandin <noel@peralex.com> | 2013-02-11 15:59:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-03-04 10:13:18 +0200 |
commit | fcd01fba69db6de6cfc983fae65b6ba6764de0d6 (patch) | |
tree | 501c6598058b5fb3828feb416d6d40ddda4320d7 /svtools | |
parent | 929baa03c33084eaca51e02a131cc835048543c4 (diff) |
fdo#46808, create IDL for awt::tree::DefaultTreeDataModel
The service already existed.
Change-Id: I2acf73b772a7e9cbcb8915561f19c32768459f5c
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/treecontrolpeer.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx index 186490c6135a..809cf61c83ba 100644 --- a/svtools/source/uno/treecontrolpeer.cxx +++ b/svtools/source/uno/treecontrolpeer.cxx @@ -22,6 +22,8 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/DisposedException.hpp> #include <com/sun/star/view/SelectionType.hpp> +#include <com/sun/star/awt/tree/DefaultTreeDataModel.hpp> + #include <toolkit/helper/property.hxx> #include <toolkit/helper/vclunohelper.hxx> @@ -1229,12 +1231,8 @@ void TreeControlPeer::onChangeDataModel( UnoTreeListBoxImpl& rTree, const Refere if( !xDataModel.is() ) { - static const OUString aSN( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.tree.DefaultTreeDataModel" ) ); - Reference< XMultiServiceFactory > xORB( ::comphelper::getProcessServiceFactory() ); - if( xORB.is() ) - { - mxDataModel.query( xORB->createInstance( aSN ) ); - } + Reference< XComponentContext > xORB( ::comphelper::getProcessComponentContext() ); + mxDataModel.query( DefaultTreeDataModel::create(xORB)); } mxDataModel = xDataModel; |