summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-28 13:50:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-03 15:55:04 +0200
commit278379697d82e4b4a3204e82fcdababebe2340f3 (patch)
treeee847794cdd14bbb11e11c5d2269213cdb2719aa /filter
parent9b07288138228af56e58f50dc6ba50865b52fdfb (diff)
fdo#46808, Adapt io::Pipe UNO service to new style
Create a merged XPipe interface for this service to implement. Which is backwards-compatible, but does not require creating a new service. Change-Id: I682633c6252aab503eb2469c9bd2ba771f10bc4b
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xsltfilter/XSLTFilter.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx
index 6acc1168ef70..4ebabc7846c4 100644
--- a/filter/source/xsltfilter/XSLTFilter.cxx
+++ b/filter/source/xsltfilter/XSLTFilter.cxx
@@ -62,6 +62,7 @@
#include <com/sun/star/util/XMacroExpander.hpp>
+#include <com/sun/star/io/Pipe.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/io/XOutputStream.hpp>
#include <com/sun/star/io/XActiveDataSource.hpp>
@@ -342,11 +343,8 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False)
tsink->setInputStream(xInputStream);
// create pipe
- css::uno::Reference<XOutputStream>
- pipeout(
- m_rServiceFactory->createInstance(
- OUString(
- "com.sun.star.io.Pipe" )),
+ css::uno::Reference<XOutputStream> pipeout(
+ Pipe::create(comphelper::ComponentContext(m_rServiceFactory).getUNOContext()),
UNO_QUERY);
css::uno::Reference<XInputStream> pipein(pipeout, UNO_QUERY);
@@ -498,11 +496,8 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False)
m_tcontrol->addListener(css::uno::Reference<XStreamListener> (this));
// create pipe
- css::uno::Reference<XOutputStream>
- pipeout(
- m_rServiceFactory->createInstance(
- OUString(
- "com.sun.star.io.Pipe" )),
+ css::uno::Reference<XOutputStream> pipeout(
+ Pipe::create(comphelper::ComponentContext(m_rServiceFactory).getUNOContext()),
UNO_QUERY);
css::uno::Reference<XInputStream> pipein(pipeout, UNO_QUERY);