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