bump product version to 4.1.6.2
[LibreOffice.git] / filter / source / pdf / pdffilter.hxx
blobf54f5502190d0866b6185fe59b71fead2a69fe52
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef PDFFILTER_HXX
21 #define PDFFILTER_HXX
23 #include <com/sun/star/document/XFilter.hpp>
24 #include <com/sun/star/document/XExporter.hpp>
25 #include <com/sun/star/lang/XInitialization.hpp>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/beans/XPropertySet.hpp>
28 #include <com/sun/star/lang/XComponent.hpp>
29 #include <cppuhelper/implbase1.hxx>
30 #include <cppuhelper/implbase2.hxx>
31 #include <cppuhelper/implbase3.hxx>
32 #include <cppuhelper/implbase4.hxx>
33 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
34 #include <com/sun/star/beans/XPropertyAccess.hpp>
35 #include <comphelper/property.hxx>
36 #include <com/sun/star/task/XStatusIndicator.hpp>
37 #include <com/sun/star/task/XInteractionHandler.hpp>
39 #include <osl/diagnose.h>
40 #include <rtl/process.h>
41 #include <comphelper/processfactory.hxx>
42 #include <unotools/tempfile.hxx>
43 #include <unotools/localfilehelper.hxx>
44 #include <unotools/ucbstreamhelper.hxx>
45 #include <unotools/streamwrap.hxx>
47 using namespace ::rtl;
48 using namespace ::com::sun::star;
49 using namespace ::com::sun::star::uno;
50 using namespace ::com::sun::star::lang;
51 using namespace ::com::sun::star::beans;
52 using namespace ::com::sun::star::document;
53 using namespace ::com::sun::star::io;
55 // -------------
56 // - PDFFilter -
57 // -------------
59 class PDFFilter : public cppu::WeakImplHelper4 < XFilter,
60 XExporter,
61 XInitialization,
62 XServiceInfo >
64 private:
66 Reference< XMultiServiceFactory > mxMSF;
67 Reference< XComponent > mxSrcDoc;
69 sal_Bool implExport( const Sequence< PropertyValue >& rDescriptor );
71 protected:
73 // XFilter
74 virtual sal_Bool SAL_CALL filter( const Sequence< PropertyValue >& rDescriptor ) throw(RuntimeException);
75 virtual void SAL_CALL cancel( ) throw (RuntimeException);
77 // XExporter
78 virtual void SAL_CALL setSourceDocument( const Reference< XComponent >& xDoc ) throw(IllegalArgumentException, RuntimeException);
80 // XInitialization
81 virtual void SAL_CALL initialize( const Sequence< Any >& aArguments ) throw(Exception, RuntimeException);
83 // XServiceInfo
84 virtual OUString SAL_CALL getImplementationName() throw(RuntimeException);
85 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(RuntimeException);
86 virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(RuntimeException);
88 public:
90 PDFFilter( const Reference< XMultiServiceFactory >& rxMSF );
91 virtual ~PDFFilter();
94 // -----------------------------------------------------------------------------
96 OUString PDFFilter_getImplementationName ()
97 throw ( RuntimeException );
99 // -----------------------------------------------------------------------------
101 sal_Bool SAL_CALL PDFFilter_supportsService( const OUString& ServiceName )
102 throw ( RuntimeException );
104 // -----------------------------------------------------------------------------
106 Sequence< OUString > SAL_CALL PDFFilter_getSupportedServiceNames( )
107 throw ( RuntimeException );
109 // -----------------------------------------------------------------------------
111 Reference< XInterface >
112 SAL_CALL PDFFilter_createInstance( const Reference< XMultiServiceFactory > & rSMgr)
113 throw ( Exception );
115 #endif // PDFFILTER_HXX
126 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */