summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-10-14 13:46:51 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-10-25 19:55:29 -0500
commit3e2c29ba561a9080d42b233962a762ea36330fd5 (patch)
treef60cf5e60472b4ac4066a6ef1c2a18f822343030 /accessibility
parent2f21892bef244fa07275116187348b1a90743776 (diff)
remove the class ALBSolarGuard and replace it's use with SolarMutexGuard
ALBSolarGuard is awrapper guard around the SolarMutex SolarMutexGuard provide this function now.
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/source/extended/accessibleiconchoicectrlentry.cxx57
-rw-r--r--accessibility/source/extended/accessiblelistboxentry.cxx80
2 files changed, 59 insertions, 78 deletions
diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
index 1b8b8ca2527d..2a4b90affd54 100644
--- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
+++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
@@ -65,15 +65,6 @@ namespace
//........................................................................
namespace accessibility
{
- //........................................................................
- // class ALBSolarGuard ---------------------------------------------------------
-
- /** Aquire the solar mutex. */
- class ALBSolarGuard : public ::vos::OGuard
- {
- public:
- inline ALBSolarGuard() : ::vos::OGuard( Application::GetSolarMutex() ) {}
- };
// class AccessibleIconChoiceCtrlEntry -----------------------------------------------------
@@ -194,7 +185,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBox() throw ( lang::DisposedException )
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -203,7 +194,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
Rectangle AccessibleIconChoiceCtrlEntry::GetBoundingBoxOnScreen() throw ( lang::DisposedException )
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -380,7 +371,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
Reference< XAccessibleStateSet > SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleStateSet( ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
utl::AccessibleStateSetHelper* pStateSetHelper = new utl::AccessibleStateSetHelper;
@@ -409,7 +400,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
Locale SAL_CALL AccessibleIconChoiceCtrlEntry::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
return implGetLocale();
@@ -454,7 +445,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
sal_Int32 AccessibleIconChoiceCtrlEntry::getForeground( ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
sal_Int32 nColor = 0;
@@ -471,7 +462,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
sal_Int32 AccessibleIconChoiceCtrlEntry::getBackground( ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
sal_Int32 nColor = 0;
@@ -491,7 +482,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
awt::Rectangle SAL_CALL AccessibleIconChoiceCtrlEntry::getCharacterBounds( sal_Int32 _nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
if ( ( 0 > _nIndex ) || ( getCharacterCount() <= _nIndex ) )
@@ -511,7 +502,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
sal_Int32 nIndex = -1;
@@ -540,7 +531,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
String sText = getText();
@@ -593,7 +584,7 @@ throw(RuntimeException)
}
sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::setCaretPosition ( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -604,14 +595,14 @@ throw(RuntimeException)
}
sal_Unicode SAL_CALL AccessibleIconChoiceCtrlEntry::getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getCharacter( nIndex );
}
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL AccessibleIconChoiceCtrlEntry::getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -624,7 +615,7 @@ throw(RuntimeException)
}
sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getCharacterCount( ) throw (::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getCharacterCount( );
@@ -632,28 +623,28 @@ throw(RuntimeException)
::rtl::OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getSelectedText( ) throw (::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getSelectedText( );
}
sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getSelectionStart( ) throw (::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getSelectionStart( );
}
sal_Int32 SAL_CALL AccessibleIconChoiceCtrlEntry::getSelectionEnd( ) throw (::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getSelectionEnd( );
}
sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -664,35 +655,35 @@ throw(RuntimeException)
}
::rtl::OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getText( ) throw (::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getText( );
}
::rtl::OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getTextRange( nStartIndex, nEndIndex );
}
::com::sun::star::accessibility::TextSegment SAL_CALL AccessibleIconChoiceCtrlEntry::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getTextAtIndex( nIndex ,aTextType);
}
::com::sun::star::accessibility::TextSegment SAL_CALL AccessibleIconChoiceCtrlEntry::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getTextBeforeIndex( nIndex ,aTextType);
}
::com::sun::star::accessibility::TextSegment SAL_CALL AccessibleIconChoiceCtrlEntry::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -712,7 +703,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::doAccessibleAction( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
sal_Bool bRet = sal_False;
@@ -732,7 +723,7 @@ throw(RuntimeException)
// -----------------------------------------------------------------------------
::rtl::OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleActionDescription( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
checkActionIndex_Impl( nIndex );
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index 66c3d76bfc51..71c52a90b1db 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -65,16 +65,6 @@ namespace
//........................................................................
namespace accessibility
{
- //........................................................................
- // class ALBSolarGuard ---------------------------------------------------------
-
- /** Aquire the solar mutex. */
- class ALBSolarGuard : public ::vos::OGuard
- {
- public:
- inline ALBSolarGuard() : ::vos::OGuard( Application::GetSolarMutex() ) {}
- };
-
// class AccessibleListBoxEntry -----------------------------------------------------
using namespace ::com::sun::star::accessibility;
@@ -175,7 +165,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
Rectangle AccessibleListBoxEntry::GetBoundingBox() throw ( lang::DisposedException )
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -184,7 +174,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
Rectangle AccessibleListBoxEntry::GetBoundingBoxOnScreen() throw ( lang::DisposedException )
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -252,7 +242,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
void SAL_CALL AccessibleListBoxEntry::disposing()
{
- ALBSolarGuard();
+ SolarMutexGuard();
::osl::MutexGuard aGuard( m_aMutex );
Reference< XAccessible > xKeepAlive( this );
@@ -324,7 +314,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
sal_Int32 SAL_CALL AccessibleListBoxEntry::getAccessibleChildCount( ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -338,7 +328,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleListBoxEntry::getAccessibleChild( sal_Int32 i ) throw (IndexOutOfBoundsException,RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -388,7 +378,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleListBoxEntry::getAccessibleParent( ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -468,7 +458,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
Locale SAL_CALL AccessibleListBoxEntry::getLocale( ) throw (IllegalAccessibleComponentStateException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
return implGetLocale();
@@ -483,7 +473,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleListBoxEntry::getAccessibleAtPoint( const awt::Point& _aPoint ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -526,7 +516,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
sal_Int32 AccessibleListBoxEntry::getForeground( ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
sal_Int32 nColor = 0;
@@ -543,7 +533,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
sal_Int32 AccessibleListBoxEntry::getBackground( ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
sal_Int32 nColor = 0;
@@ -563,7 +553,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
awt::Rectangle SAL_CALL AccessibleListBoxEntry::getCharacterBounds( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -588,7 +578,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
sal_Int32 SAL_CALL AccessibleListBoxEntry::getIndexAtPoint( const awt::Point& aPoint ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -609,7 +599,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
sal_Bool SAL_CALL AccessibleListBoxEntry::copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -670,7 +660,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
sal_Bool SAL_CALL AccessibleListBoxEntry::doAccessibleAction( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
sal_Bool bRet = sal_False;
@@ -692,7 +682,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
::rtl::OUString SAL_CALL AccessibleListBoxEntry::getAccessibleActionDescription( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
checkActionIndex_Impl( nIndex );
@@ -716,7 +706,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
void SAL_CALL AccessibleListBoxEntry::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -731,7 +721,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
sal_Bool SAL_CALL AccessibleListBoxEntry::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -746,7 +736,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
void SAL_CALL AccessibleListBoxEntry::clearAccessibleSelection( ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -766,7 +756,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
void SAL_CALL AccessibleListBoxEntry::selectAllAccessibleChildren( ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -786,7 +776,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
sal_Int32 SAL_CALL AccessibleListBoxEntry::getSelectedAccessibleChildCount( ) throw (RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -809,7 +799,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL AccessibleListBoxEntry::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -842,7 +832,7 @@ namespace accessibility
// -----------------------------------------------------------------------------
void SAL_CALL AccessibleListBoxEntry::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -860,7 +850,7 @@ namespace accessibility
}
sal_Bool SAL_CALL AccessibleListBoxEntry::setCaretPosition ( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -871,14 +861,14 @@ namespace accessibility
}
sal_Unicode SAL_CALL AccessibleListBoxEntry::getCharacter( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getCharacter( nIndex );
}
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL AccessibleListBoxEntry::getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -891,7 +881,7 @@ namespace accessibility
}
sal_Int32 SAL_CALL AccessibleListBoxEntry::getCharacterCount( ) throw (::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getCharacterCount( );
@@ -899,28 +889,28 @@ namespace accessibility
::rtl::OUString SAL_CALL AccessibleListBoxEntry::getSelectedText( ) throw (::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getSelectedText( );
}
sal_Int32 SAL_CALL AccessibleListBoxEntry::getSelectionStart( ) throw (::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getSelectionStart( );
}
sal_Int32 SAL_CALL AccessibleListBoxEntry::getSelectionEnd( ) throw (::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getSelectionEnd( );
}
sal_Bool SAL_CALL AccessibleListBoxEntry::setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
@@ -931,35 +921,35 @@ namespace accessibility
}
::rtl::OUString SAL_CALL AccessibleListBoxEntry::getText( ) throw (::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getText( );
}
::rtl::OUString SAL_CALL AccessibleListBoxEntry::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getTextRange( nStartIndex, nEndIndex );
}
::com::sun::star::accessibility::TextSegment SAL_CALL AccessibleListBoxEntry::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getTextAtIndex( nIndex ,aTextType);
}
::com::sun::star::accessibility::TextSegment SAL_CALL AccessibleListBoxEntry::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
return OCommonAccessibleText::getTextBeforeIndex( nIndex ,aTextType);
}
::com::sun::star::accessibility::TextSegment SAL_CALL AccessibleListBoxEntry::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- ALBSolarGuard aSolarGuard;
+ SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();