From 170cfbc62549e4a74077c4ec403baf35ec4d42f6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Aug 2012 15:49:36 +0200 Subject: fdo#46808, Adapt document::DocumentProperties UNO service to new style Change-Id: I19015d3e3e9aa6e4b3b4bb011183c73ab00365ca --- dbaccess/source/ui/misc/TokenWriter.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dbaccess/source/ui') diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx index bd83538ae270..286650f5c8a8 100644 --- a/dbaccess/source/ui/misc/TokenWriter.cxx +++ b/dbaccess/source/ui/misc/TokenWriter.cxx @@ -39,7 +39,7 @@ #include #include #include -#include +#include #include #include #include @@ -730,9 +730,7 @@ void OHTMLImportExport::WriteHeader() { RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "misc", "Ocke.Janssen@sun.com", "OHTMLImportExport::WriteHeader" ); uno::Reference xDocProps( - m_xFactory->createInstance(::rtl::OUString( - RTL_CONSTASCII_USTRINGPARAM("com.sun.star.document.DocumentProperties"))), - uno::UNO_QUERY); + document::DocumentProperties::create( comphelper::ComponentContext(m_xFactory).getUNOContext() ) ); if (xDocProps.is()) { xDocProps->setTitle(m_sName); } -- cgit