summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-04-04 09:56:12 +0000
committerKurt Zenker <kz@openoffice.org>2008-04-04 09:56:12 +0000
commit6f927d13426e15889caf9f05ba29ebe065b19049 (patch)
tree457c07547ca704a12763677ba1700a94a0ad4492
parentaf2e9fd0af9aaba243b358dcd116bd2e44ddf309 (diff)
INTEGRATION: CWS dv03 (1.4.138); FILE MERGED
2008/04/02 13:24:26 dv 1.4.138.2: Don't try to show images, when there are none 2008/03/04 09:41:55 dv 1.4.138.1: #i86416# Removed lots of using directives
-rw-r--r--toolkit/source/helper/throbberimpl.cxx26
1 files changed, 12 insertions, 14 deletions
diff --git a/toolkit/source/helper/throbberimpl.cxx b/toolkit/source/helper/throbberimpl.cxx
index 494864f0cd44..51b6babab4c9 100644
--- a/toolkit/source/helper/throbberimpl.cxx
+++ b/toolkit/source/helper/throbberimpl.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: throbberimpl.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: obo $ $Date: 2007-01-23 08:04:37 $
+ * last change: $Author: kz $ $Date: 2008-04-04 10:56:12 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -45,11 +45,9 @@ namespace toolkit
//........................................................................
{
using namespace ::com::sun::star;
- using namespace ::com::sun::star::graphic;
- using namespace ::com::sun::star::uno;
//--------------------------------------------------------------------
- Throbber_Impl::Throbber_Impl( Reference< VCLXWindow > xParent,
+ Throbber_Impl::Throbber_Impl( uno::Reference< VCLXWindow > xParent,
sal_Int32 nStepTime,
sal_Bool bRepeat )
:mrMutex( Application::GetSolarMutex() )
@@ -69,7 +67,7 @@ namespace toolkit
}
//--------------------------------------------------------------------
- void Throbber_Impl::start() throw (RuntimeException)
+ void Throbber_Impl::start() throw ( uno::RuntimeException )
{
::vos::OGuard aGuard( GetMutex() );
@@ -78,7 +76,7 @@ namespace toolkit
}
//--------------------------------------------------------------------
- void Throbber_Impl::stop() throw (RuntimeException)
+ void Throbber_Impl::stop() throw ( uno::RuntimeException )
{
::vos::OGuard aGuard( GetMutex() );
@@ -86,8 +84,8 @@ namespace toolkit
}
//--------------------------------------------------------------------
- void Throbber_Impl::setImageList( const Sequence< Reference< XGraphic > >& rImageList )
- throw (RuntimeException)
+ void Throbber_Impl::setImageList( const uno::Sequence< uno::Reference< graphic::XGraphic > >& rImageList )
+ throw ( uno::RuntimeException )
{
::vos::OGuard aGuard( GetMutex() );
@@ -104,16 +102,16 @@ namespace toolkit
//--------------------------------------------------------------------
void Throbber_Impl::initImage()
- throw (RuntimeException)
+ throw ( uno::RuntimeException )
{
FixedImage* pImage = static_cast< FixedImage* >( mxParent->GetWindow() );
- if ( pImage )
+ if ( pImage && maImageList.getLength() )
pImage->SetImage( maImageList[ 0 ] );
}
//--------------------------------------------------------------------
sal_Bool Throbber_Impl::isHCMode()
- throw (RuntimeException)
+ throw ( uno::RuntimeException )
{
FixedImage* pImage = static_cast< FixedImage* >( mxParent->GetWindow() );
if ( pImage )
@@ -129,10 +127,10 @@ namespace toolkit
FixedImage* pImage = static_cast< FixedImage* >( mxParent->GetWindow() );
- if ( !pImage )
+ if ( !pImage || !maImageList.getLength() )
return 0;
- if ( mnCurStep < 11 )
+ if ( mnCurStep < mnStepCount - 1 )
mnCurStep += 1;
else
mnCurStep = 0;