Don't call ensureIsAlive after comphelper::OExternalLockGuard.
comphelper::OExternalLockGuard calls ensureIsAlive, no need to call it twice. Change-Id: I08d2b77dcb4d1e72a69c521bf969cbe1e65d5721 Reviewed-on: https://gerrit.libreoffice.org/39997 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
fe2dfdba10
commit
0d8eae9376
@@ -159,7 +159,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
return getCtrl()->GetEntryCount();
|
return getCtrl()->GetEntryCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,7 +166,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
|
VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
|
||||||
SvxIconChoiceCtrlEntry* pEntry = pCtrl->GetEntry(i);
|
SvxIconChoiceCtrlEntry* pEntry = pCtrl->GetEntry(i);
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
@@ -194,7 +192,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
return getCtrl()->GetAccessibleDescription();
|
return getCtrl()->GetAccessibleDescription();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -202,8 +199,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
OUString sName = getCtrl()->GetAccessibleName();
|
OUString sName = getCtrl()->GetAccessibleName();
|
||||||
if ( sName.isEmpty() )
|
if ( sName.isEmpty() )
|
||||||
sName = "IconChoiceControl";
|
sName = "IconChoiceControl";
|
||||||
@@ -216,8 +211,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
|
VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
|
||||||
SvxIconChoiceCtrlEntry* pEntry = pCtrl->GetEntry( nChildIndex );
|
SvxIconChoiceCtrlEntry* pEntry = pCtrl->GetEntry( nChildIndex );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
@@ -230,8 +223,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
|
VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
|
||||||
SvxIconChoiceCtrlEntry* pEntry = pCtrl->GetEntry( nChildIndex );
|
SvxIconChoiceCtrlEntry* pEntry = pCtrl->GetEntry( nChildIndex );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
@@ -243,8 +234,6 @@ namespace accessibility
|
|||||||
void SAL_CALL AccessibleIconChoiceCtrl::clearAccessibleSelection( )
|
void SAL_CALL AccessibleIconChoiceCtrl::clearAccessibleSelection( )
|
||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
getCtrl()->SetNoSelection();
|
getCtrl()->SetNoSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -252,8 +241,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
|
VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
|
||||||
sal_Int32 nCount = pCtrl->GetEntryCount();
|
sal_Int32 nCount = pCtrl->GetEntryCount();
|
||||||
for ( sal_Int32 i = 0; i < nCount; ++i )
|
for ( sal_Int32 i = 0; i < nCount; ++i )
|
||||||
@@ -268,8 +255,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
sal_Int32 nSelCount = 0;
|
sal_Int32 nSelCount = 0;
|
||||||
VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
|
VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
|
||||||
sal_Int32 nCount = pCtrl->GetEntryCount();
|
sal_Int32 nCount = pCtrl->GetEntryCount();
|
||||||
@@ -287,8 +272,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
if ( nSelectedChildIndex < 0 || nSelectedChildIndex >= getSelectedAccessibleChildCount() )
|
if ( nSelectedChildIndex < 0 || nSelectedChildIndex >= getSelectedAccessibleChildCount() )
|
||||||
throw IndexOutOfBoundsException();
|
throw IndexOutOfBoundsException();
|
||||||
|
|
||||||
@@ -316,8 +299,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
if ( nSelectedChildIndex < 0 || nSelectedChildIndex >= getAccessibleChildCount() )
|
if ( nSelectedChildIndex < 0 || nSelectedChildIndex >= getAccessibleChildCount() )
|
||||||
throw IndexOutOfBoundsException();
|
throw IndexOutOfBoundsException();
|
||||||
|
|
||||||
|
@@ -333,8 +333,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
sal_Int32 nCount = 0;
|
sal_Int32 nCount = 0;
|
||||||
VclPtr<SvTreeListBox> pSvTreeListBox = getListBox();
|
VclPtr<SvTreeListBox> pSvTreeListBox = getListBox();
|
||||||
if ( pSvTreeListBox )
|
if ( pSvTreeListBox )
|
||||||
@@ -347,7 +345,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
SvTreeListEntry* pEntry = getListBox()->GetEntry(i);
|
SvTreeListEntry* pEntry = getListBox()->GetEntry(i);
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw IndexOutOfBoundsException();
|
throw IndexOutOfBoundsException();
|
||||||
@@ -420,7 +417,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
return getListBox()->GetAccessibleDescription();
|
return getListBox()->GetAccessibleDescription();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -428,7 +424,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
return getListBox()->GetAccessibleName();
|
return getListBox()->GetAccessibleName();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -438,8 +433,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
SvTreeListEntry* pEntry = getListBox()->GetEntry( nChildIndex );
|
SvTreeListEntry* pEntry = getListBox()->GetEntry( nChildIndex );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw IndexOutOfBoundsException();
|
throw IndexOutOfBoundsException();
|
||||||
@@ -451,8 +444,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
SvTreeListEntry* pEntry = getListBox()->GetEntry( nChildIndex );
|
SvTreeListEntry* pEntry = getListBox()->GetEntry( nChildIndex );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw IndexOutOfBoundsException();
|
throw IndexOutOfBoundsException();
|
||||||
@@ -464,8 +455,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
sal_Int32 nCount = getListBox()->GetLevelChildCount( nullptr );
|
sal_Int32 nCount = getListBox()->GetLevelChildCount( nullptr );
|
||||||
for ( sal_Int32 i = 0; i < nCount; ++i )
|
for ( sal_Int32 i = 0; i < nCount; ++i )
|
||||||
{
|
{
|
||||||
@@ -479,8 +468,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
sal_Int32 nCount = getListBox()->GetLevelChildCount( nullptr );
|
sal_Int32 nCount = getListBox()->GetLevelChildCount( nullptr );
|
||||||
for ( sal_Int32 i = 0; i < nCount; ++i )
|
for ( sal_Int32 i = 0; i < nCount; ++i )
|
||||||
{
|
{
|
||||||
@@ -494,8 +481,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
return getListBox()->GetSelectionCount();
|
return getListBox()->GetSelectionCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -503,8 +488,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
if ( nSelectedChildIndex < 0 || nSelectedChildIndex >= getSelectedAccessibleChildCount() )
|
if ( nSelectedChildIndex < 0 || nSelectedChildIndex >= getSelectedAccessibleChildCount() )
|
||||||
throw IndexOutOfBoundsException();
|
throw IndexOutOfBoundsException();
|
||||||
|
|
||||||
@@ -533,8 +516,6 @@ namespace accessibility
|
|||||||
{
|
{
|
||||||
::comphelper::OExternalLockGuard aGuard( this );
|
::comphelper::OExternalLockGuard aGuard( this );
|
||||||
|
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
SvTreeListEntry* pEntry = getListBox()->GetEntry( nSelectedChildIndex );
|
SvTreeListEntry* pEntry = getListBox()->GetEntry( nSelectedChildIndex );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw IndexOutOfBoundsException();
|
throw IndexOutOfBoundsException();
|
||||||
|
@@ -77,14 +77,13 @@ sal_Int32 SvxShowCharSetVirtualAcc::getImplAccessibleChildCount() const
|
|||||||
sal_Int32 SAL_CALL SvxShowCharSetVirtualAcc::getAccessibleChildCount()
|
sal_Int32 SAL_CALL SvxShowCharSetVirtualAcc::getAccessibleChildCount()
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
return getImplAccessibleChildCount();
|
return getImplAccessibleChildCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetVirtualAcc::getAccessibleAtPoint( const awt::Point& aPoint )
|
uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetVirtualAcc::getAccessibleAtPoint( const awt::Point& aPoint )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
uno::Reference< css::accessibility::XAccessible > xRet;
|
uno::Reference< css::accessibility::XAccessible > xRet;
|
||||||
const sal_uInt16 nItemId = sal::static_int_cast<sal_uInt16>(mpParent->PixelToMapIndex( Point( aPoint.X, aPoint.Y ) ));
|
const sal_uInt16 nItemId = sal::static_int_cast<sal_uInt16>(mpParent->PixelToMapIndex( Point( aPoint.X, aPoint.Y ) ));
|
||||||
@@ -110,14 +109,13 @@ uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetVirtual
|
|||||||
void SAL_CALL SvxShowCharSetVirtualAcc::grabFocus()
|
void SAL_CALL SvxShowCharSetVirtualAcc::grabFocus()
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
mpParent->GrabFocus();
|
mpParent->GrabFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XAccessible > SAL_CALL SvxShowCharSetVirtualAcc::getAccessibleChild( sal_Int32 i )
|
Reference< XAccessible > SAL_CALL SvxShowCharSetVirtualAcc::getAccessibleChild( sal_Int32 i )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
sal_Int32 nCount = getImplAccessibleChildCount();
|
sal_Int32 nCount = getImplAccessibleChildCount();
|
||||||
if (i >= nCount)
|
if (i >= nCount)
|
||||||
@@ -135,7 +133,7 @@ Reference< XAccessible > SAL_CALL SvxShowCharSetVirtualAcc::getAccessibleChild(
|
|||||||
Reference< XAccessible > SAL_CALL SvxShowCharSetVirtualAcc::getAccessibleParent( )
|
Reference< XAccessible > SAL_CALL SvxShowCharSetVirtualAcc::getAccessibleParent( )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
vcl::Window* pParent = mpParent->GetParent();
|
vcl::Window* pParent = mpParent->GetParent();
|
||||||
uno::Reference< css::accessibility::XAccessible > xRet;
|
uno::Reference< css::accessibility::XAccessible > xRet;
|
||||||
|
|
||||||
@@ -323,7 +321,7 @@ css::awt::Rectangle SvxShowCharSetAcc::implGetBounds( )
|
|||||||
sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleChildCount()
|
sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleChildCount()
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
return m_pParent->getCharSetControl()->getMaxCharCount();
|
return m_pParent->getCharSetControl()->getMaxCharCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -331,7 +329,7 @@ sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleChildCount()
|
|||||||
uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleChild( sal_Int32 i )
|
uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleChild( sal_Int32 i )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
uno::Reference< css::accessibility::XAccessible > xRet;
|
uno::Reference< css::accessibility::XAccessible > xRet;
|
||||||
SvxShowCharSetItem* pItem = m_pParent->getCharSetControl()->ImplGetItem( static_cast< sal_uInt16 >( i ) );
|
SvxShowCharSetItem* pItem = m_pParent->getCharSetControl()->ImplGetItem( static_cast< sal_uInt16 >( i ) );
|
||||||
|
|
||||||
@@ -351,7 +349,7 @@ uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::ge
|
|||||||
uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleParent()
|
uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleParent()
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
return m_pParent;
|
return m_pParent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -372,7 +370,7 @@ OUString SAL_CALL SvxShowCharSetAcc::getAccessibleDescription()
|
|||||||
OUString SAL_CALL SvxShowCharSetAcc::getAccessibleName()
|
OUString SAL_CALL SvxShowCharSetAcc::getAccessibleName()
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
return SvxResId( RID_SVXSTR_CHAR_SEL_DESC );
|
return SvxResId( RID_SVXSTR_CHAR_SEL_DESC );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -415,7 +413,6 @@ uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL SvxShowCharSe
|
|||||||
uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleAtPoint( const awt::Point& aPoint )
|
uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleAtPoint( const awt::Point& aPoint )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
uno::Reference< css::accessibility::XAccessible > xRet;
|
uno::Reference< css::accessibility::XAccessible > xRet;
|
||||||
const sal_uInt16 nItemId = sal::static_int_cast<sal_uInt16>(
|
const sal_uInt16 nItemId = sal::static_int_cast<sal_uInt16>(
|
||||||
@@ -432,7 +429,7 @@ uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetAcc::ge
|
|||||||
void SAL_CALL SvxShowCharSetAcc::grabFocus()
|
void SAL_CALL SvxShowCharSetAcc::grabFocus()
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
m_pParent->getCharSetControl()->GrabFocus();
|
m_pParent->getCharSetControl()->GrabFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -479,7 +476,7 @@ Reference< XAccessibleTable > SAL_CALL SvxShowCharSetAcc::getAccessibleColumnHea
|
|||||||
Sequence< sal_Int32 > SAL_CALL SvxShowCharSetAcc::getSelectedAccessibleRows( )
|
Sequence< sal_Int32 > SAL_CALL SvxShowCharSetAcc::getSelectedAccessibleRows( )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
Sequence< sal_Int32 > aSel(1);
|
Sequence< sal_Int32 > aSel(1);
|
||||||
aSel[0] = SvxShowCharSet::GetRowPos(m_pParent->getCharSetControl()->GetSelectIndexId());
|
aSel[0] = SvxShowCharSet::GetRowPos(m_pParent->getCharSetControl()->GetSelectIndexId());
|
||||||
return aSel;
|
return aSel;
|
||||||
@@ -488,7 +485,7 @@ Sequence< sal_Int32 > SAL_CALL SvxShowCharSetAcc::getSelectedAccessibleRows( )
|
|||||||
Sequence< sal_Int32 > SAL_CALL SvxShowCharSetAcc::getSelectedAccessibleColumns( )
|
Sequence< sal_Int32 > SAL_CALL SvxShowCharSetAcc::getSelectedAccessibleColumns( )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
Sequence< sal_Int32 > aSel(1);
|
Sequence< sal_Int32 > aSel(1);
|
||||||
aSel[0] = SvxShowCharSet::GetColumnPos(m_pParent->getCharSetControl()->GetSelectIndexId());
|
aSel[0] = SvxShowCharSet::GetColumnPos(m_pParent->getCharSetControl()->GetSelectIndexId());
|
||||||
return aSel;
|
return aSel;
|
||||||
@@ -497,7 +494,7 @@ Sequence< sal_Int32 > SAL_CALL SvxShowCharSetAcc::getSelectedAccessibleColumns(
|
|||||||
sal_Bool SAL_CALL SvxShowCharSetAcc::isAccessibleRowSelected( sal_Int32 nRow )
|
sal_Bool SAL_CALL SvxShowCharSetAcc::isAccessibleRowSelected( sal_Int32 nRow )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
return SvxShowCharSet::GetRowPos(m_pParent->getCharSetControl()->GetSelectIndexId()) == nRow;
|
return SvxShowCharSet::GetRowPos(m_pParent->getCharSetControl()->GetSelectIndexId()) == nRow;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -511,7 +508,7 @@ sal_Bool SAL_CALL SvxShowCharSetAcc::isAccessibleColumnSelected( sal_Int32 nColu
|
|||||||
Reference< XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleCellAt( sal_Int32 nRow, sal_Int32 nColumn )
|
Reference< XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleCellAt( sal_Int32 nRow, sal_Int32 nColumn )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
svx::SvxShowCharSetItem* pItem = m_pParent->getCharSetControl()->ImplGetItem(
|
svx::SvxShowCharSetItem* pItem = m_pParent->getCharSetControl()->ImplGetItem(
|
||||||
sal::static_int_cast<sal_uInt16>(getAccessibleIndex(nRow,nColumn) ));
|
sal::static_int_cast<sal_uInt16>(getAccessibleIndex(nRow,nColumn) ));
|
||||||
if ( !pItem )
|
if ( !pItem )
|
||||||
@@ -532,7 +529,7 @@ Reference< XAccessible > SAL_CALL SvxShowCharSetAcc::getAccessibleSummary( )
|
|||||||
sal_Bool SAL_CALL SvxShowCharSetAcc::isAccessibleSelected( sal_Int32 nRow, sal_Int32 nColumn )
|
sal_Bool SAL_CALL SvxShowCharSetAcc::isAccessibleSelected( sal_Int32 nRow, sal_Int32 nColumn )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
return m_pParent->getCharSetControl()->GetSelectIndexId() == getAccessibleIndex(nRow,nColumn);
|
return m_pParent->getCharSetControl()->GetSelectIndexId() == getAccessibleIndex(nRow,nColumn);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -544,14 +541,14 @@ sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleIndex( sal_Int32 nRow, sal_In
|
|||||||
sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleRow( sal_Int32 nChildIndex )
|
sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleRow( sal_Int32 nChildIndex )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
return SvxShowCharSet::GetRowPos(sal::static_int_cast<sal_uInt16>(nChildIndex));
|
return SvxShowCharSet::GetRowPos(sal::static_int_cast<sal_uInt16>(nChildIndex));
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleColumn( sal_Int32 nChildIndex )
|
sal_Int32 SAL_CALL SvxShowCharSetAcc::getAccessibleColumn( sal_Int32 nChildIndex )
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
return SvxShowCharSet::GetColumnPos(sal::static_int_cast<sal_uInt16>(nChildIndex));
|
return SvxShowCharSet::GetColumnPos(sal::static_int_cast<sal_uInt16>(nChildIndex));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -598,7 +595,7 @@ uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetItemAcc
|
|||||||
uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetItemAcc::getAccessibleParent()
|
uno::Reference< css::accessibility::XAccessible > SAL_CALL SvxShowCharSetItemAcc::getAccessibleParent()
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
return mpParent->m_pParent;
|
return mpParent->m_pParent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -612,7 +609,7 @@ sal_Int16 SAL_CALL SvxShowCharSetItemAcc::getAccessibleRole()
|
|||||||
OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleDescription()
|
OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleDescription()
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
OUString sDescription;
|
OUString sDescription;
|
||||||
|
|
||||||
const OUString aCharStr( mpParent->maText);
|
const OUString aCharStr( mpParent->maText);
|
||||||
@@ -641,7 +638,7 @@ OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleDescription()
|
|||||||
OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleName()
|
OUString SAL_CALL SvxShowCharSetItemAcc::getAccessibleName()
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
OUString aRet;
|
OUString aRet;
|
||||||
|
|
||||||
if( mpParent )
|
if( mpParent )
|
||||||
@@ -665,7 +662,6 @@ uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL SvxShowCha
|
|||||||
uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL SvxShowCharSetItemAcc::getAccessibleStateSet()
|
uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL SvxShowCharSetItemAcc::getAccessibleStateSet()
|
||||||
{
|
{
|
||||||
OExternalLockGuard aGuard( this );
|
OExternalLockGuard aGuard( this );
|
||||||
ensureAlive();
|
|
||||||
|
|
||||||
::utl::AccessibleStateSetHelper* pStateSet = new ::utl::AccessibleStateSetHelper;
|
::utl::AccessibleStateSetHelper* pStateSet = new ::utl::AccessibleStateSetHelper;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user