summaryrefslogtreecommitdiff
path: root/include/vcl/accessibletable.hxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2025-01-27 14:44:08 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2025-01-27 22:24:25 +0100
commitae8ff1c875b4cacabc64d5183f25baed8c6890c5 (patch)
tree26234a7c54ced8a45de40f11eb2a144da30d04c1 /include/vcl/accessibletable.hxx
parent24a2dd9cbe6c2079d379921e35c45331c19e723e (diff)
a11y: Drop IAccessibleTable
Now that all related code is in the toolkit module and the interface (abstract base class) is no more needed to break a dependency cycle, drop the interface altogether. (An earlier version of this change resulted in LO clang plugins pointing out some oddities. These have in the meantime been addressed separately in previous commits to prepare for this change.) Change-Id: I6295695d9f0bf02be26175c45142965351ec5eff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180797 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'include/vcl/accessibletable.hxx')
-rw-r--r--include/vcl/accessibletable.hxx59
1 files changed, 0 insertions, 59 deletions
diff --git a/include/vcl/accessibletable.hxx b/include/vcl/accessibletable.hxx
index fa7b86def548..7f2d2954c885 100644
--- a/include/vcl/accessibletable.hxx
+++ b/include/vcl/accessibletable.hxx
@@ -20,13 +20,6 @@
#ifndef INCLUDED_VCL_ACCESSIBLETABLE_HXX
#define INCLUDED_VCL_ACCESSIBLETABLE_HXX
-#include <tools/gen.hxx>
-#include <com/sun/star/uno/Reference.hxx>
-#include <com/sun/star/accessibility/XAccessible.hpp>
-#include <cppuhelper/implbase.hxx>
-
-namespace vcl { class Window; }
-
namespace vcl::table
{
@@ -41,58 +34,6 @@ enum class AccessibleTableControlObjType
COLUMNHEADERCELL, /// A cell of the column header bar.
};
-
-/** This abstract class provides methods to implement an accessible table object.
-*/
-class IAccessibleTable
-{
-public:
- /** @return The position of the current row. */
- virtual sal_Int32 GetCurrentRow() const = 0;
- /** @return The position of the current column. */
- virtual sal_Int32 GetCurrentColumn() const = 0;
- virtual OUString GetAccessibleObjectName(AccessibleTableControlObjType eObjType, sal_Int32 _nRow, sal_Int32 _nCol) const= 0;
- virtual void GoToCell( sal_Int32 _nColumnPos, sal_Int32 _nRow )= 0;
- virtual bool HasColHeader() = 0;
- virtual bool HasRowHeader() = 0;
-
- /** return the description of the specified object.
- @param eObjType
- The type to ask for
- @return
- The description of the specified object.
- */
- virtual OUString GetAccessibleObjectDescription(AccessibleTableControlObjType eObjType) const= 0;
-
- /** Fills the StateSet with all states (except DEFUNC and SHOWING, done by
- the accessible object), depending on the specified object type. */
- virtual void FillAccessibleStateSet( sal_Int64& rStateSet,
- AccessibleTableControlObjType eObjType ) const= 0;
-
- // Window
- virtual sal_Int32 GetAccessibleControlCount() const = 0;
- virtual sal_Int32 GetRowCount() const= 0;
- virtual sal_Int32 GetColumnCount() const= 0;
- virtual bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_Int32& _rnColPos, const Point& _rPoint )= 0;
- virtual tools::Rectangle calcHeaderRect( bool _bIsColumnBar ) = 0;
- virtual tools::Rectangle calcHeaderCellRect( bool _bColHeader, sal_Int32 _nPos ) = 0;
- virtual tools::Rectangle calcTableRect() = 0;
- virtual tools::Rectangle calcCellRect( sal_Int32 _nRowPos, sal_Int32 _nColPos ) = 0;
- virtual void FillAccessibleStateSetForCell( sal_Int64& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const= 0;
- virtual OUString GetRowName(sal_Int32 _nIndex) const = 0;
- virtual OUString GetColumnName( sal_Int32 _nIndex ) const = 0;
- virtual OUString GetAccessibleCellText(sal_Int32 _nRowPos, sal_Int32 _nColPos) const = 0;
-
- virtual sal_Int32 GetSelectedRowCount() const = 0;
- virtual sal_Int32 GetSelectedRowIndex( sal_Int32 const i_selectionIndex ) const = 0;
- virtual bool IsRowSelected( sal_Int32 const i_rowIndex ) const = 0;
- virtual void SelectRow( sal_Int32 const i_rowIndex, bool const i_select ) = 0;
- virtual void SelectAllRows( bool const i_select ) = 0;
-
-protected:
- ~IAccessibleTable() {}
-};
-
} // namespace vcl::table
#endif // INCLUDED_VCL_ACCESSIBLETABLE_HXX