LCOV - code coverage report
Current view: top level - libreoffice/writerperfect/source/draw - CDRImportFilter.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-27 Functions: 0 3 0.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 _CDRIMPORTFILTER_HXX
      12             : #define _CDRIMPORTFILTER_HXX
      13             : 
      14             : #include <com/sun/star/document/XFilter.hpp>
      15             : #include <com/sun/star/document/XImporter.hpp>
      16             : #include <com/sun/star/document/XExtendedFilterDetection.hpp>
      17             : #include <com/sun/star/lang/XInitialization.hpp>
      18             : #include <com/sun/star/lang/XServiceInfo.hpp>
      19             : #include <com/sun/star/uno/XComponentContext.hpp>
      20             : #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
      21             : #include <cppuhelper/implbase5.hxx>
      22             : 
      23             : #include <stdio.h>
      24             : 
      25             : /* This component will be instantiated for both import or export. Whether it calls
      26             :  * setSourceDocument or setTargetDocument determines which Impl function the filter
      27             :  * member calls */
      28             : class CDRImportFilter : public cppu::WeakImplHelper5
      29             :     <
      30             :     com::sun::star::document::XFilter,
      31             :     com::sun::star::document::XImporter,
      32             :     com::sun::star::document::XExtendedFilterDetection,
      33             :     com::sun::star::lang::XInitialization,
      34             :     com::sun::star::lang::XServiceInfo
      35             :     >
      36             : {
      37             : protected:
      38             :     // oo.org declares
      39             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > mxContext;
      40             :     ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > mxDoc;
      41             :     ::rtl::OUString msFilterName;
      42             :     ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > mxHandler;
      43             : 
      44             : public:
      45           0 :     CDRImportFilter( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rxContext)
      46           0 :         : mxContext( rxContext ) {}
      47           0 :     virtual ~CDRImportFilter() {}
      48             : 
      49             :     // XFilter
      50             :     virtual sal_Bool SAL_CALL filter( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aDescriptor )
      51             :     throw (::com::sun::star::uno::RuntimeException);
      52             :     virtual void SAL_CALL cancel(  )
      53             :     throw (::com::sun::star::uno::RuntimeException);
      54             : 
      55             :     // XImporter
      56             :     virtual void SAL_CALL setTargetDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc )
      57             :     throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
      58             : 
      59             :     //XExtendedFilterDetection
      60             :     virtual ::rtl::OUString SAL_CALL detect( com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& Descriptor )
      61             :     throw( com::sun::star::uno::RuntimeException );
      62             : 
      63             :     // XInitialization
      64             :     virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments )
      65             :     throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
      66             : 
      67             :     // XServiceInfo
      68             :     virtual ::rtl::OUString SAL_CALL getImplementationName(  )
      69             :     throw (::com::sun::star::uno::RuntimeException);
      70             :     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString &ServiceName )
      71             :     throw (::com::sun::star::uno::RuntimeException);
      72             :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  )
      73             :     throw (::com::sun::star::uno::RuntimeException);
      74             : 
      75             : };
      76             : 
      77             : ::rtl::OUString CDRImportFilter_getImplementationName()
      78             : throw ( ::com::sun::star::uno::RuntimeException );
      79             : 
      80             : sal_Bool SAL_CALL CDRImportFilter_supportsService( const ::rtl::OUString &ServiceName )
      81             : throw ( ::com::sun::star::uno::RuntimeException );
      82             : 
      83             : ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL CDRImportFilter_getSupportedServiceNames(  )
      84             : throw ( ::com::sun::star::uno::RuntimeException );
      85             : 
      86             : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      87             : SAL_CALL CDRImportFilter_createInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & rContext)
      88             : throw ( ::com::sun::star::uno::Exception );
      89             : 
      90             : #endif
      91             : 
      92             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10