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 /dbaccess/source/ui | |
parent | f789715a414bd1115401f93d11f09260f891956c (diff) |
fdo#46808, Adapt document::DocumentProperties UNO service to new style
Change-Id: I19015d3e3e9aa6e4b3b4bb011183c73ab00365ca
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/misc/TokenWriter.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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 <com/sun/star/awt/FontStrikeout.hpp> #include <com/sun/star/awt/FontSlant.hpp> #include <com/sun/star/awt/FontUnderline.hpp> -#include <com/sun/star/document/XDocumentProperties.hpp> +#include <com/sun/star/document/DocumentProperties.hpp> #include <svtools/htmlkywd.hxx> #include <svtools/rtfkeywd.hxx> #include <tools/color.hxx> @@ -730,9 +730,7 @@ void OHTMLImportExport::WriteHeader() { RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "misc", "Ocke.Janssen@sun.com", "OHTMLImportExport::WriteHeader" ); uno::Reference<document::XDocumentProperties> 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); } |