LibreOffice Module accessibility (master) 1
AccessibleBrowseBoxHeaderCell.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{
26 {
27 sal_Int32 m_nColumnRowId;
28 public:
29 AccessibleBrowseBoxHeaderCell(sal_Int32 _nColumnRowId,
30 const css::uno::Reference< css::accessibility::XAccessible >& rxParent,
32 const css::uno::Reference< css::awt::XWindow >& _xFocusWindow,
35 virtual sal_Int64 SAL_CALL getAccessibleChildCount() override;
36
38 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
39 getAccessibleChild( sal_Int64 nChildIndex ) override;
40
42 virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override;
43
45 virtual void SAL_CALL grabFocus() override;
46
47 bool isRowBarCell() const
48 {
49 return getType() == AccessibleBrowseBoxObjType::RowHeaderCell;
50 }
51
55 virtual OUString SAL_CALL getImplementationName() override;
56
59 sal_Int64 implCreateStateSet() override;
60
61 private:
62 virtual tools::Rectangle implGetBoundingBox() override;
63
65 };
66}
67
68
69/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AccessibleBrowseBoxObjType
AccessibleBrowseBoxObjType getType() const
virtual tools::Rectangle implGetBoundingBox() override
Derived classes return the bounding box relative to the parent window.
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 nChildIndex) override
sal_Int64 implCreateStateSet() override
Return a bitset of states of the current object.
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL grabFocus() override
Grabs the focus to the BrowseBox.
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
virtual tools::Rectangle implGetBoundingBoxOnScreen() override
Derived classes return the bounding box in screen coordinates.
AccessibleBrowseBoxHeaderCell(sal_Int32 _nColumnRowId, const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ::vcl::IAccessibleTableProvider &_rBrowseBox, const css::uno::Reference< css::awt::XWindow > &_xFocusWindow, AccessibleBrowseBoxObjType _eObjType)