merge the formfield patch from ooo-build
[ooovba.git] / ucb / source / ucp / ftp / ftpintreq.hxx
blob7b3fbca5779db0d5bf1326d4163420465c2c9a11
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ftpintreq.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _FTP_FTPINTREQ_HXX
32 #define _FTP_FTPINTREQ_HXX
34 #include <cppuhelper/weak.hxx>
35 #include <ucbhelper/macros.hxx>
36 #include <rtl/ustring.hxx>
37 #include <com/sun/star/uno/XInterface.hpp>
38 #include <com/sun/star/lang/XTypeProvider.hpp>
39 #include <com/sun/star/task/XInteractionDisapprove.hpp>
40 #include <com/sun/star/task/XInteractionApprove.hpp>
41 #include <com/sun/star/task/XInteractionRequest.hpp>
44 namespace ftp {
47 class XInteractionApproveImpl
48 : public cppu::OWeakObject,
49 public com::sun::star::lang::XTypeProvider,
50 public com::sun::star::task::XInteractionApprove
52 public:
54 XInteractionApproveImpl();
56 virtual com::sun::star::uno::Any SAL_CALL
57 queryInterface(
58 const com::sun::star::uno::Type& rType )
59 throw( com::sun::star::uno::RuntimeException);
61 virtual void SAL_CALL
62 acquire(
63 void )
64 throw();
66 virtual void SAL_CALL
67 release(
68 void )
69 throw();
72 // XTypeProvider
74 XTYPEPROVIDER_DECL()
76 virtual void SAL_CALL select()
77 throw (com::sun::star::uno::RuntimeException);
79 bool isSelected() const;
81 private:
83 bool m_bSelected;
89 class XInteractionDisapproveImpl
90 : public cppu::OWeakObject,
91 public com::sun::star::lang::XTypeProvider,
92 public com::sun::star::task::XInteractionDisapprove
94 public:
96 XInteractionDisapproveImpl();
98 virtual com::sun::star::uno::Any SAL_CALL
99 queryInterface(
100 const com::sun::star::uno::Type& rType )
101 throw( com::sun::star::uno::RuntimeException);
103 virtual void SAL_CALL
104 acquire(
105 void )
106 throw();
108 virtual void SAL_CALL
109 release(
110 void )
111 throw();
114 // XTypeProvider
116 XTYPEPROVIDER_DECL()
118 virtual void SAL_CALL select()
119 throw (com::sun::star::uno::RuntimeException);
121 bool isSelected() const;
123 private:
125 bool m_bSelected;
130 class XInteractionRequestImpl
131 : public cppu::OWeakObject,
132 public com::sun::star::lang::XTypeProvider,
133 public com::sun::star::task::XInteractionRequest
135 public:
137 XInteractionRequestImpl(const rtl::OUString& aName);
139 virtual com::sun::star::uno::Any SAL_CALL
140 queryInterface(
141 const com::sun::star::uno::Type& rType )
142 throw( com::sun::star::uno::RuntimeException);
144 virtual void SAL_CALL
145 acquire(
146 void )
147 throw();
149 virtual void SAL_CALL
150 release(
151 void )
152 throw();
155 // XTypeProvider
157 XTYPEPROVIDER_DECL()
159 com::sun::star::uno::Any SAL_CALL
160 getRequest( )
161 throw (com::sun::star::uno::RuntimeException);
163 com::sun::star::uno::Sequence<
164 com::sun::star::uno::Reference<
165 com::sun::star::task::XInteractionContinuation > > SAL_CALL
166 getContinuations( )
167 throw (com::sun::star::uno::RuntimeException);
169 bool aborted() const;
171 bool approved() const;
173 private:
175 XInteractionApproveImpl* p1;
176 XInteractionDisapproveImpl* p2;
178 rtl::OUString m_aName;
180 com::sun::star::uno::Sequence<
181 com::sun::star::uno::Reference<
182 com::sun::star::task::XInteractionContinuation > > m_aSeq;
188 #endif