LCOV - code coverage report
Current view: top level - writerperfect/source/writer - AbiWordImportFilter.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 3 3 100.0 %
Date: 2014-11-03 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : #ifndef _ABIWORDIMPORTFILTER_HXX
      11             : #define _ABIWORDIMPORTFILTER_HXX
      12             : 
      13             : #include <com/sun/star/lang/XServiceInfo.hpp>
      14             : #include <com/sun/star/uno/XComponentContext.hpp>
      15             : 
      16             : #include "writerperfect/ImportFilter.hxx"
      17             : 
      18             : #include "DocumentHandlerForOdt.hxx"
      19             : 
      20             : /* This component will be instantiated for both import or export. Whether it calls
      21             :  * setSourceDocument or setTargetDocument determines which Impl function the filter
      22             :  * member calls */
      23           4 : class AbiWordImportFilter : public writerperfect::ImportFilter<OdtGenerator>
      24             : {
      25             : public:
      26           2 :     AbiWordImportFilter(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rxContext)
      27           2 :         : writerperfect::ImportFilter<OdtGenerator>(rxContext) {}
      28             : 
      29             :     // XServiceInfo
      30             :     virtual OUString SAL_CALL getImplementationName()
      31             :     throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      32             :     virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName)
      33             :     throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      34             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
      35             :     throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      36             : 
      37             : private:
      38             :     virtual bool doDetectFormat(librevenge::RVNGInputStream &rInput, OUString &rTypeName) SAL_OVERRIDE;
      39             :     virtual bool doImportDocument(librevenge::RVNGInputStream &rInput, OdtGenerator &rGenerator, utl::MediaDescriptor &) SAL_OVERRIDE;
      40             : };
      41             : 
      42             : OUString AbiWordImportFilter_getImplementationName()
      43             : throw (::com::sun::star::uno::RuntimeException);
      44             : 
      45             : ::com::sun::star::uno::Sequence< OUString > SAL_CALL AbiWordImportFilter_getSupportedServiceNames()
      46             : throw (::com::sun::star::uno::RuntimeException);
      47             : 
      48             : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      49             : SAL_CALL AbiWordImportFilter_createInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rContext)
      50             : throw (::com::sun::star::uno::Exception);
      51             : 
      52             : #endif
      53             : 
      54             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10