LibreOffice Module accessibility (master) 1
AccessibleGridControlHeaderCell.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#pragma once
20
22
23namespace accessibility
24{
25 class AccessibleGridControlHeaderCell final : public AccessibleGridControlCell, public css::accessibility::XAccessible
26 {
27 sal_Int32 m_nColumnRowId;
28 public:
29 AccessibleGridControlHeaderCell(sal_Int32 _nColumnRowId,
30 const css::uno::Reference< css::accessibility::XAccessible >& rxParent,
34 virtual sal_Int64 SAL_CALL getAccessibleChildCount() override;
35
37 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
38 getAccessibleChild( sal_Int64 nChildIndex ) override;
39
41 virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override;
42
44 virtual void SAL_CALL grabFocus() override;
45
46 // XInterface
47
49 css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override;
50
52 virtual void SAL_CALL acquire() noexcept override;
53
55 virtual void SAL_CALL release() noexcept override;
56 // XAccessible
57
59 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL
60 getAccessibleContext() override;
61
65 virtual OUString SAL_CALL getImplementationName() override;
66
69 sal_Int64 implCreateStateSet() override;
70
71 private:
72 virtual tools::Rectangle implGetBoundingBox() override;
73
74 virtual tools::Rectangle implGetBoundingBoxOnScreen() override;
75 };
76}
77
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Queries for a new interface.
AccessibleGridControlHeaderCell(sal_Int32 _nColumnRowId, const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ::vcl::table::IAccessibleTable &_rTable, ::vcl::table::AccessibleTableControlObjType _eObjType)
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
virtual void SAL_CALL grabFocus() override
Grabs the focus to the GridControl.
sal_Int64 implCreateStateSet() override
Return a bitset of states of the current object.
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 nChildIndex) override
virtual void SAL_CALL release() noexcept override
Releases the object (calls release() on base class).
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.
virtual void SAL_CALL acquire() noexcept override
Acquires the object (calls acquire() on base class).
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
AccessibleTableControlObjType