LibreOffice Module accessibility (master) 1
accessiblebrowseboxcell.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
24
25namespace accessibility
26{
27
28
29 // = AccessibleBrowseBoxCell
30
34 {
35 private:
36 sal_Int32 m_nRowPos; // the row number of the table cell
37 sal_uInt16 m_nColPos; // the column id of the table cell
38
39 protected:
40 // attribute access
41 sal_Int32 getRowPos( ) const { return m_nRowPos; }
42 sal_Int32 getColumnPos( ) const { return m_nColPos; }
43
44 protected:
45 // AccessibleBrowseBoxBase overridables
46 virtual tools::Rectangle implGetBoundingBox() override;
48
49 // XAccessibleComponent
50 virtual void SAL_CALL grabFocus() override;
51
52 protected:
54 const css::uno::Reference< css::accessibility::XAccessible >& _rxParent,
56 const css::uno::Reference< css::awt::XWindow >& _xFocusWindow,
57 sal_Int32 _nRowPos,
58 sal_uInt16 _nColPos,
59 AccessibleBrowseBoxObjType _eType = AccessibleBrowseBoxObjType::TableCell
60 );
61
62 virtual ~AccessibleBrowseBoxCell() override;
63
64 private:
67 };
68
69
70} // namespace accessibility
71
72
73
74/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AccessibleBrowseBoxObjType
The BrowseBox accessible objects inherit from this base class.
common accessibility-functionality for browse box elements which occupy a cell
AccessibleBrowseBoxCell(const AccessibleBrowseBoxCell &)=delete
AccessibleBrowseBoxCell(const css::uno::Reference< css::accessibility::XAccessible > &_rxParent, ::vcl::IAccessibleTableProvider &_rBrowseBox, const css::uno::Reference< css::awt::XWindow > &_xFocusWindow, sal_Int32 _nRowPos, sal_uInt16 _nColPos, AccessibleBrowseBoxObjType _eType=AccessibleBrowseBoxObjType::TableCell)
virtual void SAL_CALL grabFocus() override
virtual tools::Rectangle implGetBoundingBoxOnScreen() override
Derived classes return the bounding box in screen coordinates.
virtual tools::Rectangle implGetBoundingBox() override
Derived classes return the bounding box relative to the parent window.
AccessibleBrowseBoxCell & operator=(const AccessibleBrowseBoxCell &)=delete