LCOV - code coverage report
Current view: top level - writerperfect/source/impress - KeynoteImportFilter.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 3 3 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 INCLUDED_WRITERPERFECT_SOURCE_IMPRESS_KEYNOTEIMPORTFILTER_HXX
       9             : #define INCLUDED_WRITERPERFECT_SOURCE_IMPRESS_KEYNOTEIMPORTFILTER_HXX
      10             : 
      11             : #include <com/sun/star/lang/XServiceInfo.hpp>
      12             : #include <com/sun/star/uno/XComponentContext.hpp>
      13             : 
      14             : #include "ImportFilter.hxx"
      15             : #include "DocumentHandlerForOdp.hxx"
      16             : 
      17             : /* This component will be instantiated for both import or export. Whether it calls
      18             :  * setSourceDocument or setTargetDocument determines which Impl function the filter
      19             :  * member calls */
      20             : class KeynoteImportFilter : public writerperfect::ImportFilter<OdpGenerator>
      21             : {
      22             : public:
      23          89 :     explicit KeynoteImportFilter(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rxContext)
      24          89 :         : writerperfect::ImportFilter<OdpGenerator>(rxContext) {}
      25         178 :     virtual ~KeynoteImportFilter() {}
      26             : 
      27             :     //XExtendedFilterDetection
      28             :     virtual OUString SAL_CALL detect(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > &Descriptor)
      29             :     throw(com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      30             : 
      31             :     // XServiceInfo
      32             :     virtual OUString SAL_CALL getImplementationName()
      33             :     throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      34             :     virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName)
      35             :     throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      36             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
      37             :     throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      38             : 
      39             : private:
      40             :     virtual bool doDetectFormat(librevenge::RVNGInputStream &rInput, OUString &rTypeName) SAL_OVERRIDE;
      41             :     virtual bool doImportDocument(librevenge::RVNGInputStream &rInput, OdpGenerator &rGenerator, utl::MediaDescriptor &) SAL_OVERRIDE;
      42             : };
      43             : 
      44             : OUString KeynoteImportFilter_getImplementationName()
      45             : throw (::com::sun::star::uno::RuntimeException);
      46             : 
      47             : bool SAL_CALL KeynoteImportFilter_supportsService(const OUString &ServiceName)
      48             : throw (::com::sun::star::uno::RuntimeException);
      49             : 
      50             : ::com::sun::star::uno::Sequence< OUString > SAL_CALL KeynoteImportFilter_getSupportedServiceNames()
      51             : throw (::com::sun::star::uno::RuntimeException);
      52             : 
      53             : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      54             : SAL_CALL KeynoteImportFilter_createInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rContext)
      55             : throw (::com::sun::star::uno::Exception);
      56             : 
      57             : #endif
      58             : 
      59             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11