summaryrefslogtreecommitdiff
path: root/xmloff/source/xforms
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-11 13:12:07 +0200
committerNoel Grandin <noel@peralex.com>2013-01-28 08:25:24 +0200
commit77856e81ce4d279f00d0f92e917099f4f5220034 (patch)
treeb2d006504cb2cb4cf678877de5a27f1b1dbc862a /xmloff/source/xforms
parentce1b932bba8f90363399a9fa6515b91d7d679efa (diff)
fdo#46808, Adapt document::*PropertyValues UNO service to new style
The services are: document::NamedPropertyValues document::IndexedPropertyValues The services already existed, they just did not have IDL files Change-Id: Ibafe9b5afb9b30785df4f66aa923f4b96ceabeed
Diffstat (limited to 'xmloff/source/xforms')
-rw-r--r--xmloff/source/xforms/xformsexport.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/source/xforms/xformsexport.cxx b/xmloff/source/xforms/xformsexport.cxx
index 8166f37088d5..44ca5d465b7f 100644
--- a/xmloff/source/xforms/xformsexport.cxx
+++ b/xmloff/source/xforms/xformsexport.cxx
@@ -38,6 +38,7 @@
#include <tools/diagnose_ex.h>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
+#include <com/sun/star/document/NamedPropertyValues.hpp>
#include <com/sun/star/xml/dom/XDocument.hpp>
#include <com/sun/star/form/binding/XValueBinding.hpp>
#include <com/sun/star/form/binding/XBindableValue.hpp>
@@ -794,10 +795,7 @@ void getXFormsSettings( const Reference< XNameAccess >& _rXForms, Sequence< Prop
Sequence< ::rtl::OUString > aModelNames( _rXForms->getElementNames() );
- ::comphelper::ComponentContext aContext( ::comphelper::getProcessServiceFactory() );
- Reference< XNameContainer > xModelSettings(
- aContext.createComponent( "com.sun.star.document.NamedPropertyValues" ),
- UNO_QUERY_THROW );
+ Reference< XNameContainer > xModelSettings = document::NamedPropertyValues::create( comphelper::getProcessComponentContext() );
for ( const ::rtl::OUString* pModelName = aModelNames.getConstArray();
pModelName != aModelNames.getConstArray() + aModelNames.getLength();