summaryrefslogtreecommitdiff
path: root/svtools
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 /svtools
parentf789715a414bd1115401f93d11f09260f891956c (diff)
fdo#46808, Adapt document::DocumentProperties UNO service to new style
Change-Id: I19015d3e3e9aa6e4b3b4bb011183c73ab00365ca
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/templwin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/contnr/templwin.cxx b/svtools/source/contnr/templwin.cxx
index 301967a7d1a5..5266ab941d54 100644
--- a/svtools/source/contnr/templwin.cxx
+++ b/svtools/source/contnr/templwin.cxx
@@ -62,7 +62,7 @@
#include <com/sun/star/ucb/XContent.hpp>
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <com/sun/star/view/XPrintable.hpp>
-#include <com/sun/star/document/XDocumentProperties.hpp>
+#include <com/sun/star/document/DocumentProperties.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XMultiPropertySet.hpp>
#include <com/sun/star/beans/XPropertySetInfo.hpp>
@@ -621,9 +621,7 @@ SvtFrameWindow_Impl::SvtFrameWindow_Impl( Window* pParent ) :
xFrame->initialize( xWindow );
// create docinfo instance
- m_xDocProps.set( ::comphelper::getProcessServiceFactory()->createInstance(
- ASCII_STR("com.sun.star.document.DocumentProperties") ),
- UNO_QUERY );
+ m_xDocProps.set( document::DocumentProperties::create(::comphelper::getProcessComponentContext()) );
pEmptyWin = new Window( this, WB_BORDER | WB_3DLOOK );
}