fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / filter / source / pdf / pdfinteract.hxx
blobc2c1256220d9b901fddd0d845d76418be0429285
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 PDFINTERACT_HXX
21 #define PDFINTERACT_HXX
23 #include "com/sun/star/lang/XServiceInfo.hpp"
24 #include "cppuhelper/implbase2.hxx"
25 #include "com/sun/star/lang/XMultiServiceFactory.hpp"
26 #include "com/sun/star/task/XInteractionHandler2.hpp"
28 using namespace ::rtl;
29 using namespace ::com::sun::star;
30 using namespace ::com::sun::star::uno;
31 using namespace ::com::sun::star::lang;
33 // -------------
34 // - PDFFilter -
35 // -------------
37 class PDFInteractionHandler : public cppu::WeakImplHelper2 < task::XInteractionHandler2,
38 XServiceInfo >
40 private:
42 Reference< XMultiServiceFactory > mxMSF;
44 protected:
45 // XServiceInfo
46 virtual OUString SAL_CALL getImplementationName() throw(RuntimeException);
47 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(RuntimeException);
48 virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(RuntimeException);
50 // XIniteractionHandler
51 virtual void SAL_CALL handle( const Reference< task::XInteractionRequest >& ) throw(RuntimeException);
53 // XIniteractionHandler2
54 virtual sal_Bool SAL_CALL handleInteractionRequest( const Reference< task::XInteractionRequest >& ) throw(RuntimeException);
55 public:
57 PDFInteractionHandler( const Reference< XMultiServiceFactory >& rxMSF );
58 virtual ~PDFInteractionHandler();
61 // -----------------------------------------------------------------------------
63 OUString PDFInteractionHandler_getImplementationName ()
64 throw ( RuntimeException );
66 // -----------------------------------------------------------------------------
68 sal_Bool SAL_CALL PDFInteractionHandler_supportsService( const OUString& ServiceName )
69 throw ( RuntimeException );
71 // -----------------------------------------------------------------------------
73 Sequence< OUString > SAL_CALL PDFInteractionHandler_getSupportedServiceNames( )
74 throw ( RuntimeException );
76 // -----------------------------------------------------------------------------
78 Reference< XInterface >
79 SAL_CALL PDFInteractionHandler_createInstance( const Reference< XMultiServiceFactory > & rSMgr)
80 throw ( Exception );
82 #endif // PDFINTERACT_HXX
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */