diff options
author | Henning Brinkmann <hbrinkm@openoffice.org> | 2009-07-22 12:51:29 +0200 |
---|---|---|
committer | Henning Brinkmann <hbrinkm@openoffice.org> | 2009-07-22 12:51:29 +0200 |
commit | 47018dc78834a7fb98a6b10d657bb680b56fa828 (patch) | |
tree | 1b91bb8862fff9f38e87a064c651c0fadb2b1d90 /writerfilter/unocomponent/debugservices | |
parent | 235cea0dd1033f42933efcb494510a58606b7a6c (diff) |
merging changes form writerfilter07
Diffstat (limited to 'writerfilter/unocomponent/debugservices')
-rw-r--r-- | writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx b/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx index efe03491db7d..410d2d2fcae6 100644 --- a/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx +++ b/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx @@ -71,6 +71,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> @@ -98,6 +99,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); @@ -143,6 +150,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 |