xref: /aoo41x/main/filter/source/pdf/pdfinteract.hxx (revision 22e87013)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef PDFINTERACT_HXX
25 #define PDFINTERACT_HXX
26 
27 #include "com/sun/star/lang/XServiceInfo.hpp"
28 #include "cppuhelper/implbase2.hxx"
29 #include "com/sun/star/lang/XMultiServiceFactory.hpp"
30 #include "com/sun/star/task/XInteractionHandler2.hpp"
31 
32 using namespace ::rtl;
33 using namespace ::com::sun::star;
34 using namespace ::com::sun::star::uno;
35 using namespace ::com::sun::star::lang;
36 
37 // -------------
38 // - PDFFilter -
39 // -------------
40 
41 class PDFInteractionHandler : public cppu::WeakImplHelper2 < task::XInteractionHandler2,
42 												             XServiceInfo >
43 {
44 private:
45 
46 	Reference< XMultiServiceFactory >	mxMSF;
47 
48 protected:
49 	// XServiceInfo
50     virtual OUString SAL_CALL getImplementationName() throw(RuntimeException);
51     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(RuntimeException);
52     virtual Sequence< OUString > SAL_CALL getSupportedServiceNames()  throw(RuntimeException);
53 
54     // XIniteractionHandler
55     virtual void SAL_CALL handle( const Reference< task::XInteractionRequest >& ) throw(RuntimeException);
56 
57     // XIniteractionHandler2
58     virtual sal_Bool SAL_CALL handleInteractionRequest( const Reference< task::XInteractionRequest >& ) throw(RuntimeException);
59 public:
60 
61 				PDFInteractionHandler( const Reference< XMultiServiceFactory >& rxMSF );
62 	virtual		~PDFInteractionHandler();
63 };
64 
65 // -----------------------------------------------------------------------------
66 
67 OUString PDFInteractionHandler_getImplementationName ()
68 	throw ( RuntimeException );
69 
70 // -----------------------------------------------------------------------------
71 
72 sal_Bool SAL_CALL PDFInteractionHandler_supportsService( const OUString& ServiceName )
73 	throw ( RuntimeException );
74 
75 // -----------------------------------------------------------------------------
76 
77 Sequence< OUString > SAL_CALL PDFInteractionHandler_getSupportedServiceNames(  )
78 	throw ( RuntimeException );
79 
80 // -----------------------------------------------------------------------------
81 
82 Reference< XInterface >
83 SAL_CALL PDFInteractionHandler_createInstance( const Reference< XMultiServiceFactory > & rSMgr)
84 	throw ( Exception );
85 
86 #endif // PDFINTERACT_HXX
87 
88