Bump version to 5.0-14
[LibreOffice.git] / writerperfect / source / calc / MWAWCalcImportFilter.hxx
blob0dc91ac99953bb7e0f41dc58f1c6ef7e2453a5e5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef _MWAWCALCIMPORTFILTER_HXX
11 #define _MWAWCALCIMPORTFILTER_HXX
13 #include <com/sun/star/lang/XServiceInfo.hpp>
14 #include <com/sun/star/uno/XComponentContext.hpp>
16 #include "ImportFilter.hxx"
18 #include "DocumentHandlerForOds.hxx"
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 class MWAWCalcImportFilter : public writerperfect::ImportFilter<OdsGenerator>
25 public:
26 MWAWCalcImportFilter(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rxContext)
27 : writerperfect::ImportFilter<OdsGenerator>(rxContext) {}
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;
37 private:
38 virtual bool doDetectFormat(librevenge::RVNGInputStream &rInput, OUString &rTypeName) SAL_OVERRIDE;
39 virtual bool doImportDocument(librevenge::RVNGInputStream &rInput, OdsGenerator &rGenerator, utl::MediaDescriptor &) SAL_OVERRIDE;
40 virtual void doRegisterHandlers(OdsGenerator &rGenerator) SAL_OVERRIDE;
43 OUString MWAWCalcImportFilter_getImplementationName()
44 throw (::com::sun::star::uno::RuntimeException);
46 ::com::sun::star::uno::Sequence< OUString > SAL_CALL MWAWCalcImportFilter_getSupportedServiceNames()
47 throw (::com::sun::star::uno::RuntimeException);
49 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
50 SAL_CALL MWAWCalcImportFilter_createInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rContext)
51 throw (::com::sun::star::uno::Exception);
53 #endif
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */