LCOV - code coverage report
Current view: top level - writerperfect/source/draw - MSPUBImportFilter.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 4 4 100.0 %
Date: 2015-06-13 12:38:46 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 Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       6             :  */
       7             : 
       8             : #ifndef _MSPUBIMPORTFILTER_HXX
       9             : #define _MSPUBIMPORTFILTER_HXX
      10             : 
      11             : #include "ImportFilter.hxx"
      12             : 
      13             : #include "DocumentHandlerForOdg.hxx"
      14             : 
      15             : /* This component will be instantiated for both import or export. Whether it calls
      16             :  * setSourceDocument or setTargetDocument determines which Impl function the filter
      17             :  * member calls */
      18         172 : class MSPUBImportFilter : public writerperfect::ImportFilter<OdgGenerator>
      19             : {
      20             : public:
      21          86 :     explicit MSPUBImportFilter(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rxContext)
      22          86 :         : writerperfect::ImportFilter<OdgGenerator>(rxContext)
      23             :     {
      24          86 :     }
      25             : 
      26             :     // XServiceInfo
      27             :     virtual OUString SAL_CALL getImplementationName()
      28             :     throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      29             :     virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName)
      30             :     throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      31             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
      32             :     throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      33             : 
      34             : private:
      35             :     virtual bool doDetectFormat(librevenge::RVNGInputStream &rInput, OUString &rTypeName) SAL_OVERRIDE;
      36             :     virtual bool doImportDocument(librevenge::RVNGInputStream &rInput, OdgGenerator &rGenerator, utl::MediaDescriptor &) SAL_OVERRIDE;
      37             : };
      38             : 
      39             : OUString MSPUBImportFilter_getImplementationName()
      40             : throw (::com::sun::star::uno::RuntimeException);
      41             : 
      42             : ::com::sun::star::uno::Sequence< OUString > SAL_CALL MSPUBImportFilter_getSupportedServiceNames()
      43             : throw (::com::sun::star::uno::RuntimeException);
      44             : 
      45             : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      46             : SAL_CALL MSPUBImportFilter_createInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rContext)
      47             : throw (::com::sun::star::uno::Exception);
      48             : 
      49             : #endif
      50             : 
      51             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11