LCOV - code coverage report
Current view: top level - writerperfect/source/draw - CMXImportFilter.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             : /* "This product is not manufactured, approved, or supported by
       9             :  * Corel Corporation or Corel Corporation Limited."
      10             :  */
      11             : #ifndef _CMXIMPORTFILTER_HXX
      12             : #define _CMXIMPORTFILTER_HXX
      13             : 
      14             : #include "ImportFilter.hxx"
      15             : 
      16             : #include "DocumentHandlerForOdg.hxx"
      17             : 
      18             : /* This component will be instantiated for both import or export. Whether it calls
      19             :  * setSourceDocument or setTargetDocument determines which Impl function the filter
      20             :  * member calls */
      21         172 : class CMXImportFilter : public writerperfect::ImportFilter<OdgGenerator>
      22             : {
      23             : public:
      24          86 :     explicit CMXImportFilter(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rxContext)
      25          86 :         : writerperfect::ImportFilter<OdgGenerator>(rxContext)
      26             :     {
      27          86 :     }
      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, OdgGenerator &rGenerator, utl::MediaDescriptor &) SAL_OVERRIDE;
      40             : };
      41             : 
      42             : OUString CMXImportFilter_getImplementationName()
      43             : throw (::com::sun::star::uno::RuntimeException);
      44             : 
      45             : ::com::sun::star::uno::Sequence< OUString > SAL_CALL CMXImportFilter_getSupportedServiceNames()
      46             : throw (::com::sun::star::uno::RuntimeException);
      47             : 
      48             : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      49             : SAL_CALL CMXImportFilter_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.11