summaryrefslogtreecommitdiff
path: root/toolkit/source/awt
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-03-11 18:04:44 +0000
committerMichael Meeks <michael.meeks@novell.com>2011-03-11 18:08:25 +0000
commit8a78e5b7a060cfd12ccbe5c9cf83b703c2b530cc (patch)
treea9cb69864c8405f28bf7948514dbdb8f1dfa2d07 /toolkit/source/awt
parent4c3acb4393a9ef9862aad0cec84426498fa7248c (diff)
fix up merging issues, so it compiles
Diffstat (limited to 'toolkit/source/awt')
-rwxr-xr-xtoolkit/source/awt/animatedimagespeer.cxx21
-rw-r--r--toolkit/source/awt/vclxtabpagecontainer.cxx13
-rw-r--r--toolkit/source/awt/xsimpleanimation.cxx6
-rw-r--r--toolkit/source/awt/xthrobber.cxx4
4 files changed, 23 insertions, 21 deletions
diff --git a/toolkit/source/awt/animatedimagespeer.cxx b/toolkit/source/awt/animatedimagespeer.cxx
index 69c08ee51520..45d60f0d88aa 100755
--- a/toolkit/source/awt/animatedimagespeer.cxx
+++ b/toolkit/source/awt/animatedimagespeer.cxx
@@ -45,6 +45,7 @@
#include <tools/diagnose_ex.h>
#include <tools/urlobj.hxx>
#include <vcl/throbber.hxx>
+#include <vcl/svapp.hxx>
#include <limits>
@@ -318,7 +319,7 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL AnimatedImagesPeer::startAnimation( ) throw (RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber != NULL)
pThrobber->start();
@@ -327,7 +328,7 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL AnimatedImagesPeer::stopAnimation( ) throw (RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber != NULL)
pThrobber->stop();
@@ -336,7 +337,7 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
::sal_Bool SAL_CALL AnimatedImagesPeer::isAnimationRunning( ) throw (RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber != NULL)
return pThrobber->isRunning();
@@ -346,7 +347,7 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL AnimatedImagesPeer::setProperty( const ::rtl::OUString& i_propertyName, const Any& i_value ) throw(RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber == NULL )
@@ -393,7 +394,7 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
Any SAL_CALL AnimatedImagesPeer::getProperty( const ::rtl::OUString& i_propertyName ) throw(RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Any aReturn;
@@ -443,7 +444,7 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void AnimatedImagesPeer::impl_updateImages_nolck( const Reference< XInterface >& i_animatedImages )
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
lcl_updateImageList_nothrow( *m_pData, Reference< XAnimatedImages >( i_animatedImages, UNO_QUERY_THROW ) );
}
@@ -451,7 +452,7 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL AnimatedImagesPeer::elementInserted( const ContainerEvent& i_event ) throw (RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Reference< XAnimatedImages > xAnimatedImages( i_event.Source, UNO_QUERY_THROW );
sal_Int32 nPosition(0);
@@ -474,7 +475,7 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL AnimatedImagesPeer::elementRemoved( const ContainerEvent& i_event ) throw (RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Reference< XAnimatedImages > xAnimatedImages( i_event.Source, UNO_QUERY_THROW );
sal_Int32 nPosition(0);
@@ -493,7 +494,7 @@ namespace toolkit
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL AnimatedImagesPeer::elementReplaced( const ContainerEvent& i_event ) throw (RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Reference< XAnimatedImages > xAnimatedImages( i_event.Source, UNO_QUERY_THROW );
sal_Int32 nPosition(0);
@@ -529,7 +530,7 @@ namespace toolkit
void SAL_CALL AnimatedImagesPeer::dispose( ) throw(RuntimeException)
{
AnimatedImagesPeer_Base::dispose();
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
m_pData->aCachedImageSets.resize(0);
}
diff --git a/toolkit/source/awt/vclxtabpagecontainer.cxx b/toolkit/source/awt/vclxtabpagecontainer.cxx
index 01f6fddd10d8..9eecb16286ca 100644
--- a/toolkit/source/awt/vclxtabpagecontainer.cxx
+++ b/toolkit/source/awt/vclxtabpagecontainer.cxx
@@ -31,6 +31,7 @@
#include <com/sun/star/awt/XControl.hpp>
#include <vcl/tabpage.hxx>
#include <vcl/tabctrl.hxx>
+#include <vcl/svapp.hxx>
#include <toolkit/helper/property.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <toolkit/helper/tkresmgr.hxx>
@@ -65,7 +66,7 @@ VCLXTabPageContainer::~VCLXTabPageContainer()
void SAL_CALL VCLXTabPageContainer::draw( sal_Int32 nX, sal_Int32 nY ) throw(RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
TabControl* pTabControl = (TabControl*)GetWindow();
if ( pTabControl )
{
@@ -107,7 +108,7 @@ void SAL_CALL VCLXTabPageContainer::draw( sal_Int32 nX, sal_Int32 nY ) throw(Run
void SAL_CALL VCLXTabPageContainer::setProperty(const ::rtl::OUString& PropertyName, const Any& Value ) throw(RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
TabControl* pTabPage = (TabControl*)GetWindow();
if ( pTabPage )
@@ -141,7 +142,7 @@ Reference< ::com::sun::star::awt::tab::XTabPage > SAL_CALL VCLXTabPageContainer:
}
Reference< ::com::sun::star::awt::tab::XTabPage > SAL_CALL VCLXTabPageContainer::getTabPageByID( ::sal_Int16 tabPageID ) throw (RuntimeException)
{
- ::osl::ClearableMutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Reference< ::com::sun::star::awt::tab::XTabPage > xTabPage;
::std::vector< Reference< ::com::sun::star::awt::tab::XTabPage > >::iterator aIter = m_aTabPages.begin();
::std::vector< Reference< ::com::sun::star::awt::tab::XTabPage > >::iterator aEnd = m_aTabPages.end();
@@ -168,7 +169,7 @@ void SAL_CALL VCLXTabPageContainer::removeTabPageListener( const Reference< ::co
void VCLXTabPageContainer::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent )
{
- ::osl::ClearableMutexGuard aGuard( GetMutex() );
+ SolarMutexClearableGuard aGuard;
TabControl* pTabControl = static_cast< TabControl* >( GetWindow() );
if ( pTabControl )
{
@@ -194,7 +195,7 @@ void SAL_CALL VCLXTabPageContainer::disposing( const ::com::sun::star::lang::Eve
}
void SAL_CALL VCLXTabPageContainer::elementInserted( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
TabControl* pTabCtrl = (TabControl*)GetWindow();
Reference< ::com::sun::star::awt::tab::XTabPage > xTabPage(Event.Element,uno::UNO_QUERY);
if ( pTabCtrl && xTabPage.is() )
@@ -217,7 +218,7 @@ void SAL_CALL VCLXTabPageContainer::elementInserted( const ::com::sun::star::con
}
void SAL_CALL VCLXTabPageContainer::elementRemoved( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException)
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
TabControl* pTabCtrl = (TabControl*)GetWindow();
Reference< ::com::sun::star::awt::tab::XTabPage > xTabPage(Event.Element,uno::UNO_QUERY);
if ( pTabCtrl && xTabPage.is() )
diff --git a/toolkit/source/awt/xsimpleanimation.cxx b/toolkit/source/awt/xsimpleanimation.cxx
index b67768ddfebf..f59016fd77a2 100644
--- a/toolkit/source/awt/xsimpleanimation.cxx
+++ b/toolkit/source/awt/xsimpleanimation.cxx
@@ -61,7 +61,7 @@ namespace toolkit
//--------------------------------------------------------------------
void SAL_CALL XSimpleAnimation::start() throw ( uno::RuntimeException )
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber != NULL)
pThrobber->start();
@@ -70,7 +70,7 @@ namespace toolkit
//--------------------------------------------------------------------
void SAL_CALL XSimpleAnimation::stop() throw ( uno::RuntimeException )
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber != NULL)
pThrobber->stop();
@@ -80,7 +80,7 @@ namespace toolkit
void SAL_CALL XSimpleAnimation::setImageList( const uno::Sequence< uno::Reference< graphic::XGraphic > >& rImageList )
throw ( uno::RuntimeException )
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber != NULL)
pThrobber->setImageList( rImageList );
diff --git a/toolkit/source/awt/xthrobber.cxx b/toolkit/source/awt/xthrobber.cxx
index bc96712eb0ef..95c6b5b3d197 100644
--- a/toolkit/source/awt/xthrobber.cxx
+++ b/toolkit/source/awt/xthrobber.cxx
@@ -66,7 +66,7 @@ namespace toolkit
//--------------------------------------------------------------------
void SAL_CALL XThrobber::start() throw ( uno::RuntimeException )
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber != NULL)
pThrobber->start();
@@ -92,7 +92,7 @@ namespace toolkit
void SAL_CALL XThrobber::InitImageList()
throw( uno::RuntimeException )
{
- ::osl::MutexGuard aGuard( GetMutex() );
+ SolarMutexGuard aGuard;
Throbber* pThrobber( dynamic_cast< Throbber* >( GetWindow() ) );
if ( pThrobber == NULL)