summaryrefslogtreecommitdiff
path: root/sfx2/source/statbar/stbitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/statbar/stbitem.cxx')
-rw-r--r--sfx2/source/statbar/stbitem.cxx26
1 files changed, 14 insertions, 12 deletions
diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx
index 0c1591de16..faf3afa325 100644
--- a/sfx2/source/statbar/stbitem.cxx
+++ b/sfx2/source/statbar/stbitem.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -59,7 +60,6 @@
#include <svl/intitem.hxx>
#ifndef _TOOLKIT_HELPER_VCLUNOHELPER_HXX_
#include <toolkit/unohlp.hxx>
-#endif
#include <toolkit/helper/convert.hxx>
using namespace ::com::sun::star;
@@ -88,12 +88,12 @@ svt::StatusbarController* SAL_CALL SfxStatusBarControllerFactory(
unsigned short nID,
const ::rtl::OUString& aCommandURL )
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
util::URL aTargetURL;
aTargetURL.Complete = aCommandURL;
uno::Reference < util::XURLTransformer > xTrans( ::comphelper::getProcessServiceFactory()->createInstance(
- rtl::OUString::createFromAscii( "com.sun.star.util.URLTransformer" )), uno::UNO_QUERY );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.URLTransformer"))), uno::UNO_QUERY );
xTrans->parseStrict( aTargetURL );
SfxObjectShell* pObjShell = NULL;
@@ -228,7 +228,7 @@ throw ( ::com::sun::star::uno::RuntimeException )
SfxViewFrame* pViewFrame = NULL;
uno::Reference < frame::XController > xController;
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
if ( m_xFrame.is() )
xController = m_xFrame->getController();
@@ -333,7 +333,7 @@ throw ( ::com::sun::star::uno::RuntimeException )
const awt::MouseEvent& rMouseEvent )
throw ( uno::RuntimeException )
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
::Point aPos( rMouseEvent.X, rMouseEvent.Y );
::MouseEvent aMouseEvent( aPos,
@@ -351,7 +351,7 @@ throw ( uno::RuntimeException )
const awt::MouseEvent& rMouseEvent )
throw (uno::RuntimeException)
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
::Point aPos( rMouseEvent.X, rMouseEvent.Y );
::MouseEvent aMouseEvent( aPos,
@@ -368,7 +368,7 @@ throw (uno::RuntimeException)
const ::awt::MouseEvent& rMouseEvent )
throw ( uno::RuntimeException )
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
::Point aPos( rMouseEvent.X, rMouseEvent.Y );
::MouseEvent aMouseEvent( aPos,
@@ -388,7 +388,7 @@ void SAL_CALL SfxStatusBarControl::command(
const ::com::sun::star::uno::Any& /*aData*/ )
throw (::com::sun::star::uno::RuntimeException)
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
::Point aPos( rPos.X, rPos.Y );
CommandEvent aCmdEvent( aPos, (USHORT)nCommand, TRUE, NULL );
@@ -404,7 +404,7 @@ void SAL_CALL SfxStatusBarControl::paint(
::sal_Int32 nStyle )
throw ( ::uno::RuntimeException )
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
OutputDevice* pOutDev = VCLUnoHelper::GetOutputDevice( xGraphics );;
if ( pOutDev )
@@ -420,7 +420,7 @@ throw ( ::uno::RuntimeException )
void SAL_CALL SfxStatusBarControl::click()
throw ( uno::RuntimeException )
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
Click();
}
@@ -429,7 +429,7 @@ throw ( uno::RuntimeException )
void SAL_CALL SfxStatusBarControl::doubleClick()
throw ( uno::RuntimeException )
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
DoubleClick();
}
@@ -647,7 +647,7 @@ SfxStatusBarControl* SfxStatusBarControl::CreateControl
SfxModule* pMod
)
{
- ::vos::OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
SfxApplication *pApp = SFX_APP();
SfxSlotPool *pSlotPool;
@@ -690,3 +690,5 @@ void SfxStatusBarControl::RegisterStatusBarControl(SfxModule* pMod, SfxStbCtrlFa
SFX_APP()->RegisterStatusBarControl_Impl( pMod, pFact );
}
//--------------------------------------------------------------------
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */