summaryrefslogtreecommitdiff
path: root/writerfilter/unocomponent/debugservices
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/unocomponent/debugservices')
-rw-r--r--writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx b/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx
index 8fa44b224aa5..7a3f80ea22d9 100644
--- a/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx
+++ b/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx
@@ -64,6 +64,7 @@
#include <com/sun/star/text/XTextDocument.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <ooxml/OOXMLDocument.hxx>
+#include <resourcemodel/TagLogger.hxx>
#include <ctype.h>
@@ -91,6 +92,12 @@ sal_Int32 SAL_CALL ScannerTestService::run( const uno::Sequence< rtl::OUString >
uno::Reference<lang::XMultiComponentFactory> xFactory(xContext->getServiceManager(), uno::UNO_QUERY_THROW );
if (::ucbhelper::ContentBroker::initialize(xServiceFactory, aUcbInitSequence))
{
+#ifdef DEBUG_ELEMENT
+ writerfilter::TagLogger::Pointer_t debugLogger
+ (writerfilter::TagLogger::getInstance("DEBUG"));
+ debugLogger->startDocument();
+#endif
+
rtl::OUString arg=aArguments[0];
::comphelper::setProcessServiceFactory(xServiceFactory);
@@ -136,6 +143,11 @@ sal_Int32 SAL_CALL ScannerTestService::run( const uno::Sequence< rtl::OUString >
Stream::Pointer_t pStream = createStreamHandler();
pDocument->resolve(*pStream);
+#ifdef DEBUG_ELEMENT
+ writerfilter::TagLogger::dump("DEBUG");
+ debugLogger->endDocument();
+#endif
+
::ucbhelper::ContentBroker::deinitialize();
}
else