xref: /aoo42x/main/framework/inc/services/task.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 __FRAMEWORK_SERVICES_TASK_HXX_
29*cdf0e10cSrcweir #define __FRAMEWORK_SERVICES_TASK_HXX_
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
32*cdf0e10cSrcweir //	my own includes
33*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir #include <services/frame.hxx>
36*cdf0e10cSrcweir #include <macros/generic.hxx>
37*cdf0e10cSrcweir #include <macros/debug.hxx>
38*cdf0e10cSrcweir #include <macros/xinterface.hxx>
39*cdf0e10cSrcweir #include <macros/xtypeprovider.hxx>
40*cdf0e10cSrcweir #include <macros/xserviceinfo.hxx>
41*cdf0e10cSrcweir 
42*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
43*cdf0e10cSrcweir //	interface includes
44*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
45*cdf0e10cSrcweir #include <com/sun/star/frame/XTask.hpp>
46*cdf0e10cSrcweir #include <com/sun/star/awt/Point.hpp>
47*cdf0e10cSrcweir #include <com/sun/star/awt/Size.hpp>
48*cdf0e10cSrcweir 
49*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
50*cdf0e10cSrcweir //	other includes
51*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
52*cdf0e10cSrcweir #include <cppuhelper/weak.hxx>
53*cdf0e10cSrcweir #include <cppuhelper/propshlp.hxx>
54*cdf0e10cSrcweir 
55*cdf0e10cSrcweir #include <tools/link.hxx>
56*cdf0e10cSrcweir #include <vcl/evntpost.hxx>
57*cdf0e10cSrcweir 
58*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
59*cdf0e10cSrcweir //	namespace
60*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
61*cdf0e10cSrcweir 
62*cdf0e10cSrcweir namespace framework{
63*cdf0e10cSrcweir 
64*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
65*cdf0e10cSrcweir //	exported const
66*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
67*cdf0e10cSrcweir 
68*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
69*cdf0e10cSrcweir //	exported definitions
70*cdf0e10cSrcweir //_________________________________________________________________________________________________________________
71*cdf0e10cSrcweir 
72*cdf0e10cSrcweir /*-************************************************************************************************************//**
73*cdf0e10cSrcweir 	@short		implements an special frame - a task frame
74*cdf0e10cSrcweir 
75*cdf0e10cSrcweir 	@descr		-
76*cdf0e10cSrcweir 
77*cdf0e10cSrcweir 	@implements	XTask
78*cdf0e10cSrcweir 
79*cdf0e10cSrcweir 	@base		Frame
80*cdf0e10cSrcweir 				OPropertySet
81*cdf0e10cSrcweir *//*-*************************************************************************************************************/
82*cdf0e10cSrcweir 
83*cdf0e10cSrcweir class Task  :   public css::frame::XTask    ,   // => XFrame => XComponent
84*cdf0e10cSrcweir                 public Frame                    // Order of baseclasses is neccessary for right initialization!
85*cdf0e10cSrcweir {
86*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
87*cdf0e10cSrcweir 	//	public methods
88*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
89*cdf0e10cSrcweir 
90*cdf0e10cSrcweir 	public:
91*cdf0e10cSrcweir 
92*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
93*cdf0e10cSrcweir 		//	constructor / destructor
94*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
95*cdf0e10cSrcweir 
96*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
97*cdf0e10cSrcweir 			@short		standard constructor to create instance
98*cdf0e10cSrcweir 
99*cdf0e10cSrcweir 			@descr		This constructor initialize a new instance of this class,
100*cdf0e10cSrcweir 						and will be set valid values on his member and baseclasses.
101*cdf0e10cSrcweir 
102*cdf0e10cSrcweir 			@seealso	-
103*cdf0e10cSrcweir 
104*cdf0e10cSrcweir 			@param		-
105*cdf0e10cSrcweir 
106*cdf0e10cSrcweir 			@return		-
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir 			@onerror	-
109*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
110*cdf0e10cSrcweir 
111*cdf0e10cSrcweir 	 	Task( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory );
112*cdf0e10cSrcweir 
113*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
114*cdf0e10cSrcweir 			@short		standard destructor
115*cdf0e10cSrcweir 
116*cdf0e10cSrcweir 			@descr		This method destruct an instance of this class and clear some member.
117*cdf0e10cSrcweir 
118*cdf0e10cSrcweir 			@seealso	-
119*cdf0e10cSrcweir 
120*cdf0e10cSrcweir 			@param		-
121*cdf0e10cSrcweir 
122*cdf0e10cSrcweir 			@return		-
123*cdf0e10cSrcweir 
124*cdf0e10cSrcweir 			@onerror	-
125*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
126*cdf0e10cSrcweir 
127*cdf0e10cSrcweir 		virtual	~Task();
128*cdf0e10cSrcweir 
129*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
130*cdf0e10cSrcweir 		//	XInterface, XTypeProvider, XServiceInfo
131*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
132*cdf0e10cSrcweir 
133*cdf0e10cSrcweir 		DECLARE_XINTERFACE
134*cdf0e10cSrcweir 		DECLARE_XTYPEPROVIDER
135*cdf0e10cSrcweir 		DECLARE_XSERVICEINFO
136*cdf0e10cSrcweir 
137*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
138*cdf0e10cSrcweir 		//	XTask
139*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
140*cdf0e10cSrcweir 
141*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
142*cdf0e10cSrcweir 			@short		-
143*cdf0e10cSrcweir 
144*cdf0e10cSrcweir 			@descr		-
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir 			@seealso	-
147*cdf0e10cSrcweir 
148*cdf0e10cSrcweir 			@param		-
149*cdf0e10cSrcweir 
150*cdf0e10cSrcweir 			@return		-
151*cdf0e10cSrcweir 
152*cdf0e10cSrcweir 			@onerror	-
153*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
154*cdf0e10cSrcweir 
155*cdf0e10cSrcweir 		virtual sal_Bool SAL_CALL close() throw( css::uno::RuntimeException );
156*cdf0e10cSrcweir 
157*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
158*cdf0e10cSrcweir 			@short		-
159*cdf0e10cSrcweir 
160*cdf0e10cSrcweir 			@descr		-
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir 			@seealso	-
163*cdf0e10cSrcweir 
164*cdf0e10cSrcweir 			@param		-
165*cdf0e10cSrcweir 
166*cdf0e10cSrcweir 			@return		-
167*cdf0e10cSrcweir 
168*cdf0e10cSrcweir 			@onerror	-
169*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
170*cdf0e10cSrcweir 
171*cdf0e10cSrcweir     	virtual void SAL_CALL tileWindows() throw( css::uno::RuntimeException );
172*cdf0e10cSrcweir 
173*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
174*cdf0e10cSrcweir 			@short		-
175*cdf0e10cSrcweir 
176*cdf0e10cSrcweir 			@descr		-
177*cdf0e10cSrcweir 
178*cdf0e10cSrcweir 			@seealso	-
179*cdf0e10cSrcweir 
180*cdf0e10cSrcweir 			@param		-
181*cdf0e10cSrcweir 
182*cdf0e10cSrcweir 			@return		-
183*cdf0e10cSrcweir 
184*cdf0e10cSrcweir 			@onerror	-
185*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
186*cdf0e10cSrcweir 
187*cdf0e10cSrcweir     	virtual void SAL_CALL arrangeWindowsVertical() throw( css::uno::RuntimeException );
188*cdf0e10cSrcweir 
189*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
190*cdf0e10cSrcweir 			@short		-
191*cdf0e10cSrcweir 
192*cdf0e10cSrcweir 			@descr		-
193*cdf0e10cSrcweir 
194*cdf0e10cSrcweir 			@seealso	-
195*cdf0e10cSrcweir 
196*cdf0e10cSrcweir 			@param		-
197*cdf0e10cSrcweir 
198*cdf0e10cSrcweir 			@return		-
199*cdf0e10cSrcweir 
200*cdf0e10cSrcweir 			@onerror	-
201*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
202*cdf0e10cSrcweir 
203*cdf0e10cSrcweir     	virtual void SAL_CALL arrangeWindowsHorizontal() throw( css::uno::RuntimeException );
204*cdf0e10cSrcweir 
205*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
206*cdf0e10cSrcweir 		//	 XComponent
207*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
208*cdf0e10cSrcweir 
209*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
210*cdf0e10cSrcweir 			@short		-
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir 			@descr		We must overwrite this method, because baseclass Frame implements XFrame and XComponent.
213*cdf0e10cSrcweir 						XTask is derived from these classes to! The compiler don't know, which base is the right one.
214*cdf0e10cSrcweir 
215*cdf0e10cSrcweir 			@seealso	-
216*cdf0e10cSrcweir 
217*cdf0e10cSrcweir 			@param		-
218*cdf0e10cSrcweir 
219*cdf0e10cSrcweir 			@return		-
220*cdf0e10cSrcweir 
221*cdf0e10cSrcweir 			@onerror	-
222*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
223*cdf0e10cSrcweir 
224*cdf0e10cSrcweir     	virtual void SAL_CALL dispose() throw( css::uno::RuntimeException )
225*cdf0e10cSrcweir 		{
226*cdf0e10cSrcweir 			Frame::dispose();
227*cdf0e10cSrcweir 		}
228*cdf0e10cSrcweir 
229*cdf0e10cSrcweir 		/*-*******************************************************************************************************/
230*cdf0e10cSrcweir     	virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) throw( css::uno::RuntimeException )
231*cdf0e10cSrcweir 		{
232*cdf0e10cSrcweir 			Frame::addEventListener( xListener );
233*cdf0e10cSrcweir 		}
234*cdf0e10cSrcweir 
235*cdf0e10cSrcweir 		/*-*******************************************************************************************************/
236*cdf0e10cSrcweir     	virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) throw( css::uno::RuntimeException )
237*cdf0e10cSrcweir 		{
238*cdf0e10cSrcweir 			Frame::removeEventListener( xListener );
239*cdf0e10cSrcweir 		}
240*cdf0e10cSrcweir 
241*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
242*cdf0e10cSrcweir 		//	 XFrame
243*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
244*cdf0e10cSrcweir 
245*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
246*cdf0e10cSrcweir 			@short		-
247*cdf0e10cSrcweir 
248*cdf0e10cSrcweir 			@descr		We must overwrite this method, because baseclass Frame implements XFrame and XComponent.
249*cdf0e10cSrcweir 						XTask is derived from these classes to! The compiler don't know, which base is right.
250*cdf0e10cSrcweir 
251*cdf0e10cSrcweir 			@seealso	-
252*cdf0e10cSrcweir 
253*cdf0e10cSrcweir 			@param		-
254*cdf0e10cSrcweir 
255*cdf0e10cSrcweir 			@return		-
256*cdf0e10cSrcweir 
257*cdf0e10cSrcweir 			@onerror	-
258*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
259*cdf0e10cSrcweir 
260*cdf0e10cSrcweir     	virtual void SAL_CALL initialize( const css::uno::Reference< css::awt::XWindow >& xWindow ) throw( css::uno::RuntimeException )
261*cdf0e10cSrcweir 		{
262*cdf0e10cSrcweir 			Frame::initialize( xWindow );
263*cdf0e10cSrcweir 		}
264*cdf0e10cSrcweir 
265*cdf0e10cSrcweir     	virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getContainerWindow() throw( css::uno::RuntimeException )
266*cdf0e10cSrcweir 		{
267*cdf0e10cSrcweir 			return Frame::getContainerWindow();
268*cdf0e10cSrcweir 		}
269*cdf0e10cSrcweir 
270*cdf0e10cSrcweir     	virtual void SAL_CALL setCreator( const css::uno::Reference< css::frame::XFramesSupplier >& xCreator ) throw( css::uno::RuntimeException )
271*cdf0e10cSrcweir 		{
272*cdf0e10cSrcweir 			Frame::setCreator( xCreator );
273*cdf0e10cSrcweir 		}
274*cdf0e10cSrcweir 
275*cdf0e10cSrcweir     	virtual css::uno::Reference< css::frame::XFramesSupplier > SAL_CALL getCreator() throw( css::uno::RuntimeException )
276*cdf0e10cSrcweir 		{
277*cdf0e10cSrcweir 			return Frame::getCreator();
278*cdf0e10cSrcweir 		}
279*cdf0e10cSrcweir 
280*cdf0e10cSrcweir     	virtual ::rtl::OUString SAL_CALL getName() throw( css::uno::RuntimeException )
281*cdf0e10cSrcweir 		{
282*cdf0e10cSrcweir 			return Frame::getName();
283*cdf0e10cSrcweir 		}
284*cdf0e10cSrcweir 
285*cdf0e10cSrcweir     	virtual void SAL_CALL setName( const ::rtl::OUString& sName ) throw( css::uno::RuntimeException )
286*cdf0e10cSrcweir 		{
287*cdf0e10cSrcweir 			Frame::setName( sName );
288*cdf0e10cSrcweir 		}
289*cdf0e10cSrcweir 
290*cdf0e10cSrcweir     	virtual sal_Bool SAL_CALL isTop() throw( css::uno::RuntimeException )
291*cdf0e10cSrcweir 		{
292*cdf0e10cSrcweir 			return Frame::isTop();
293*cdf0e10cSrcweir 		}
294*cdf0e10cSrcweir 
295*cdf0e10cSrcweir     	virtual void SAL_CALL activate() throw( css::uno::RuntimeException )
296*cdf0e10cSrcweir 		{
297*cdf0e10cSrcweir 			Frame::activate();
298*cdf0e10cSrcweir 		}
299*cdf0e10cSrcweir 
300*cdf0e10cSrcweir     	virtual void SAL_CALL deactivate() throw( css::uno::RuntimeException )
301*cdf0e10cSrcweir 		{
302*cdf0e10cSrcweir 			Frame::deactivate();
303*cdf0e10cSrcweir 		}
304*cdf0e10cSrcweir 
305*cdf0e10cSrcweir     	virtual sal_Bool SAL_CALL isActive() throw( css::uno::RuntimeException )
306*cdf0e10cSrcweir 		{
307*cdf0e10cSrcweir 			return Frame::isActive();
308*cdf0e10cSrcweir 		}
309*cdf0e10cSrcweir 
310*cdf0e10cSrcweir     	virtual sal_Bool SAL_CALL setComponent(	const	css::uno::Reference< css::awt::XWindow >&		xComponentWindow	,
311*cdf0e10cSrcweir 												const	css::uno::Reference< css::frame::XController >&	xController			) throw( css::uno::RuntimeException )
312*cdf0e10cSrcweir 		{
313*cdf0e10cSrcweir 			return Frame::setComponent( xComponentWindow, xController );
314*cdf0e10cSrcweir 		}
315*cdf0e10cSrcweir 
316*cdf0e10cSrcweir     	virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getComponentWindow() throw( css::uno::RuntimeException )
317*cdf0e10cSrcweir 		{
318*cdf0e10cSrcweir 			return Frame::getComponentWindow();
319*cdf0e10cSrcweir 		}
320*cdf0e10cSrcweir 
321*cdf0e10cSrcweir     	virtual css::uno::Reference< css::frame::XController > SAL_CALL getController() throw( css::uno::RuntimeException )
322*cdf0e10cSrcweir 		{
323*cdf0e10cSrcweir 			return Frame::getController();
324*cdf0e10cSrcweir 		}
325*cdf0e10cSrcweir 
326*cdf0e10cSrcweir     	virtual void SAL_CALL contextChanged() throw( css::uno::RuntimeException )
327*cdf0e10cSrcweir 		{
328*cdf0e10cSrcweir 			Frame::contextChanged();
329*cdf0e10cSrcweir 		}
330*cdf0e10cSrcweir 
331*cdf0e10cSrcweir     	virtual void SAL_CALL addFrameActionListener( const css::uno::Reference< css::frame::XFrameActionListener >& xListener ) throw( css::uno::RuntimeException )
332*cdf0e10cSrcweir 		{
333*cdf0e10cSrcweir 			Frame::addFrameActionListener( xListener );
334*cdf0e10cSrcweir 		}
335*cdf0e10cSrcweir 
336*cdf0e10cSrcweir     	virtual void SAL_CALL removeFrameActionListener( const css::uno::Reference< css::frame::XFrameActionListener >& xListener ) throw( css::uno::RuntimeException )
337*cdf0e10cSrcweir 		{
338*cdf0e10cSrcweir 			Frame::removeFrameActionListener( xListener );
339*cdf0e10cSrcweir 		}
340*cdf0e10cSrcweir 
341*cdf0e10cSrcweir     	virtual css::uno::Reference< css::frame::XFrame > SAL_CALL findFrame(	const	::rtl::OUString&	sTargetFrameName	,
342*cdf0e10cSrcweir 													   									sal_Int32			nSearchFlags		) throw( css::uno::RuntimeException );
343*cdf0e10cSrcweir 
344*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
345*cdf0e10cSrcweir 		//	 XTopWindowListener
346*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
347*cdf0e10cSrcweir 
348*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
349*cdf0e10cSrcweir 			@short		-
350*cdf0e10cSrcweir 
351*cdf0e10cSrcweir 			@descr		-
352*cdf0e10cSrcweir 
353*cdf0e10cSrcweir 			@seealso	-
354*cdf0e10cSrcweir 			@seealso	-
355*cdf0e10cSrcweir 
356*cdf0e10cSrcweir 			@param		-
357*cdf0e10cSrcweir 
358*cdf0e10cSrcweir 			@return		-
359*cdf0e10cSrcweir 
360*cdf0e10cSrcweir 			@onerror	-
361*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
362*cdf0e10cSrcweir 
363*cdf0e10cSrcweir 		virtual void SAL_CALL windowClosing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException );
364*cdf0e10cSrcweir 
365*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
366*cdf0e10cSrcweir 			@short		-
367*cdf0e10cSrcweir 
368*cdf0e10cSrcweir 			@descr		-
369*cdf0e10cSrcweir 
370*cdf0e10cSrcweir 			@seealso	-
371*cdf0e10cSrcweir 			@seealso	-
372*cdf0e10cSrcweir 
373*cdf0e10cSrcweir 			@param		-
374*cdf0e10cSrcweir 
375*cdf0e10cSrcweir 			@return		-
376*cdf0e10cSrcweir 
377*cdf0e10cSrcweir 			@onerror	-
378*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
379*cdf0e10cSrcweir 
380*cdf0e10cSrcweir 		virtual void SAL_CALL windowActivated( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException );
381*cdf0e10cSrcweir 
382*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
383*cdf0e10cSrcweir 			@short		-
384*cdf0e10cSrcweir 
385*cdf0e10cSrcweir 			@descr		-
386*cdf0e10cSrcweir 
387*cdf0e10cSrcweir 			@seealso	-
388*cdf0e10cSrcweir 			@seealso	-
389*cdf0e10cSrcweir 
390*cdf0e10cSrcweir 			@param		-
391*cdf0e10cSrcweir 
392*cdf0e10cSrcweir 			@return		-
393*cdf0e10cSrcweir 
394*cdf0e10cSrcweir 			@onerror	-
395*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
396*cdf0e10cSrcweir 
397*cdf0e10cSrcweir     	virtual void SAL_CALL windowDeactivated( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException );
398*cdf0e10cSrcweir 
399*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
400*cdf0e10cSrcweir 		//	 XEventListener
401*cdf0e10cSrcweir 		//---------------------------------------------------------------------------------------------------------
402*cdf0e10cSrcweir 
403*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
404*cdf0e10cSrcweir 			@short		-
405*cdf0e10cSrcweir 
406*cdf0e10cSrcweir 			@descr		This object is forced to release all references to the interfaces given
407*cdf0e10cSrcweir 						by the parameter Source.
408*cdf0e10cSrcweir 
409*cdf0e10cSrcweir 			@seealso	-
410*cdf0e10cSrcweir 
411*cdf0e10cSrcweir 			@param		-
412*cdf0e10cSrcweir 
413*cdf0e10cSrcweir 			@return		-
414*cdf0e10cSrcweir 
415*cdf0e10cSrcweir 			@onerror	-
416*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
417*cdf0e10cSrcweir 
418*cdf0e10cSrcweir 	    virtual void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException );
419*cdf0e10cSrcweir 
420*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
421*cdf0e10cSrcweir 	//	protected methods
422*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
423*cdf0e10cSrcweir 
424*cdf0e10cSrcweir 	protected:
425*cdf0e10cSrcweir 
426*cdf0e10cSrcweir 		//---------------------------------------------------------------------------
427*cdf0e10cSrcweir 		//	OPropertySetHelper
428*cdf0e10cSrcweir 		//---------------------------------------------------------------------------
429*cdf0e10cSrcweir 
430*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
431*cdf0e10cSrcweir 			@short		try to convert a property value
432*cdf0e10cSrcweir 			@descr		This method is calling from helperclass "OPropertySetHelper".
433*cdf0e10cSrcweir 						Don't use this directly!
434*cdf0e10cSrcweir 						You must try to convert the value of given propertyhandle and
435*cdf0e10cSrcweir 						return results of this operation. This will be use to ask vetoable
436*cdf0e10cSrcweir 						listener. If no listener have a veto, we will change value realy!
437*cdf0e10cSrcweir 						( in method setFastPropertyValue_NoBroadcast(...) )
438*cdf0e10cSrcweir 
439*cdf0e10cSrcweir 			@seealso	OPropertySetHelper
440*cdf0e10cSrcweir 			@seealso	setFastPropertyValue_NoBroadcast()
441*cdf0e10cSrcweir 
442*cdf0e10cSrcweir 			@param		"aConvertedValue"	new converted value of property
443*cdf0e10cSrcweir 			@param		"aOldValue"			old value of property
444*cdf0e10cSrcweir 			@param		"nHandle"			handle of property
445*cdf0e10cSrcweir 			@param		"aValue"			new value of property
446*cdf0e10cSrcweir 
447*cdf0e10cSrcweir 			@return		sal_True if value will be changed, sal_FALSE otherway
448*cdf0e10cSrcweir 
449*cdf0e10cSrcweir 			@onerror	IllegalArgumentException, if you call this with an invalid argument
450*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
451*cdf0e10cSrcweir /*
452*cdf0e10cSrcweir 		virtual sal_Bool SAL_CALL convertFastPropertyValue(			css::uno::Any&		aConvertedValue	,
453*cdf0e10cSrcweir 								  									css::uno::Any&		aOldValue		,
454*cdf0e10cSrcweir 																	sal_Int32			nHandle			,
455*cdf0e10cSrcweir 															const	css::uno::Any&		aValue			) throw( css::lang::IllegalArgumentException );
456*cdf0e10cSrcweir */
457*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
458*cdf0e10cSrcweir 			@short		set value of a transient property
459*cdf0e10cSrcweir 			@descr		This method is calling from helperclass "OPropertySetHelper".
460*cdf0e10cSrcweir 						Don't use this directly!
461*cdf0e10cSrcweir 						Handle and value are valid everyway! You must set the new value only.
462*cdf0e10cSrcweir 						After this, baseclass send messages to all listener automaticly.
463*cdf0e10cSrcweir 
464*cdf0e10cSrcweir 			@seealso	OPropertySetHelper
465*cdf0e10cSrcweir 
466*cdf0e10cSrcweir 			@param      "nHandle"	handle of property to change
467*cdf0e10cSrcweir 			@param      "aValue"	new value of property
468*cdf0e10cSrcweir 
469*cdf0e10cSrcweir 			@return		-
470*cdf0e10cSrcweir 
471*cdf0e10cSrcweir 			@onerror	An exception is thrown.
472*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
473*cdf0e10cSrcweir /*
474*cdf0e10cSrcweir 		virtual void SAL_CALL setFastPropertyValue_NoBroadcast(			sal_Int32		nHandle	,
475*cdf0e10cSrcweir 							  									const	css::uno::Any&	aValue	) throw( css::uno::Exception );
476*cdf0e10cSrcweir */
477*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
478*cdf0e10cSrcweir 			@short		get value of a transient property
479*cdf0e10cSrcweir 			@descr		This method is calling from helperclass "OPropertySetHelper".
480*cdf0e10cSrcweir 						Don't use this directly!
481*cdf0e10cSrcweir 
482*cdf0e10cSrcweir 			@seealso	OPropertySetHelper
483*cdf0e10cSrcweir 
484*cdf0e10cSrcweir 			@param      "nHandle"	handle of property to change
485*cdf0e10cSrcweir 			@param      "aValue"	current value of property
486*cdf0e10cSrcweir 
487*cdf0e10cSrcweir 			@return		-
488*cdf0e10cSrcweir 
489*cdf0e10cSrcweir 			@onerror	-
490*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
491*cdf0e10cSrcweir /*
492*cdf0e10cSrcweir 		virtual void SAL_CALL getFastPropertyValue(	css::uno::Any&	aValue	,
493*cdf0e10cSrcweir 							  						sal_Int32		nHandle	) const;
494*cdf0e10cSrcweir */
495*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
496*cdf0e10cSrcweir 			@short      return structure and information about transient properties
497*cdf0e10cSrcweir 			@descr		This method is calling from helperclass "OPropertySetHelper".
498*cdf0e10cSrcweir 						Don't use this directly!
499*cdf0e10cSrcweir 
500*cdf0e10cSrcweir 			@seealso	OPropertySetHelper
501*cdf0e10cSrcweir 
502*cdf0e10cSrcweir 			@param		-
503*cdf0e10cSrcweir 
504*cdf0e10cSrcweir 			@return		structure with property-informations
505*cdf0e10cSrcweir 
506*cdf0e10cSrcweir 			@onerror	-
507*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
508*cdf0e10cSrcweir /*
509*cdf0e10cSrcweir 		virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
510*cdf0e10cSrcweir */
511*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
512*cdf0e10cSrcweir 			@short		return propertysetinfo
513*cdf0e10cSrcweir 			@descr		You can call this method to get information about transient properties
514*cdf0e10cSrcweir 						of this object.
515*cdf0e10cSrcweir 
516*cdf0e10cSrcweir 			@seealso	OPropertySetHelper
517*cdf0e10cSrcweir 			@seealso	XPropertySet
518*cdf0e10cSrcweir 			@seealso	XMultiPropertySet
519*cdf0e10cSrcweir 
520*cdf0e10cSrcweir 			@param		-
521*cdf0e10cSrcweir 
522*cdf0e10cSrcweir 			@return		reference to object with information [XPropertySetInfo]
523*cdf0e10cSrcweir 
524*cdf0e10cSrcweir 			@onerror	-
525*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
526*cdf0e10cSrcweir /*
527*cdf0e10cSrcweir 		virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo();
528*cdf0e10cSrcweir */
529*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
530*cdf0e10cSrcweir 	//	private methods
531*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
532*cdf0e10cSrcweir 
533*cdf0e10cSrcweir 	private:
534*cdf0e10cSrcweir 
535*cdf0e10cSrcweir         DECL_LINK( Close_Impl, void* );
536*cdf0e10cSrcweir 
537*cdf0e10cSrcweir //        void    impl_SaveWindowAttributes();
538*cdf0e10cSrcweir 
539*cdf0e10cSrcweir /*		sal_Bool impl_tryToChangeProperty(			sal_Bool			bProperty		,
540*cdf0e10cSrcweir 											const	css::uno::Any&		aValue			,
541*cdf0e10cSrcweir 													css::uno::Any&		aOldValue		,
542*cdf0e10cSrcweir 													css::uno::Any&		aConvertedValue	) throw( css::lang::IllegalArgumentException );
543*cdf0e10cSrcweir 		sal_Bool impl_tryToChangeProperty(	const	::rtl::OUString&	sProperty		,
544*cdf0e10cSrcweir 											const	css::uno::Any&		aValue			,
545*cdf0e10cSrcweir 													css::uno::Any&		aOldValue		,
546*cdf0e10cSrcweir 													css::uno::Any&		aConvertedValue	) throw( css::lang::IllegalArgumentException );
547*cdf0e10cSrcweir 		sal_Bool impl_tryToChangeProperty(	const	css::awt::Point&	aProperty		,
548*cdf0e10cSrcweir 											const	css::uno::Any&		aValue			,
549*cdf0e10cSrcweir 													css::uno::Any&		aOldValue		,
550*cdf0e10cSrcweir 													css::uno::Any&		aConvertedValue	) throw( css::lang::IllegalArgumentException );
551*cdf0e10cSrcweir 		sal_Bool impl_tryToChangeProperty(	const	css::awt::Size&		aProperty		,
552*cdf0e10cSrcweir 											const	css::uno::Any&		aValue			,
553*cdf0e10cSrcweir 													css::uno::Any&		aOldValue		,
554*cdf0e10cSrcweir 													css::uno::Any&		aConvertedValue	) throw( css::lang::IllegalArgumentException );
555*cdf0e10cSrcweir 
556*cdf0e10cSrcweir 		static const css::uno::Sequence< css::beans::Property > impl_getStaticPropertyDescriptor();
557*cdf0e10cSrcweir */
558*cdf0e10cSrcweir 
559*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
560*cdf0e10cSrcweir 	//	debug methods
561*cdf0e10cSrcweir 	//	(should be private everyway!)
562*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
563*cdf0e10cSrcweir 
564*cdf0e10cSrcweir 		/*-****************************************************************************************************//**
565*cdf0e10cSrcweir 			@short		debug-method to check incoming parameter of some other mehods of this class
566*cdf0e10cSrcweir 			@descr		The following methods are used to check parameters for other methods
567*cdf0e10cSrcweir 						of this class. The return value is used directly for an ASSERT(...).
568*cdf0e10cSrcweir 
569*cdf0e10cSrcweir 			@seealso	ASSERTs in implementation!
570*cdf0e10cSrcweir 
571*cdf0e10cSrcweir 			@param		references to checking variables
572*cdf0e10cSrcweir 			@return		sal_False on invalid parameter<BR>
573*cdf0e10cSrcweir 						sal_True  otherway
574*cdf0e10cSrcweir 
575*cdf0e10cSrcweir 			@onerror	-
576*cdf0e10cSrcweir 		*//*-*****************************************************************************************************/
577*cdf0e10cSrcweir 
578*cdf0e10cSrcweir 	#ifdef ENABLE_ASSERTIONS
579*cdf0e10cSrcweir 
580*cdf0e10cSrcweir 	private:
581*cdf0e10cSrcweir 
582*cdf0e10cSrcweir 		// Not used in the moment!
583*cdf0e10cSrcweir 
584*cdf0e10cSrcweir 	#endif	// #ifdef ENABLE_ASSERTIONS
585*cdf0e10cSrcweir 
586*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
587*cdf0e10cSrcweir 	//	variables
588*cdf0e10cSrcweir 	//	(should be private everyway!)
589*cdf0e10cSrcweir 	//-------------------------------------------------------------------------------------------------------------
590*cdf0e10cSrcweir 
591*cdf0e10cSrcweir 	protected:
592*cdf0e10cSrcweir 
593*cdf0e10cSrcweir 		// But some values are neede by derived classes!
594*cdf0e10cSrcweir //        sal_Bool            m_bIsPlugIn         ;   /// In objects of these class this member is set to sal_False.
595*cdf0e10cSrcweir 													/// But in derived class PlugInFrame it's overwrited with sal_True!
596*cdf0e10cSrcweir 
597*cdf0e10cSrcweir 	private:
598*cdf0e10cSrcweir 
599*cdf0e10cSrcweir 		// Properties
600*cdf0e10cSrcweir         sal_Bool            m_bIsAlwaysVisible  ;
601*cdf0e10cSrcweir         sal_Bool            m_bIsFloating       ;
602*cdf0e10cSrcweir         css::awt::Point		m_aPosition         ;
603*cdf0e10cSrcweir         css::awt::Size		m_aSize             ;
604*cdf0e10cSrcweir         ::vcl::EventPoster  m_aPoster           ;
605*cdf0e10cSrcweir 
606*cdf0e10cSrcweir };		//	class Tasks
607*cdf0e10cSrcweir 
608*cdf0e10cSrcweir }		//	namespace framework
609*cdf0e10cSrcweir 
610*cdf0e10cSrcweir #endif	//	#ifndef __FRAMEWORK_SERVICES_TASKS_HXX_
611