Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 :
21 : #include "toolkit/controls/animatedimages.hxx"
22 : #include "toolkit/helper/servicenames.hxx"
23 : #include "toolkit/helper/property.hxx"
24 : #include "toolkit/helper/unopropertyarrayhelper.hxx"
25 :
26 : #include <com/sun/star/lang/DisposedException.hpp>
27 : #include <com/sun/star/awt/VisualEffect.hpp>
28 : #include <com/sun/star/awt/ImageScaleMode.hpp>
29 : #include <com/sun/star/util/XModifyListener.hpp>
30 :
31 : //......................................................................................................................
32 : namespace toolkit
33 : {
34 : //......................................................................................................................
35 :
36 : using ::com::sun::star::uno::Reference;
37 : using ::com::sun::star::uno::XInterface;
38 : using ::com::sun::star::uno::UNO_QUERY;
39 : using ::com::sun::star::uno::UNO_QUERY_THROW;
40 : using ::com::sun::star::uno::UNO_SET_THROW;
41 : using ::com::sun::star::uno::Exception;
42 : using ::com::sun::star::uno::RuntimeException;
43 : using ::com::sun::star::uno::Any;
44 : using ::com::sun::star::uno::makeAny;
45 : using ::com::sun::star::uno::Sequence;
46 : using ::com::sun::star::uno::Type;
47 : using ::com::sun::star::container::ContainerEvent;
48 : using ::com::sun::star::container::XContainerListener;
49 : using ::com::sun::star::beans::XPropertySetInfo;
50 : using ::com::sun::star::lang::DisposedException;
51 : using ::com::sun::star::lang::IndexOutOfBoundsException;
52 : using ::com::sun::star::lang::EventObject;
53 : using ::com::sun::star::awt::XControlModel;
54 : using ::com::sun::star::awt::XAnimatedImages;
55 : using ::com::sun::star::lang::IllegalArgumentException;
56 : using ::com::sun::star::awt::XWindowPeer;
57 : using ::com::sun::star::util::XModifyListener;
58 : using ::com::sun::star::awt::XToolkit;
59 : using ::com::sun::star::lang::XMultiServiceFactory;
60 :
61 : namespace VisualEffect = ::com::sun::star::awt::VisualEffect;
62 : namespace ImageScaleMode = ::com::sun::star::awt::ImageScaleMode;
63 :
64 : //==================================================================================================================
65 : //= AnimatedImagesControl
66 : //==================================================================================================================
67 : //------------------------------------------------------------------------------------------------------------------
68 0 : AnimatedImagesControl::AnimatedImagesControl()
69 0 : :AnimatedImagesControl_Base()
70 : {
71 0 : }
72 :
73 : //------------------------------------------------------------------------------------------------------------------
74 0 : OUString AnimatedImagesControl::GetComponentServiceName()
75 : {
76 0 : return OUString( "AnimatedImages" );
77 : }
78 :
79 : //------------------------------------------------------------------------------------------------------------------
80 0 : void SAL_CALL AnimatedImagesControl::startAnimation( ) throw (RuntimeException)
81 : {
82 0 : Reference< XAnimation > xAnimation( getPeer(), UNO_QUERY );
83 0 : if ( xAnimation.is() )
84 0 : xAnimation->startAnimation();
85 0 : }
86 :
87 : //------------------------------------------------------------------------------------------------------------------
88 0 : void SAL_CALL AnimatedImagesControl::stopAnimation( ) throw (RuntimeException)
89 : {
90 0 : Reference< XAnimation > xAnimation( getPeer(), UNO_QUERY );
91 0 : if ( xAnimation.is() )
92 0 : xAnimation->stopAnimation();
93 0 : }
94 :
95 : //------------------------------------------------------------------------------------------------------------------
96 0 : ::sal_Bool SAL_CALL AnimatedImagesControl::isAnimationRunning( ) throw (RuntimeException)
97 : {
98 0 : Reference< XAnimation > xAnimation( getPeer(), UNO_QUERY );
99 0 : if ( xAnimation.is() )
100 0 : return xAnimation->isAnimationRunning();
101 0 : return sal_False;
102 : }
103 :
104 : //------------------------------------------------------------------------------------------------------------------
105 0 : OUString SAL_CALL AnimatedImagesControl::getImplementationName( ) throw(RuntimeException)
106 : {
107 0 : return OUString( "org.openoffice.comp.toolkit.AnimatedImagesControl" );
108 : }
109 :
110 : //------------------------------------------------------------------------------------------------------------------
111 0 : Sequence< OUString > SAL_CALL AnimatedImagesControl::getSupportedServiceNames() throw(RuntimeException)
112 : {
113 0 : Sequence< OUString > aServices( AnimatedImagesControl_Base::getSupportedServiceNames() );
114 0 : aServices.realloc( aServices.getLength() + 1 );
115 0 : aServices[ aServices.getLength() - 1 ] = OUString::createFromAscii( szServiceName_AnimatedImagesControl );
116 0 : return aServices;
117 : }
118 :
119 : //------------------------------------------------------------------------------------------------------------------
120 : namespace
121 : {
122 0 : void lcl_updatePeer( Reference< XWindowPeer > const& i_peer, Reference< XControlModel > const& i_model )
123 : {
124 0 : const Reference< XModifyListener > xPeerModify( i_peer, UNO_QUERY );
125 0 : if ( xPeerModify.is() )
126 : {
127 0 : EventObject aEvent;
128 0 : aEvent.Source = i_model;
129 0 : xPeerModify->modified( aEvent );
130 0 : }
131 0 : }
132 : }
133 :
134 : //------------------------------------------------------------------------------------------------------------------
135 0 : sal_Bool SAL_CALL AnimatedImagesControl::setModel( const Reference< XControlModel >& i_rModel ) throw ( RuntimeException )
136 : {
137 0 : const Reference< XAnimatedImages > xOldContainer( getModel(), UNO_QUERY );
138 0 : const Reference< XAnimatedImages > xNewContainer( i_rModel, UNO_QUERY );
139 :
140 0 : if ( !AnimatedImagesControl_Base::setModel( i_rModel ) )
141 0 : return sal_False;
142 :
143 0 : if ( xOldContainer.is() )
144 0 : xOldContainer->removeContainerListener( this );
145 :
146 0 : if ( xNewContainer.is() )
147 0 : xNewContainer->addContainerListener( this );
148 :
149 0 : lcl_updatePeer( getPeer(), getModel() );
150 :
151 0 : return sal_True;
152 : }
153 :
154 : //------------------------------------------------------------------------------------------------------------------
155 0 : void SAL_CALL AnimatedImagesControl::createPeer( const Reference< XToolkit >& i_toolkit, const Reference< XWindowPeer >& i_parentPeer ) throw(RuntimeException)
156 : {
157 0 : AnimatedImagesControl_Base::createPeer( i_toolkit, i_parentPeer );
158 :
159 0 : lcl_updatePeer( getPeer(), getModel() );
160 0 : }
161 :
162 : //------------------------------------------------------------------------------------------------------------------
163 0 : void SAL_CALL AnimatedImagesControl::elementInserted( const ContainerEvent& i_event ) throw (RuntimeException)
164 : {
165 0 : const Reference< XContainerListener > xPeerListener( getPeer(), UNO_QUERY );
166 0 : if ( xPeerListener.is() )
167 0 : xPeerListener->elementInserted( i_event );
168 0 : }
169 :
170 : //------------------------------------------------------------------------------------------------------------------
171 0 : void SAL_CALL AnimatedImagesControl::elementRemoved( const ContainerEvent& i_event ) throw (RuntimeException)
172 : {
173 0 : const Reference< XContainerListener > xPeerListener( getPeer(), UNO_QUERY );
174 0 : if ( xPeerListener.is() )
175 0 : xPeerListener->elementRemoved( i_event );
176 0 : }
177 :
178 : //------------------------------------------------------------------------------------------------------------------
179 0 : void SAL_CALL AnimatedImagesControl::elementReplaced( const ContainerEvent& i_event ) throw (RuntimeException)
180 : {
181 0 : const Reference< XContainerListener > xPeerListener( getPeer(), UNO_QUERY );
182 0 : if ( xPeerListener.is() )
183 0 : xPeerListener->elementReplaced( i_event );
184 0 : }
185 :
186 : //------------------------------------------------------------------------------------------------------------------
187 0 : void SAL_CALL AnimatedImagesControl::disposing( const EventObject& i_event ) throw (RuntimeException)
188 : {
189 0 : UnoControlBase::disposing( i_event );
190 0 : }
191 :
192 : //==================================================================================================================
193 : //= AnimatedImagesControlModel_Data
194 : //==================================================================================================================
195 0 : struct AnimatedImagesControlModel_Data
196 : {
197 : ::std::vector< Sequence< OUString > > aImageSets;
198 : };
199 :
200 : namespace
201 : {
202 0 : void lcl_checkIndex( const AnimatedImagesControlModel_Data& i_data, const sal_Int32 i_index, const Reference< XInterface >& i_context,
203 : const bool i_forInsert = false )
204 : {
205 0 : if ( ( i_index < 0 ) || ( size_t( i_index ) > i_data.aImageSets.size() + ( i_forInsert ? 1 : 0 ) ) )
206 0 : throw IndexOutOfBoundsException( OUString(), i_context );
207 0 : }
208 :
209 0 : void lcl_notify( ::osl::ClearableMutexGuard& i_guard, ::cppu::OBroadcastHelper& i_broadcaseHelper,
210 : void ( SAL_CALL XContainerListener::*i_notificationMethod )( const ContainerEvent& ),
211 : const sal_Int32 i_accessor, const Sequence< OUString >& i_imageURLs, const Reference< XInterface >& i_context )
212 : {
213 0 : ::cppu::OInterfaceContainerHelper* pContainerListeners = i_broadcaseHelper.getContainer( XContainerListener::static_type() );
214 0 : if ( pContainerListeners == NULL )
215 0 : return;
216 :
217 0 : ContainerEvent aEvent;
218 0 : aEvent.Source = i_context;
219 0 : aEvent.Accessor <<= i_accessor;
220 0 : aEvent.Element <<= i_imageURLs;
221 :
222 0 : i_guard.clear();
223 0 : pContainerListeners->notifyEach( i_notificationMethod, aEvent );
224 : }
225 : }
226 :
227 : //==================================================================================================================
228 : //= AnimatedImagesControlModel
229 : //==================================================================================================================
230 : //------------------------------------------------------------------------------------------------------------------
231 0 : AnimatedImagesControlModel::AnimatedImagesControlModel( Reference< com::sun::star::uno::XComponentContext > const & i_factory )
232 : :AnimatedImagesControlModel_Base( i_factory )
233 0 : ,m_pData( new AnimatedImagesControlModel_Data )
234 : {
235 0 : ImplRegisterProperty( BASEPROPERTY_AUTO_REPEAT );
236 0 : ImplRegisterProperty( BASEPROPERTY_BORDER );
237 0 : ImplRegisterProperty( BASEPROPERTY_BORDERCOLOR );
238 0 : ImplRegisterProperty( BASEPROPERTY_BACKGROUNDCOLOR );
239 0 : ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL );
240 0 : ImplRegisterProperty( BASEPROPERTY_ENABLEVISIBLE );
241 0 : ImplRegisterProperty( BASEPROPERTY_HELPTEXT );
242 0 : ImplRegisterProperty( BASEPROPERTY_HELPURL );
243 0 : ImplRegisterProperty( BASEPROPERTY_IMAGE_SCALE_MODE );
244 0 : ImplRegisterProperty( BASEPROPERTY_STEP_TIME );
245 0 : }
246 :
247 : //------------------------------------------------------------------------------------------------------------------
248 0 : AnimatedImagesControlModel::AnimatedImagesControlModel( const AnimatedImagesControlModel& i_copySource )
249 : :AnimatedImagesControlModel_Base( i_copySource )
250 0 : ,m_pData( new AnimatedImagesControlModel_Data( *i_copySource.m_pData ) )
251 : {
252 0 : }
253 :
254 : //------------------------------------------------------------------------------------------------------------------
255 0 : AnimatedImagesControlModel::~AnimatedImagesControlModel()
256 : {
257 0 : }
258 :
259 : //------------------------------------------------------------------------------------------------------------------
260 0 : UnoControlModel* AnimatedImagesControlModel::Clone() const
261 : {
262 0 : return new AnimatedImagesControlModel( *this );
263 : }
264 :
265 : //------------------------------------------------------------------------------------------------------------------
266 0 : Reference< XPropertySetInfo > SAL_CALL AnimatedImagesControlModel::getPropertySetInfo( ) throw(RuntimeException)
267 : {
268 0 : static Reference< XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
269 0 : return xInfo;
270 : }
271 :
272 : //------------------------------------------------------------------------------------------------------------------
273 0 : OUString SAL_CALL AnimatedImagesControlModel::getServiceName() throw(RuntimeException)
274 : {
275 0 : return OUString::createFromAscii( szServiceName_AnimatedImagesControlModel );
276 : }
277 :
278 : //------------------------------------------------------------------------------------------------------------------
279 0 : OUString SAL_CALL AnimatedImagesControlModel::getImplementationName( ) throw(RuntimeException)
280 : {
281 0 : return OUString("org.openoffice.comp.toolkit.AnimatedImagesControlModel");
282 : }
283 :
284 : //------------------------------------------------------------------------------------------------------------------
285 0 : Sequence< OUString > SAL_CALL AnimatedImagesControlModel::getSupportedServiceNames() throw(RuntimeException)
286 : {
287 0 : Sequence< OUString > aServiceNames(2);
288 0 : aServiceNames[0] = OUString::createFromAscii( szServiceName_AnimatedImagesControlModel );
289 0 : aServiceNames[1] = "com.sun.star.awt.UnoControlModel";
290 0 : return aServiceNames;
291 : }
292 :
293 : //------------------------------------------------------------------------------------------------------------------
294 0 : void SAL_CALL AnimatedImagesControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 i_handle, const Any& i_value ) throw (Exception)
295 : {
296 0 : switch ( i_handle )
297 : {
298 : case BASEPROPERTY_IMAGE_SCALE_MODE:
299 : {
300 0 : sal_Int16 nImageScaleMode( ImageScaleMode::ANISOTROPIC );
301 0 : OSL_VERIFY( i_value >>= nImageScaleMode ); // convertFastPropertyValue ensures that this has the proper type
302 0 : if ( ( nImageScaleMode != ImageScaleMode::NONE )
303 0 : && ( nImageScaleMode != ImageScaleMode::ISOTROPIC )
304 0 : && ( nImageScaleMode != ImageScaleMode::ANISOTROPIC )
305 : )
306 0 : throw IllegalArgumentException( OUString(), *this, 1 );
307 : }
308 0 : break;
309 : }
310 :
311 0 : AnimatedImagesControlModel_Base::setFastPropertyValue_NoBroadcast( i_handle, i_value );
312 0 : }
313 :
314 : //------------------------------------------------------------------------------------------------------------------
315 0 : Any AnimatedImagesControlModel::ImplGetDefaultValue( sal_uInt16 i_propertyId ) const
316 : {
317 0 : switch ( i_propertyId )
318 : {
319 : case BASEPROPERTY_DEFAULTCONTROL:
320 0 : return makeAny( OUString::createFromAscii( szServiceName_AnimatedImagesControl ) );
321 :
322 : case BASEPROPERTY_BORDER:
323 0 : return makeAny( VisualEffect::NONE );
324 :
325 : case BASEPROPERTY_STEP_TIME:
326 0 : return makeAny( (sal_Int32) 100 );
327 :
328 : case BASEPROPERTY_AUTO_REPEAT:
329 0 : return makeAny( (sal_Bool)sal_True );
330 :
331 : case BASEPROPERTY_IMAGE_SCALE_MODE:
332 0 : return makeAny( ImageScaleMode::NONE );
333 :
334 : default:
335 0 : return UnoControlModel::ImplGetDefaultValue( i_propertyId );
336 : }
337 : }
338 :
339 : //------------------------------------------------------------------------------------------------------------------
340 0 : ::cppu::IPropertyArrayHelper& SAL_CALL AnimatedImagesControlModel::getInfoHelper()
341 : {
342 : static UnoPropertyArrayHelper* pHelper = NULL;
343 0 : if ( !pHelper )
344 : {
345 0 : Sequence< sal_Int32 > aIDs = ImplGetPropertyIds();
346 0 : pHelper = new UnoPropertyArrayHelper( aIDs );
347 : }
348 0 : return *pHelper;
349 : }
350 :
351 : //------------------------------------------------------------------------------------------------------------------
352 0 : ::sal_Int32 SAL_CALL AnimatedImagesControlModel::getStepTime() throw (RuntimeException)
353 : {
354 0 : sal_Int32 nStepTime( 100 );
355 0 : OSL_VERIFY( getPropertyValue( GetPropertyName( BASEPROPERTY_STEP_TIME ) ) >>= nStepTime );
356 0 : return nStepTime;
357 : }
358 :
359 : //------------------------------------------------------------------------------------------------------------------
360 0 : void SAL_CALL AnimatedImagesControlModel::setStepTime( ::sal_Int32 i_stepTime ) throw (RuntimeException)
361 : {
362 0 : setPropertyValue( GetPropertyName( BASEPROPERTY_STEP_TIME ), makeAny( i_stepTime ) );
363 0 : }
364 :
365 : //------------------------------------------------------------------------------------------------------------------
366 0 : ::sal_Bool SAL_CALL AnimatedImagesControlModel::getAutoRepeat() throw (RuntimeException)
367 : {
368 0 : sal_Bool bAutoRepeat( sal_True );
369 0 : OSL_VERIFY( getPropertyValue( GetPropertyName( BASEPROPERTY_AUTO_REPEAT ) ) >>= bAutoRepeat );
370 0 : return bAutoRepeat;
371 : }
372 :
373 : //------------------------------------------------------------------------------------------------------------------
374 0 : void SAL_CALL AnimatedImagesControlModel::setAutoRepeat( ::sal_Bool i_autoRepeat ) throw (RuntimeException)
375 : {
376 0 : setPropertyValue( GetPropertyName( BASEPROPERTY_AUTO_REPEAT ), makeAny( i_autoRepeat ) );
377 0 : }
378 :
379 : //------------------------------------------------------------------------------------------------------------------
380 0 : ::sal_Int16 SAL_CALL AnimatedImagesControlModel::getScaleMode() throw (RuntimeException)
381 : {
382 0 : sal_Int16 nImageScaleMode( ImageScaleMode::ANISOTROPIC );
383 0 : OSL_VERIFY( getPropertyValue( GetPropertyName( BASEPROPERTY_IMAGE_SCALE_MODE ) ) >>= nImageScaleMode );
384 0 : return nImageScaleMode;
385 : }
386 :
387 : //------------------------------------------------------------------------------------------------------------------
388 0 : void SAL_CALL AnimatedImagesControlModel::setScaleMode( ::sal_Int16 i_scaleMode ) throw (IllegalArgumentException, RuntimeException)
389 : {
390 0 : setPropertyValue( GetPropertyName( BASEPROPERTY_IMAGE_SCALE_MODE ), makeAny( i_scaleMode ) );
391 0 : }
392 :
393 : //------------------------------------------------------------------------------------------------------------------
394 0 : ::sal_Int32 SAL_CALL AnimatedImagesControlModel::getImageSetCount( ) throw (RuntimeException)
395 : {
396 0 : ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
397 0 : if ( GetBroadcastHelper().bDisposed || GetBroadcastHelper().bInDispose )
398 0 : throw DisposedException();
399 :
400 0 : return m_pData->aImageSets.size();
401 : }
402 :
403 : //------------------------------------------------------------------------------------------------------------------
404 0 : Sequence< OUString > SAL_CALL AnimatedImagesControlModel::getImageSet( ::sal_Int32 i_index ) throw (IndexOutOfBoundsException, RuntimeException)
405 : {
406 0 : ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
407 0 : if ( GetBroadcastHelper().bDisposed || GetBroadcastHelper().bInDispose )
408 0 : throw DisposedException();
409 :
410 0 : lcl_checkIndex( *m_pData, i_index, *this );
411 :
412 0 : return m_pData->aImageSets[ i_index ];
413 : }
414 :
415 : //------------------------------------------------------------------------------------------------------------------
416 0 : void SAL_CALL AnimatedImagesControlModel::insertImageSet( ::sal_Int32 i_index, const Sequence< OUString >& i_imageURLs ) throw (IndexOutOfBoundsException, RuntimeException)
417 : {
418 0 : ::osl::ClearableMutexGuard aGuard( GetMutex() );
419 : // sanity checks
420 0 : if ( GetBroadcastHelper().bDisposed || GetBroadcastHelper().bInDispose )
421 0 : throw DisposedException();
422 :
423 0 : lcl_checkIndex( *m_pData, i_index, *this, true );
424 :
425 : // actaul insertion
426 0 : m_pData->aImageSets.insert( m_pData->aImageSets.begin() + i_index, i_imageURLs );
427 :
428 : // listener notification
429 0 : lcl_notify( aGuard, BrdcstHelper, &XContainerListener::elementInserted, i_index, i_imageURLs, *this );
430 0 : }
431 :
432 : //------------------------------------------------------------------------------------------------------------------
433 0 : void SAL_CALL AnimatedImagesControlModel::replaceImageSet( ::sal_Int32 i_index, const Sequence< OUString >& i_imageURLs ) throw (IndexOutOfBoundsException, RuntimeException)
434 : {
435 0 : ::osl::ClearableMutexGuard aGuard( GetMutex() );
436 : // sanity checks
437 0 : if ( GetBroadcastHelper().bDisposed || GetBroadcastHelper().bInDispose )
438 0 : throw DisposedException();
439 :
440 0 : lcl_checkIndex( *m_pData, i_index, *this );
441 :
442 : // actaul insertion
443 0 : m_pData->aImageSets[ i_index ] = i_imageURLs;
444 :
445 : // listener notification
446 0 : lcl_notify( aGuard, BrdcstHelper, &XContainerListener::elementReplaced, i_index, i_imageURLs, *this );
447 0 : }
448 :
449 : //------------------------------------------------------------------------------------------------------------------
450 0 : void SAL_CALL AnimatedImagesControlModel::removeImageSet( ::sal_Int32 i_index ) throw (IndexOutOfBoundsException, RuntimeException)
451 : {
452 0 : ::osl::ClearableMutexGuard aGuard( GetMutex() );
453 : // sanity checks
454 0 : if ( GetBroadcastHelper().bDisposed || GetBroadcastHelper().bInDispose )
455 0 : throw DisposedException();
456 :
457 0 : lcl_checkIndex( *m_pData, i_index, *this );
458 :
459 : // actual removal
460 0 : ::std::vector< Sequence< OUString > >::iterator removalPos = m_pData->aImageSets.begin() + i_index;
461 0 : Sequence< OUString > aRemovedElement( *removalPos );
462 0 : m_pData->aImageSets.erase( removalPos );
463 :
464 : // listener notification
465 0 : lcl_notify( aGuard, BrdcstHelper, &XContainerListener::elementRemoved, i_index, aRemovedElement, *this );
466 0 : }
467 :
468 : //------------------------------------------------------------------------------------------------------------------
469 0 : void SAL_CALL AnimatedImagesControlModel::addContainerListener( const Reference< XContainerListener >& i_listener ) throw (RuntimeException)
470 : {
471 0 : BrdcstHelper.addListener( XContainerListener::static_type(), i_listener );
472 0 : }
473 :
474 : //------------------------------------------------------------------------------------------------------------------
475 0 : void SAL_CALL AnimatedImagesControlModel::removeContainerListener( const Reference< XContainerListener >& i_listener ) throw (RuntimeException)
476 : {
477 0 : BrdcstHelper.removeListener( XContainerListener::static_type(), i_listener );
478 0 : }
479 :
480 : //......................................................................................................................
481 : } // namespace toolkit
482 : //......................................................................................................................
483 :
484 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|