summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-23 15:49:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-27 15:40:07 +0200
commit170cfbc62549e4a74077c4ec403baf35ec4d42f6 (patch)
tree1c5f1ab911f3a899bd008ed0ba8fb3d0253269fa /reportdesign
parentf789715a414bd1115401f93d11f09260f891956c (diff)
fdo#46808, Adapt document::DocumentProperties UNO service to new style
Change-Id: I19015d3e3e9aa6e4b3b4bb011183c73ab00365ca
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/api/ReportDefinition.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index e67d75c18caa..41adfc60c476 100644
--- a/reportdesign/source/core/api/ReportDefinition.cxx
+++ b/reportdesign/source/core/api/ReportDefinition.cxx
@@ -48,6 +48,7 @@
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/beans/XMultiPropertyStates.hpp>
#include <com/sun/star/chart2/data/DatabaseDataProvider.hpp>
+#include <com/sun/star/document/DocumentProperties.hpp>
#include <com/sun/star/document/EventObject.hpp>
#include <com/sun/star/document/XEventListener.hpp>
#include <com/sun/star/document/XExporter.hpp>
@@ -2845,11 +2846,7 @@ uno::Reference< document::XDocumentProperties > SAL_CALL OReportDefinition::getD
::connectivity::checkDisposed(ReportDefinitionBase::rBHelper.bDisposed);
if ( !m_pImpl->m_xDocumentProperties.is() )
{
- uno::Reference< lang::XInitialization > xDocProps(
- m_aProps->m_xContext->getServiceManager()->createInstanceWithContext(
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.DocumentProperties")) ,m_aProps->m_xContext),
- uno::UNO_QUERY_THROW);
- m_pImpl->m_xDocumentProperties.set(xDocProps, uno::UNO_QUERY_THROW);
+ m_pImpl->m_xDocumentProperties.set(document::DocumentProperties::create(m_aProps->m_xContext));
}
return m_pImpl->m_xDocumentProperties;
}