fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / writerperfect / source / impress / KeynoteImportFilter.hxx
blobd176643ebe589f0a01cf8697e18d1a524492376a
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 */
8 #ifndef INCLUDED_WRITERPERFECT_SOURCE_IMPRESS_KEYNOTEIMPORTFILTER_HXX
9 #define INCLUDED_WRITERPERFECT_SOURCE_IMPRESS_KEYNOTEIMPORTFILTER_HXX
11 #include <com/sun/star/lang/XServiceInfo.hpp>
12 #include <com/sun/star/uno/XComponentContext.hpp>
14 #include "ImportFilter.hxx"
15 #include "DocumentHandlerForOdp.hxx"
17 #include <stdio.h>
19 /* This component will be instantiated for both import or export. Whether it calls
20 * setSourceDocument or setTargetDocument determines which Impl function the filter
21 * member calls */
22 class KeynoteImportFilter : public writerperfect::ImportFilter<OdpGenerator>
24 public:
25 KeynoteImportFilter(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rxContext)
26 : writerperfect::ImportFilter<OdpGenerator>(rxContext) {}
27 virtual ~KeynoteImportFilter() {}
29 //XExtendedFilterDetection
30 virtual OUString SAL_CALL detect(com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > &Descriptor)
31 throw(com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
33 // XServiceInfo
34 virtual OUString SAL_CALL getImplementationName()
35 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
36 virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName)
37 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
38 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
39 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
41 private:
42 virtual bool doDetectFormat(librevenge::RVNGInputStream &rInput, OUString &rTypeName) SAL_OVERRIDE;
43 virtual bool doImportDocument(librevenge::RVNGInputStream &rInput, OdpGenerator &rGenerator, utl::MediaDescriptor &) SAL_OVERRIDE;
46 OUString KeynoteImportFilter_getImplementationName()
47 throw (::com::sun::star::uno::RuntimeException);
49 bool SAL_CALL KeynoteImportFilter_supportsService(const OUString &ServiceName)
50 throw (::com::sun::star::uno::RuntimeException);
52 ::com::sun::star::uno::Sequence< OUString > SAL_CALL KeynoteImportFilter_getSupportedServiceNames()
53 throw (::com::sun::star::uno::RuntimeException);
55 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
56 SAL_CALL KeynoteImportFilter_createInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > &rContext)
57 throw (::com::sun::star::uno::Exception);
59 #endif
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */