Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / uui / source / mphndl.hxx
blob78aa1665379b956f73cba55b7f1001e4ae0b3f0f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef UUI_IAHNDL_HXX
30 #define UUI_IAHNDL_HXX
32 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
33 #include <com/sun/star/lang/XServiceInfo.hpp>
34 #include <com/sun/star/lang/XTypeProvider.hpp>
35 #include <com/sun/star/task/XInteractionHandler.hpp>
36 #include <com/sun/star/task/XPasswordContainer.hpp>
37 #include <cppuhelper/weak.hxx>
39 //============================================================================
40 class UUIInteractionHandler:
41 public cppu::OWeakObject,
42 public com::sun::star::lang::XServiceInfo,
43 public com::sun::star::lang::XTypeProvider,
44 public com::sun::star::task::XInteractionHandler
46 ::com::sun::star::uno::Reference< ::com::sun::star::task::XPasswordContainer > mPContainer;
48 public:
49 static sal_Char const m_aImplementationName[];
51 UUIInteractionHandler( com::sun::star::uno::Reference<
52 com::sun::star::lang::XMultiServiceFactory > const & );
54 virtual com::sun::star::uno::Any SAL_CALL
55 queryInterface(com::sun::star::uno::Type const & rType)
56 throw (com::sun::star::uno::RuntimeException);
58 virtual void SAL_CALL acquire()
59 throw (com::sun::star::uno::RuntimeException);
61 virtual void SAL_CALL release()
62 throw (com::sun::star::uno::RuntimeException);
64 virtual rtl::OUString SAL_CALL getImplementationName()
65 throw (com::sun::star::uno::RuntimeException);
67 virtual sal_Bool SAL_CALL supportsService(rtl::OUString const &
68 rServiceName)
69 throw (com::sun::star::uno::RuntimeException);
71 virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
72 getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException);
74 virtual
75 com::sun::star::uno::Sequence< com::sun::star::uno::Type > SAL_CALL
76 getTypes() throw (com::sun::star::uno::RuntimeException);
78 virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL
79 getImplementationId() throw (com::sun::star::uno::RuntimeException);
81 virtual void SAL_CALL
82 handle(com::sun::star::uno::Reference<
83 com::sun::star::task::XInteractionRequest > const &
84 rRequest)
85 throw (com::sun::star::uno::RuntimeException);
87 static com::sun::star::uno::Sequence< rtl::OUString >
88 getSupportedServiceNames_static();
90 static com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
91 SAL_CALL
92 createInstance(com::sun::star::uno::Reference<
93 com::sun::star::lang::XMultiServiceFactory > const &);
96 #endif // UUI_IAHNDL_HXX
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */