Simplify AccessibleBrowseBoxTableBase
Change-Id: I8af6ac72923aa823db356769153790ae9d7752a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178028 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
This commit is contained in:
parent
ffa47ff780
commit
ac6b34ed9d
2 changed files with 3 additions and 57 deletions
|
@ -27,16 +27,14 @@
|
|||
|
||||
namespace accessibility {
|
||||
|
||||
typedef ::cppu::ImplHelper1< css::accessibility::XAccessibleTable >
|
||||
typedef cppu::ImplInheritanceHelper<BrowseBoxAccessibleElement, css::accessibility::XAccessibleTable>
|
||||
AccessibleBrowseBoxTableImplHelper;
|
||||
|
||||
/** The BrowseBox accessible table objects inherit from this base class. It
|
||||
implements basic functionality for the XAccessibleTable interface.
|
||||
BrowseBox table objects are: the data table, the column header bar and the
|
||||
row header bar. */
|
||||
class AccessibleBrowseBoxTableBase :
|
||||
public BrowseBoxAccessibleElement,
|
||||
public AccessibleBrowseBoxTableImplHelper
|
||||
class AccessibleBrowseBoxTableBase : public AccessibleBrowseBoxTableImplHelper
|
||||
{
|
||||
public:
|
||||
/** Constructor sets specified name and description. If the constant of a
|
||||
|
@ -121,25 +119,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;
|
||||
|
||||
// XServiceInfo
|
||||
|
||||
/* Derived classes have to implement:
|
||||
|
|
|
@ -41,7 +41,7 @@ AccessibleBrowseBoxTableBase::AccessibleBrowseBoxTableBase(
|
|||
const Reference< XAccessible >& rxParent,
|
||||
vcl::IAccessibleTableProvider& rBrowseBox,
|
||||
AccessibleBrowseBoxObjType eObjType ) :
|
||||
BrowseBoxAccessibleElement( rxParent, rBrowseBox,nullptr, eObjType )
|
||||
AccessibleBrowseBoxTableImplHelper( rxParent, rBrowseBox, nullptr, eObjType )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -132,39 +132,6 @@ sal_Int32 SAL_CALL AccessibleBrowseBoxTableBase::getAccessibleColumn( sal_Int64
|
|||
return implGetColumn( nChildIndex );
|
||||
}
|
||||
|
||||
// XInterface -----------------------------------------------------------------
|
||||
|
||||
Any SAL_CALL AccessibleBrowseBoxTableBase::queryInterface( const uno::Type& rType )
|
||||
{
|
||||
Any aAny( BrowseBoxAccessibleElement::queryInterface( rType ) );
|
||||
return aAny.hasValue() ?
|
||||
aAny : AccessibleBrowseBoxTableImplHelper::queryInterface( rType );
|
||||
}
|
||||
|
||||
void SAL_CALL AccessibleBrowseBoxTableBase::acquire() noexcept
|
||||
{
|
||||
BrowseBoxAccessibleElement::acquire();
|
||||
}
|
||||
|
||||
void SAL_CALL AccessibleBrowseBoxTableBase::release() noexcept
|
||||
{
|
||||
BrowseBoxAccessibleElement::release();
|
||||
}
|
||||
|
||||
// XTypeProvider --------------------------------------------------------------
|
||||
|
||||
Sequence< uno::Type > SAL_CALL AccessibleBrowseBoxTableBase::getTypes()
|
||||
{
|
||||
return ::comphelper::concatSequences(
|
||||
BrowseBoxAccessibleElement::getTypes(),
|
||||
AccessibleBrowseBoxTableImplHelper::getTypes() );
|
||||
}
|
||||
|
||||
Sequence< sal_Int8 > SAL_CALL AccessibleBrowseBoxTableBase::getImplementationId()
|
||||
{
|
||||
return css::uno::Sequence<sal_Int8>();
|
||||
}
|
||||
|
||||
// internal virtual methods ---------------------------------------------------
|
||||
|
||||
sal_Int32 AccessibleBrowseBoxTableBase::implGetRowCount() const
|
||||
|
|
Loading…
Reference in a new issue