Simplify AccessibleGridControlTableBase

Change-Id: If4b8379f676a1a412eed6d79bf6b5382d3c726b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178030
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2024-12-07 01:41:28 +05:00
parent bbf4c5ca17
commit d751cbefb4
2 changed files with 2 additions and 55 deletions

View file

@ -27,7 +27,7 @@
namespace accessibility {
typedef ::cppu::ImplHelper1 < css::accessibility::XAccessibleTable >
typedef cppu::ImplInheritanceHelper<GridControlAccessibleElement, css::accessibility::XAccessibleTable>
AccessibleGridControlTableImplHelper;
/** The Grid Control accessible table objects inherit from this base class. It
@ -35,7 +35,6 @@ typedef ::cppu::ImplHelper1 < css::accessibility::XAccessibleTable >
Grid COntrol table objects are: the data table, the column header bar and the
row header bar. */
class AccessibleGridControlTableBase :
public GridControlAccessibleElement,
public AccessibleGridControlTableImplHelper
{
public:
@ -115,25 +114,6 @@ public:
- getAccessibleCellAt,
- isAccessibleSelected. */
// XInterface
/** Queries for a new interface. */
css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override;
/** Acquires the object (calls acquire() on base class). */
virtual void SAL_CALL acquire() noexcept override;
/** Releases the object (calls release() on base class). */
virtual void SAL_CALL release() noexcept override;
// XTypeProvider
/** @return a sequence of possible types (received from base classes). */
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
/** @return a unique implementation ID. */
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
protected:
// internal helper methods

View file

@ -41,7 +41,7 @@ AccessibleGridControlTableBase::AccessibleGridControlTableBase(
const Reference< XAccessible >& rxParent,
IAccessibleTable& rTable,
AccessibleTableControlObjType eObjType ) :
GridControlAccessibleElement( rxParent, rTable, eObjType )
AccessibleGridControlTableImplHelper( rxParent, rTable, eObjType )
{
}
@ -158,39 +158,6 @@ sal_Int32 SAL_CALL AccessibleGridControlTableBase::getAccessibleColumn( sal_Int6
return implGetColumn( nChildIndex );
}
// XInterface -----------------------------------------------------------------
Any SAL_CALL AccessibleGridControlTableBase::queryInterface( const uno::Type& rType )
{
Any aAny( GridControlAccessibleElement::queryInterface( rType ) );
return aAny.hasValue() ?
aAny : AccessibleGridControlTableImplHelper::queryInterface( rType );
}
void SAL_CALL AccessibleGridControlTableBase::acquire() noexcept
{
GridControlAccessibleElement::acquire();
}
void SAL_CALL AccessibleGridControlTableBase::release() noexcept
{
GridControlAccessibleElement::release();
}
// XTypeProvider --------------------------------------------------------------
Sequence< uno::Type > SAL_CALL AccessibleGridControlTableBase::getTypes()
{
return ::comphelper::concatSequences(
GridControlAccessibleElement::getTypes(),
AccessibleGridControlTableImplHelper::getTypes() );
}
Sequence< sal_Int8 > SAL_CALL AccessibleGridControlTableBase::getImplementationId()
{
return css::uno::Sequence<sal_Int8>();
}
// internal helper methods ----------------------------------------------------
sal_Int32 AccessibleGridControlTableBase::implGetRow( sal_Int64 nChildIndex )