diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-23 15:49:36 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-08-27 15:40:07 +0200 |
commit | 170cfbc62549e4a74077c4ec403baf35ec4d42f6 (patch) | |
tree | 1c5f1ab911f3a899bd008ed0ba8fb3d0253269fa /chart2 | |
parent | fdo#46808, Use factory methods for frame::DispatchHelper instances (diff) | |
download | core-170cfbc62549e4a74077c4ec403baf35ec4d42f6.tar.gz core-170cfbc62549e4a74077c4ec403baf35ec4d42f6.zip |
fdo#46808, Adapt document::DocumentProperties UNO service to new style
Change-Id: I19015d3e3e9aa6e4b3b4bb011183c73ab00365ca
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/model/main/ChartModel.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index 5d20b5285209..01f2776273c3 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -57,6 +57,7 @@ #include <com/sun/star/drawing/Hatch.hpp> #include <com/sun/star/drawing/LineDash.hpp> #include <com/sun/star/drawing/XShapes.hpp> +#include <com/sun/star/document/DocumentProperties.hpp> // header for class SvNumberFormatter #include <svl/zforlist.hxx> @@ -695,10 +696,7 @@ uno::Reference< document::XDocumentProperties > SAL_CALL ::osl::MutexGuard aGuard( m_aModelMutex ); if ( !m_xDocumentProperties.is() ) { - uno::Reference< document::XDocumentProperties > xDocProps( - ::comphelper::getProcessServiceFactory()->createInstance( - C2U("com.sun.star.document.DocumentProperties") ), uno::UNO_QUERY ); - m_xDocumentProperties.set(xDocProps); + m_xDocumentProperties.set( document::DocumentProperties::create( ::comphelper::getProcessComponentContext() ) ); } return m_xDocumentProperties; } |