diff options
Diffstat (limited to 'slideshow/source/engine/screenupdater.cxx')
-rw-r--r-- | slideshow/source/engine/screenupdater.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/slideshow/source/engine/screenupdater.cxx b/slideshow/source/engine/screenupdater.cxx index 307fd127c88c..5d39b23c0901 100644 --- a/slideshow/source/engine/screenupdater.cxx +++ b/slideshow/source/engine/screenupdater.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -63,12 +63,12 @@ namespace internal ViewUpdateSharedPtr, std::vector<ViewUpdateSharedPtr> > maUpdaters; - /// Views that have been notified for update + /// Views that have been notified for update UpdateRequestVector maViewUpdateRequests; /// List of View. Used to issue screen updates on. UnoViewContainer const& mrViewContainer; - + /// True, if a notifyUpdate() for all views has been issued. bool mbUpdateAllRequest; @@ -77,7 +77,7 @@ namespace internal /// The screen is updated only when mnLockCount==0 sal_Int32 mnLockCount; - + explicit ImplScreenUpdater( UnoViewContainer const& rViewContainer ) : maUpdaters(), maViewUpdateRequests(), @@ -102,11 +102,11 @@ namespace internal { mpImpl->mbUpdateAllRequest = true; } - - void ScreenUpdater::notifyUpdate( const UnoViewSharedPtr& rView, + + void ScreenUpdater::notifyUpdate( const UnoViewSharedPtr& rView, bool bViewClobbered ) { - mpImpl->maViewUpdateRequests.push_back( + mpImpl->maViewUpdateRequests.push_back( std::make_pair(rView, bViewClobbered) ); if( bViewClobbered ) @@ -117,10 +117,10 @@ namespace internal { if (mpImpl->mnLockCount > 0) return; - + // cases: // - // (a) no update necessary at all + // (a) no update necessary at all // // (b) no ViewUpdate-generated update // I. update all views requested -> for_each( mrViewContainer ) @@ -131,12 +131,12 @@ namespace internal // any ViewUpdate-triggered updates? const bool bViewUpdatesNeeded( - mpImpl->maUpdaters.apply( + mpImpl->maUpdaters.apply( boost::mem_fn(&ViewUpdate::needsUpdate)) ); if( bViewUpdatesNeeded ) { - mpImpl->maUpdaters.applyAll( + mpImpl->maUpdaters.applyAll( boost::mem_fn((bool (ViewUpdate::*)())&ViewUpdate::update) ); } @@ -146,8 +146,8 @@ namespace internal // unconditionally update all views std::for_each( mpImpl->mrViewContainer.begin(), mpImpl->mrViewContainer.end(), - mpImpl->mbViewClobbered ? - boost::mem_fn(&View::paintScreen) : + mpImpl->mbViewClobbered ? + boost::mem_fn(&View::paintScreen) : boost::mem_fn(&View::updateScreen) ); } else if( !mpImpl->maViewUpdateRequests.empty() ) |