Kaydet (Commit) bb6b54c5 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS presfixes12 (1.18.14); FILE MERGED

2007/03/05 15:29:07 thb 1.18.14.1: #i37778# Calling XSlideShow::update() after a repaint (slideshow handles all events asynchronously)
üst 64048f0d
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: slideshowviewimpl.cxx,v $ * $RCSfile: slideshowviewimpl.cxx,v $
* *
* $Revision: 1.18 $ * $Revision: 1.19 $
* *
* last change: $Author: rt $ $Date: 2007-01-29 14:51:34 $ * last change: $Author: obo $ $Date: 2007-07-17 14:30:36 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -297,6 +297,16 @@ void SAL_CALL SlideShowView::disposing( const lang::EventObject& ) throw(Runtime ...@@ -297,6 +297,16 @@ void SAL_CALL SlideShowView::disposing( const lang::EventObject& ) throw(Runtime
} }
} }
static void updateimpl( ::osl::ClearableMutexGuard& rGuard, SlideshowImpl* pSlideShow )
{
if( pSlideShow )
{
SlideShowImplGuard aSLGuard( pSlideShow );
rGuard.clear();
pSlideShow->startUpdateTimer();
}
}
void SAL_CALL SlideShowView::paint( const awt::PaintEvent& e ) throw (RuntimeException) void SAL_CALL SlideShowView::paint( const awt::PaintEvent& e ) throw (RuntimeException)
{ {
::osl::ClearableMutexGuard aGuard( m_aMutex ); ::osl::ClearableMutexGuard aGuard( m_aMutex );
...@@ -316,6 +326,7 @@ void SAL_CALL SlideShowView::paint( const awt::PaintEvent& e ) throw (RuntimeExc ...@@ -316,6 +326,7 @@ void SAL_CALL SlideShowView::paint( const awt::PaintEvent& e ) throw (RuntimeExc
awt::PaintEvent aEvent( e ); awt::PaintEvent aEvent( e );
aEvent.Source = static_cast< ::cppu::OWeakObject* >( this ); aEvent.Source = static_cast< ::cppu::OWeakObject* >( this );
mpPaintListeners->notify( aEvent ); mpPaintListeners->notify( aEvent );
updateimpl( aGuard, mpSlideShow ); // warning: clears guard!
} }
} }
...@@ -493,16 +504,6 @@ void SAL_CALL SlideShowView::setMouseCursor( sal_Int16 nPointerShape ) throw (Ru ...@@ -493,16 +504,6 @@ void SAL_CALL SlideShowView::setMouseCursor( sal_Int16 nPointerShape ) throw (Ru
mxWindowPeer->setPointer( mxPointer ); mxWindowPeer->setPointer( mxPointer );
} }
static void updateimpl( ::osl::ClearableMutexGuard& rGuard, SlideshowImpl* pSlideShow )
{
if( pSlideShow )
{
SlideShowImplGuard aSLGuard( pSlideShow );
rGuard.clear();
pSlideShow->startUpdateTimer();
}
}
// XWindowListener methods // XWindowListener methods
void SAL_CALL SlideShowView::windowResized( const awt::WindowEvent& e ) throw (RuntimeException) void SAL_CALL SlideShowView::windowResized( const awt::WindowEvent& e ) throw (RuntimeException)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment