diff options
author | Noel Grandin <noel@peralex.com> | 2012-09-04 13:49:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-04 17:26:03 +0200 |
commit | 9738002eca0f7cba337ae856cb5bce8ba93ee293 (patch) | |
tree | bb942212ba1aa12e714710542261e12e795f5449 /sw | |
parent | af5059d19a37c6f2dffd756c579e92d30f65bc8b (diff) |
fdo#46808, Adapt drawing::ShapeCollection UNO service to new style
No client code is using the XComponent interface, so drop it.
Change-Id: Id8f6da1248da641dcc0a3cb6d0a70e3bf29e5c99
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/vba/vbaselection.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx index df31e1457eb8..641668166bfd 100644 --- a/sw/source/ui/vba/vbaselection.cxx +++ b/sw/source/ui/vba/vbaselection.cxx @@ -60,6 +60,7 @@ #include "vbaheaderfooter.hxx" #include "vbaheaderfooterhelper.hxx" #include <vbahelper/vbashaperange.hxx> +#include <com/sun/star/drawing/ShapeCollection.hpp> #include <com/sun/star/drawing/XDrawPageSupplier.hpp> #include <com/sun/star/drawing/XDrawPage.hpp> #include "vbarows.hxx" @@ -868,8 +869,7 @@ SwVbaSelection::ShapeRange( ) throw (uno::RuntimeException) if ( !xShapes.is() ) { uno::Reference< drawing::XShape > xShape( mxModel->getCurrentSelection(), uno::UNO_QUERY_THROW ); - uno::Reference< lang::XMultiServiceFactory > xMSF( mxContext->getServiceManager(), uno::UNO_QUERY_THROW ); - xShapes.set( xMSF->createInstance( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.ShapeCollection")) ), uno::UNO_QUERY_THROW ); + xShapes.set( drawing::ShapeCollection::create(mxContext), uno::UNO_QUERY_THROW ); xShapes->add( xShape ); } |