xref: /trunk/main/uui/source/iahndl.hxx (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef UUI_IAHNDL_HXX
29*cdf0e10cSrcweir #define UUI_IAHNDL_HXX
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <vector>
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir #include "osl/mutex.hxx"
34*cdf0e10cSrcweir #include "rtl/ustring.hxx"
35*cdf0e10cSrcweir 
36*cdf0e10cSrcweir #include "com/sun/star/uno/Reference.hxx"
37*cdf0e10cSrcweir #include "com/sun/star/uno/Sequence.hxx"
38*cdf0e10cSrcweir 
39*cdf0e10cSrcweir #include "com/sun/star/beans/Optional.hpp"
40*cdf0e10cSrcweir #include "com/sun/star/task/InteractionClassification.hpp"
41*cdf0e10cSrcweir 
42*cdf0e10cSrcweir #include "tools/solar.h" // sal_uInt16
43*cdf0e10cSrcweir #include "tools/errcode.hxx" // ErrCode
44*cdf0e10cSrcweir #include "tools/rc.hxx" // Resource
45*cdf0e10cSrcweir #include "tools/wintypes.hxx" // WinBits
46*cdf0e10cSrcweir 
47*cdf0e10cSrcweir namespace com { namespace sun { namespace star {
48*cdf0e10cSrcweir     namespace awt {
49*cdf0e10cSrcweir         class XWindow;
50*cdf0e10cSrcweir     }
51*cdf0e10cSrcweir     namespace embed {
52*cdf0e10cSrcweir         class XStorage;
53*cdf0e10cSrcweir     }
54*cdf0e10cSrcweir     namespace lang {
55*cdf0e10cSrcweir         class XMultiServiceFactory;
56*cdf0e10cSrcweir     }
57*cdf0e10cSrcweir     namespace security {
58*cdf0e10cSrcweir         class DocumentSignatureInformation;
59*cdf0e10cSrcweir     }
60*cdf0e10cSrcweir     namespace task {
61*cdf0e10cSrcweir         class FutureDocumentVersionProductUpdateRequest;
62*cdf0e10cSrcweir         class XInteractionContinuation;
63*cdf0e10cSrcweir         class XInteractionHandler;
64*cdf0e10cSrcweir         class XInteractionRequest;
65*cdf0e10cSrcweir     }
66*cdf0e10cSrcweir     namespace ucb {
67*cdf0e10cSrcweir         class NameClashResolveRequest;
68*cdf0e10cSrcweir     }
69*cdf0e10cSrcweir } } }
70*cdf0e10cSrcweir 
71*cdf0e10cSrcweir #include <hash_map>
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir class Window;
74*cdf0e10cSrcweir 
75*cdf0e10cSrcweir //============================================================================
76*cdf0e10cSrcweir struct InteractionHandlerData
77*cdf0e10cSrcweir {
78*cdf0e10cSrcweir     /** The UNO service name to use to instanciate the content provider.
79*cdf0e10cSrcweir      */
80*cdf0e10cSrcweir     rtl::OUString ServiceName;
81*cdf0e10cSrcweir 
82*cdf0e10cSrcweir     InteractionHandlerData() {};
83*cdf0e10cSrcweir     InteractionHandlerData(const rtl::OUString & rService)
84*cdf0e10cSrcweir     : ServiceName( rService ){}
85*cdf0e10cSrcweir };
86*cdf0e10cSrcweir 
87*cdf0e10cSrcweir typedef std::vector< InteractionHandlerData > InteractionHandlerDataList;
88*cdf0e10cSrcweir 
89*cdf0e10cSrcweir typedef ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation > > Continuations;
90*cdf0e10cSrcweir 
91*cdf0e10cSrcweir typedef ::std::hash_map< ::rtl::OUString, ::rtl::OUString, ::rtl::OUStringHash >    StringHashMap;
92*cdf0e10cSrcweir 
93*cdf0e10cSrcweir //============================================================================
94*cdf0e10cSrcweir class UUIInteractionHelper
95*cdf0e10cSrcweir {
96*cdf0e10cSrcweir private:
97*cdf0e10cSrcweir     mutable osl::Mutex                                                                      m_aPropertyMutex;
98*cdf0e10cSrcweir             ::com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >  m_xServiceFactory;
99*cdf0e10cSrcweir             ::com::sun::star::uno::Sequence< com::sun::star::uno::Any >                     m_aProperties;
100*cdf0e10cSrcweir             StringHashMap                                                                   m_aTypedCustomHandlers;
101*cdf0e10cSrcweir     UUIInteractionHelper(UUIInteractionHelper &); // not implemented
102*cdf0e10cSrcweir     void operator =(UUIInteractionHelper); // not implemented
103*cdf0e10cSrcweir 
104*cdf0e10cSrcweir public:
105*cdf0e10cSrcweir     UUIInteractionHelper(
106*cdf0e10cSrcweir         com::sun::star::uno::Reference<
107*cdf0e10cSrcweir             com::sun::star::lang::XMultiServiceFactory > const & rServiceFactory,
108*cdf0e10cSrcweir         com::sun::star::uno::Sequence<
109*cdf0e10cSrcweir             com::sun::star::uno::Any > const & rArguments)
110*cdf0e10cSrcweir         SAL_THROW(());
111*cdf0e10cSrcweir     UUIInteractionHelper(
112*cdf0e10cSrcweir         com::sun::star::uno::Reference<
113*cdf0e10cSrcweir             com::sun::star::lang::XMultiServiceFactory > const & rServiceFactory)
114*cdf0e10cSrcweir         SAL_THROW(());
115*cdf0e10cSrcweir 
116*cdf0e10cSrcweir     ~UUIInteractionHelper() SAL_THROW(());
117*cdf0e10cSrcweir 
118*cdf0e10cSrcweir     bool
119*cdf0e10cSrcweir     handleRequest(
120*cdf0e10cSrcweir         com::sun::star::uno::Reference<
121*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
122*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
123*cdf0e10cSrcweir 
124*cdf0e10cSrcweir     com::sun::star::beans::Optional< rtl::OUString >
125*cdf0e10cSrcweir     getStringFromRequest(
126*cdf0e10cSrcweir         com::sun::star::uno::Reference<
127*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
128*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
129*cdf0e10cSrcweir 
130*cdf0e10cSrcweir     // Helper.
131*cdf0e10cSrcweir     static ::rtl::OUString
132*cdf0e10cSrcweir     replaceMessageWithArguments(
133*cdf0e10cSrcweir         ::rtl::OUString aMessage,
134*cdf0e10cSrcweir             std::vector< rtl::OUString > const & rArguments );
135*cdf0e10cSrcweir 
136*cdf0e10cSrcweir private:
137*cdf0e10cSrcweir     bool
138*cdf0e10cSrcweir     handleRequest_impl(
139*cdf0e10cSrcweir         com::sun::star::uno::Reference<
140*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest,
141*cdf0e10cSrcweir         bool bObtainErrorStringOnly,
142*cdf0e10cSrcweir         bool & bHasErrorString,
143*cdf0e10cSrcweir         rtl::OUString & rErrorString)
144*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir     static long
147*cdf0e10cSrcweir     handlerequest(void* pHandleData, void* pInteractionHandler);
148*cdf0e10cSrcweir 
149*cdf0e10cSrcweir     com::sun::star::beans::Optional< rtl::OUString >
150*cdf0e10cSrcweir     getStringFromRequest_impl(
151*cdf0e10cSrcweir         com::sun::star::uno::Reference<
152*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
153*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
154*cdf0e10cSrcweir 
155*cdf0e10cSrcweir     static long
156*cdf0e10cSrcweir     getstringfromrequest(void* pHandleData, void* pInteractionHandler);
157*cdf0e10cSrcweir 
158*cdf0e10cSrcweir     Window *
159*cdf0e10cSrcweir     getParentProperty()
160*cdf0e10cSrcweir         SAL_THROW(());
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow>
163*cdf0e10cSrcweir     getParentXWindow() const
164*cdf0e10cSrcweir         SAL_THROW(());
165*cdf0e10cSrcweir 
166*cdf0e10cSrcweir     rtl::OUString
167*cdf0e10cSrcweir     getContextProperty()
168*cdf0e10cSrcweir         SAL_THROW(());
169*cdf0e10cSrcweir 
170*cdf0e10cSrcweir     com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler >
171*cdf0e10cSrcweir     getInteractionHandler()
172*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
173*cdf0e10cSrcweir 
174*cdf0e10cSrcweir     bool    handleTypedHandlerImplementations(
175*cdf0e10cSrcweir                 ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest > const &  rRequest
176*cdf0e10cSrcweir             );
177*cdf0e10cSrcweir 
178*cdf0e10cSrcweir     bool
179*cdf0e10cSrcweir     tryOtherInteractionHandler(
180*cdf0e10cSrcweir         com::sun::star::uno::Reference<
181*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
182*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
183*cdf0e10cSrcweir 
184*cdf0e10cSrcweir     void
185*cdf0e10cSrcweir     getInteractionHandlerList(InteractionHandlerDataList &rdataList)
186*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
187*cdf0e10cSrcweir 
188*cdf0e10cSrcweir     static bool
189*cdf0e10cSrcweir     isInformationalErrorMessageRequest(
190*cdf0e10cSrcweir         com::sun::star::uno::Sequence<
191*cdf0e10cSrcweir             com::sun::star::uno::Reference<
192*cdf0e10cSrcweir                 com::sun::star::task::XInteractionContinuation > > const &
193*cdf0e10cSrcweir             rContinuations);
194*cdf0e10cSrcweir 
195*cdf0e10cSrcweir     //=====================================================================
196*cdf0e10cSrcweir 
197*cdf0e10cSrcweir     bool
198*cdf0e10cSrcweir     handleInteractiveIOException(
199*cdf0e10cSrcweir         com::sun::star::uno::Reference<
200*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest,
201*cdf0e10cSrcweir         bool bObtainErrorStringOnly,
202*cdf0e10cSrcweir         bool & bHasErrorString,
203*cdf0e10cSrcweir         rtl::OUString & rErrorString)
204*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
205*cdf0e10cSrcweir 
206*cdf0e10cSrcweir     bool
207*cdf0e10cSrcweir     handleAuthenticationRequest(
208*cdf0e10cSrcweir         com::sun::star::uno::Reference<
209*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
210*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir     bool
213*cdf0e10cSrcweir     handleCertificateValidationRequest(
214*cdf0e10cSrcweir         com::sun::star::uno::Reference<
215*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
216*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
217*cdf0e10cSrcweir 
218*cdf0e10cSrcweir     void
219*cdf0e10cSrcweir     handleNameClashResolveRequest(
220*cdf0e10cSrcweir         com::sun::star::ucb::NameClashResolveRequest const & rRequest,
221*cdf0e10cSrcweir         com::sun::star::uno::Sequence<
222*cdf0e10cSrcweir             com::sun::star::uno::Reference<
223*cdf0e10cSrcweir                 com::sun::star::task::XInteractionContinuation > > const &
224*cdf0e10cSrcweir                     rContinuations)
225*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
226*cdf0e10cSrcweir 
227*cdf0e10cSrcweir     bool
228*cdf0e10cSrcweir     handleMasterPasswordRequest(
229*cdf0e10cSrcweir         com::sun::star::uno::Reference<
230*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
231*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
232*cdf0e10cSrcweir 
233*cdf0e10cSrcweir     bool
234*cdf0e10cSrcweir     handlePasswordRequest(
235*cdf0e10cSrcweir         com::sun::star::uno::Reference<
236*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
237*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
238*cdf0e10cSrcweir 
239*cdf0e10cSrcweir     bool
240*cdf0e10cSrcweir     handleCookiesRequest(
241*cdf0e10cSrcweir         com::sun::star::uno::Reference<
242*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
243*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
244*cdf0e10cSrcweir 
245*cdf0e10cSrcweir     bool
246*cdf0e10cSrcweir     handleNoSuchFilterRequest(
247*cdf0e10cSrcweir         com::sun::star::uno::Reference<
248*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
249*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
250*cdf0e10cSrcweir 
251*cdf0e10cSrcweir     bool
252*cdf0e10cSrcweir     handleAmbigousFilterRequest(
253*cdf0e10cSrcweir         com::sun::star::uno::Reference<
254*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
255*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
256*cdf0e10cSrcweir 
257*cdf0e10cSrcweir     bool
258*cdf0e10cSrcweir     handleFilterOptionsRequest(
259*cdf0e10cSrcweir         com::sun::star::uno::Reference<
260*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
261*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
262*cdf0e10cSrcweir 
263*cdf0e10cSrcweir     void
264*cdf0e10cSrcweir     handleErrorHandlerRequest(
265*cdf0e10cSrcweir         com::sun::star::task::InteractionClassification eClassification,
266*cdf0e10cSrcweir         ErrCode nErrorCode,
267*cdf0e10cSrcweir         std::vector< rtl::OUString > const & rArguments,
268*cdf0e10cSrcweir         com::sun::star::uno::Sequence<
269*cdf0e10cSrcweir             com::sun::star::uno::Reference<
270*cdf0e10cSrcweir                 com::sun::star::task::XInteractionContinuation > > const &
271*cdf0e10cSrcweir                     rContinuations,
272*cdf0e10cSrcweir         bool bObtainErrorStringOnly,
273*cdf0e10cSrcweir         bool & bHasErrorString,
274*cdf0e10cSrcweir         rtl::OUString & rErrorString)
275*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
276*cdf0e10cSrcweir 
277*cdf0e10cSrcweir     void
278*cdf0e10cSrcweir     handleGenericErrorRequest(
279*cdf0e10cSrcweir         sal_Int32 nErrorCode,
280*cdf0e10cSrcweir         com::sun::star::uno::Sequence<
281*cdf0e10cSrcweir             com::sun::star::uno::Reference<
282*cdf0e10cSrcweir                 com::sun::star::task::XInteractionContinuation > > const &
283*cdf0e10cSrcweir                     rContinuations,
284*cdf0e10cSrcweir         bool bObtainErrorStringOnly,
285*cdf0e10cSrcweir         bool & bHasErrorString,
286*cdf0e10cSrcweir         rtl::OUString & rErrorString)
287*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
288*cdf0e10cSrcweir 
289*cdf0e10cSrcweir     void
290*cdf0e10cSrcweir     handleMacroConfirmRequest(
291*cdf0e10cSrcweir         const ::rtl::OUString& aDocumentURL,
292*cdf0e10cSrcweir         const ::com::sun::star::uno::Reference<
293*cdf0e10cSrcweir             ::com::sun::star::embed::XStorage >& xZipStorage,
294*cdf0e10cSrcweir         const ::rtl::OUString& aDocumentVersion,
295*cdf0e10cSrcweir         const ::com::sun::star::uno::Sequence<
296*cdf0e10cSrcweir             ::com::sun::star::security::DocumentSignatureInformation >
297*cdf0e10cSrcweir                 aSignInfo,
298*cdf0e10cSrcweir         com::sun::star::uno::Sequence<
299*cdf0e10cSrcweir             com::sun::star::uno::Reference<
300*cdf0e10cSrcweir                 com::sun::star::task::XInteractionContinuation > > const &
301*cdf0e10cSrcweir                     rContinuations)
302*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
303*cdf0e10cSrcweir 
304*cdf0e10cSrcweir     void
305*cdf0e10cSrcweir     handleFutureDocumentVersionUpdateRequest(
306*cdf0e10cSrcweir         const ::com::sun::star::task::FutureDocumentVersionProductUpdateRequest&
307*cdf0e10cSrcweir             _rRequest,
308*cdf0e10cSrcweir         com::sun::star::uno::Sequence<
309*cdf0e10cSrcweir             com::sun::star::uno::Reference<
310*cdf0e10cSrcweir                 com::sun::star::task::XInteractionContinuation > > const &
311*cdf0e10cSrcweir                     rContinuations)
312*cdf0e10cSrcweir         SAL_THROW((com::sun::star::uno::RuntimeException));
313*cdf0e10cSrcweir 
314*cdf0e10cSrcweir     void
315*cdf0e10cSrcweir     handleBrokenPackageRequest(
316*cdf0e10cSrcweir         std::vector< rtl::OUString > const & rArguments,
317*cdf0e10cSrcweir         ::com::sun::star::uno::Sequence<
318*cdf0e10cSrcweir             ::com::sun::star::uno::Reference<
319*cdf0e10cSrcweir                 ::com::sun::star::task::XInteractionContinuation > > const &
320*cdf0e10cSrcweir                     rContinuations,
321*cdf0e10cSrcweir         bool bObtainErrorStringOnly,
322*cdf0e10cSrcweir         bool & bHasErrorString,
323*cdf0e10cSrcweir         rtl::OUString & rErrorString)
324*cdf0e10cSrcweir         SAL_THROW((::com::sun::star::uno::RuntimeException));
325*cdf0e10cSrcweir 
326*cdf0e10cSrcweir     bool handleLockedDocumentRequest(
327*cdf0e10cSrcweir         com::sun::star::uno::Reference<
328*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
329*cdf0e10cSrcweir         SAL_THROW((::com::sun::star::uno::RuntimeException));
330*cdf0e10cSrcweir 
331*cdf0e10cSrcweir     bool handleChangedByOthersRequest(
332*cdf0e10cSrcweir         com::sun::star::uno::Reference<
333*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
334*cdf0e10cSrcweir         SAL_THROW((::com::sun::star::uno::RuntimeException));
335*cdf0e10cSrcweir 
336*cdf0e10cSrcweir     bool handleLockFileIgnoreRequest(
337*cdf0e10cSrcweir         com::sun::star::uno::Reference<
338*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
339*cdf0e10cSrcweir         SAL_THROW((::com::sun::star::uno::RuntimeException));
340*cdf0e10cSrcweir 
341*cdf0e10cSrcweir 	bool    handleCustomRequest(
342*cdf0e10cSrcweir                 const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& i_rRequest,
343*cdf0e10cSrcweir                 const ::rtl::OUString& i_rServiceName
344*cdf0e10cSrcweir             ) const;
345*cdf0e10cSrcweir };
346*cdf0e10cSrcweir 
347*cdf0e10cSrcweir class ErrorResource: private Resource
348*cdf0e10cSrcweir {
349*cdf0e10cSrcweir public:
350*cdf0e10cSrcweir     inline ErrorResource(ResId & rResId) SAL_THROW(()): Resource(rResId) {}
351*cdf0e10cSrcweir 
352*cdf0e10cSrcweir     inline ~ErrorResource() SAL_THROW(()) { FreeResource(); }
353*cdf0e10cSrcweir 
354*cdf0e10cSrcweir     bool getString(ErrCode nErrorCode, rtl::OUString * pString) const
355*cdf0e10cSrcweir         SAL_THROW(());
356*cdf0e10cSrcweir };
357*cdf0e10cSrcweir 
358*cdf0e10cSrcweir /*
359*cdf0e10cSrcweir class InteractionRequest
360*cdf0e10cSrcweir {
361*cdf0e10cSrcweir public:
362*cdf0e10cSrcweir     InteractionRequest(
363*cdf0e10cSrcweir         com::sun::star::uno::Reference<
364*cdf0e10cSrcweir             com::sun::star::task::XInteractionRequest > const & rRequest)
365*cdf0e10cSrcweir     : m_aRequest( rRequest ) {}
366*cdf0e10cSrcweir 
367*cdf0e10cSrcweir     virtual bool toString( rtl::OUString & rString ) = 0;
368*cdf0e10cSrcweir     virtual bool handle( rtl::OUString & rString ) = 0;
369*cdf0e10cSrcweir 
370*cdf0e10cSrcweir private:
371*cdf0e10cSrcweir     com::sun::star::uno::Reference<
372*cdf0e10cSrcweir         com::sun::star::task::XInteractionRequest > m_aRequest;
373*cdf0e10cSrcweir };
374*cdf0e10cSrcweir */
375*cdf0e10cSrcweir 
376*cdf0e10cSrcweir #endif // UUI_IAHNDL_HXX
377