summaryrefslogtreecommitdiff
path: root/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-11-05 09:44:23 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-11-05 09:49:13 +0100
commita0796a641224adb15be153b7b0a94ccd788daf65 (patch)
tree6f2e1bb5349a34b956edf78e3d66ba5a826893fb /writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx
parent33973b8185b2808fe1e158aa2cd6b68d657fd9ce (diff)
writerfilter: drop debugservices uno component
I tried to ask all developers hacking writerfilter, and seems none of us use this at all. Change-Id: I46e59c49c47ec829e5e84cb814e515bf2e8cdafb
Diffstat (limited to 'writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx')
-rw-r--r--writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx126
1 files changed, 0 insertions, 126 deletions
diff --git a/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx b/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx
deleted file mode 100644
index 4d1335b749bd..000000000000
--- a/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx
+++ /dev/null
@@ -1,126 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <cppuhelper/implbase1.hxx>
-#include <com/sun/star/lang/XMain.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
-
-#include "OOXMLTestService.hxx"
-#include <stdio.h>
-#include <wchar.h>
-#include <com/sun/star/io/XStream.hpp>
-#include <com/sun/star/io/XInputStream.hpp>
-#include <com/sun/star/io/XSeekable.hpp>
-#include <com/sun/star/io/XTruncate.hpp>
-#include <com/sun/star/task/XStatusIndicator.hpp>
-#include <com/sun/star/container/XNameContainer.hpp>
-#include <com/sun/star/ucb/SimpleFileAccess.hpp>
-#include <com/sun/star/ucb/XSimpleFileAccess2.hpp>
-#include <osl/process.h>
-#include <rtl/string.hxx>
-#include <boost/unordered_set.hpp>
-#include <assert.h>
-#include <cppuhelper/implbase2.hxx>
-#include <cppuhelper/bootstrap.hxx>
-#include <com/sun/star/embed/XTransactedObject.hpp>
-#include <com/sun/star/embed/XStorage.hpp>
-#include <com/sun/star/util/XCloseable.hpp>
-#include <comphelper/storagehelper.hxx>
-#include <com/sun/star/beans/PropertyValue.hpp>
-#include <com/sun/star/beans/XPropertySet.hpp>
-#include <comphelper/seqstream.hxx>
-#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>
-
-using namespace ::com::sun::star;
-
-namespace writerfilter { namespace ooxmltest {
-
-const sal_Char ScannerTestService::SERVICE_NAME[40] = "debugservices.ooxml.ScannerTestService";
-const sal_Char ScannerTestService::IMPLEMENTATION_NAME[40] = "debugservices.ooxml.ScannerTestService";
-
-
-
-
-ScannerTestService::ScannerTestService(const uno::Reference< uno::XComponentContext > &xContext_) :
-xContext( xContext_ )
-{
-}
-
-sal_Int32 SAL_CALL ScannerTestService::run( const uno::Sequence< OUString >& aArguments ) throw (uno::RuntimeException)
-{
-#ifdef DEBUG_ELEMENT
- writerfilter::TagLogger::Pointer_t debugLogger
- (writerfilter::TagLogger::getInstance("DEBUG"));
- debugLogger->startDocument();
-#endif
-
- OUString arg=aArguments[0];
-
- uno::Reference<ucb::XSimpleFileAccess2> xFileAccess(ucb::SimpleFileAccess::create(xContext));
-
- rtl_uString *dir=NULL;
- osl_getProcessWorkingDir(&dir);
- OUString absFileUrl;
- osl_getAbsoluteFileURL(dir, arg.pData, &absFileUrl.pData);
- rtl_uString_release(dir);
-
- uno::Reference<io::XInputStream> xInputStream =
- xFileAccess->openFileRead(absFileUrl);
- ooxml::OOXMLStream::Pointer_t pDocStream =
- ooxml::OOXMLDocumentFactory::createStream(xContext, xInputStream, false);
-
- ooxml::OOXMLDocument::Pointer_t pDocument
- (ooxml::OOXMLDocumentFactory::createDocument(pDocStream));
-
- Stream::Pointer_t pStream = createStreamHandler();
- pDocument->resolve(*pStream);
-
-#ifdef DEBUG_ELEMENT
- debugLogger->endDocument();
-#endif
-
- return 0;
-}
-
-OUString ScannerTestService_getImplementationName ()
-{
- return OUString(ScannerTestService::IMPLEMENTATION_NAME );
-}
-
-uno::Sequence< OUString > SAL_CALL ScannerTestService_getSupportedServiceNames( ) throw (uno::RuntimeException)
-{
- uno::Sequence < OUString > aRet(1);
- OUString* pArray = aRet.getArray();
- pArray[0] = OUString(ScannerTestService::SERVICE_NAME );
- return aRet;
-}
-
-uno::Reference< uno::XInterface > SAL_CALL ScannerTestService_createInstance( const uno::Reference< uno::XComponentContext > & xContext) throw( uno::Exception )
-{
- return (cppu::OWeakObject*) new ScannerTestService( xContext );
-}
-
-} } /* end namespace writerfilter::ooxml */
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */