update credits
[LibreOffice.git] / include / comphelper / ihwrapnofilter.hxx
blobeb0b139578744084bf66c72fc8d2cd5ac2502132
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 _COMPHELPER_INTERACTIONHANDLERWRAPPER_HXX_
21 #define _COMPHELPER_INTERACTIONHANDLERWRAPPER_HXX_
23 #include <com/sun/star/task/XInteractionHandler2.hpp>
24 #ifndef _COM_SUN_STAR_TASK_XINTERACTIONHANDLER_
25 #include <com/sun/star/task/XInteractionHandler.hpp>
26 #endif
27 #ifndef _COM_SUN_STAR_TASK_XINTERACITONREQUEST_
28 #include <com/sun/star/task/XInteractionRequest.hpp>
29 #endif
30 #ifndef _COM_SUN_STAR_LANG_XINITIALIZATION_
31 #include <com/sun/star/lang/XInitialization.hpp>
32 #endif
33 #ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_
34 #include <com/sun/star/lang/XServiceInfo.hpp>
35 #endif
36 #ifndef _COM_SUN_STAR_FRAME_DOUBLEINITIALIZATIONEXCEPTION_
37 #include <com/sun/star/frame/DoubleInitializationException.hpp>
38 #endif
40 #include <cppuhelper/implbase2.hxx>
41 #include "comphelper/comphelperdllapi.h"
43 namespace comphelper {
45 class COMPHELPER_DLLPUBLIC OIHWrapNoFilterDialog : public ::cppu::WeakImplHelper2
46 < ::com::sun::star::task::XInteractionHandler2
47 , ::com::sun::star::lang::XServiceInfo >
49 com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler > m_xInter;
51 public:
52 OIHWrapNoFilterDialog( com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler > xInteraction );
53 ~OIHWrapNoFilterDialog();
55 static OUString SAL_CALL impl_staticGetImplementationName();
56 static ::com::sun::star::uno::Sequence< OUString > SAL_CALL impl_staticGetSupportedServiceNames();
59 //____________________________________________________________________________________________________
60 // XInteractionHandler
61 //____________________________________________________________________________________________________
63 virtual void SAL_CALL handle( const com::sun::star::uno::Reference< com::sun::star::task::XInteractionRequest >& xRequest)
64 throw( com::sun::star::uno::RuntimeException );
66 //____________________________________________________________________________________________________
67 // XInteractionHandler2
68 //____________________________________________________________________________________________________
70 virtual sal_Bool SAL_CALL handleInteractionRequest( const com::sun::star::uno::Reference< com::sun::star::task::XInteractionRequest >& xRequest)
71 throw( com::sun::star::uno::RuntimeException );
73 //____________________________________________________________________________________________________
74 // XInitialization
75 //____________________________________________________________________________________________________
77 virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments )
78 throw ( ::com::sun::star::uno::Exception,
79 ::com::sun::star::uno::RuntimeException,
80 ::com::sun::star::frame::DoubleInitializationException ) ;
82 //____________________________________________________________________________________________________
83 // XServiceInfo
84 //____________________________________________________________________________________________________
86 virtual OUString SAL_CALL getImplementationName()
87 throw ( ::com::sun::star::uno::RuntimeException );
89 virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
90 throw ( ::com::sun::star::uno::RuntimeException );
92 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
93 throw ( ::com::sun::star::uno::RuntimeException );
97 #endif
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */