LibreOffice Module dbaccess (master) 1
TableWindowAccess.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
21#include "TableWindow.hxx"
22#include <com/sun/star/accessibility/XAccessibleRelationSet.hpp>
25#include <vcl/vclptr.hxx>
26
27namespace dbaui
28{
29 class OTableWindow;
33 class OTableWindowAccess : public cppu::ImplInheritanceHelper<
34 VCLXAccessibleComponent,
35 css::accessibility::XAccessibleRelationSet,
36 css::accessibility::XAccessible>
37 {
38 VclPtr<OTableWindow> m_pTable; // the window which I should give accessibility to
39
40 css::uno::Reference< css::accessibility::XAccessible > getParentChild(sal_Int64 _nIndex);
41 protected:
44 virtual void SAL_CALL disposing() override;
45
46 virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override;
47 public:
49
50 // XServiceInfo
51 virtual OUString SAL_CALL getImplementationName() override;
52 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
53
54 // XAccessible
55 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override;
56
57 // XAccessibleContext
58 virtual sal_Int64 SAL_CALL getAccessibleChildCount( ) override;
59 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int64 i ) override;
60 virtual sal_Int64 SAL_CALL getAccessibleIndexInParent( ) override;
61 virtual sal_Int16 SAL_CALL getAccessibleRole( ) override;
62 virtual OUString SAL_CALL getAccessibleName( ) override;
63 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override;
64
65 // XAccessibleComponent
66 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
67
68 // XAccessibleExtendedComponent
69 virtual OUString SAL_CALL getTitledBorderText( ) override;
70
71 // XAccessibleRelationSet
72 virtual sal_Int32 SAL_CALL getRelationCount( ) override;
73 virtual css::accessibility::AccessibleRelation SAL_CALL getRelation( sal_Int32 nIndex ) override;
74 virtual sal_Bool SAL_CALL containsRelation( sal_Int16 aRelationType ) override;
75 virtual css::accessibility::AccessibleRelation SAL_CALL getRelationByType( sal_Int16 aRelationType ) override;
76 };
77}
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
the class OTableWindowAccess represents the accessible object for table windows like they are used in...
virtual void SAL_CALL disposing() override
this function is called upon disposing the component
OTableWindowAccess(OTableWindow *_pTable)
virtual OUString SAL_CALL getAccessibleName() override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
css::uno::Reference< css::accessibility::XAccessible > getParentChild(sal_Int64 _nIndex)
virtual void ProcessWindowEvent(const VclWindowEvent &rVclWindowEvent) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
virtual sal_Int32 SAL_CALL getRelationCount() override
virtual css::accessibility::AccessibleRelation SAL_CALL getRelationByType(sal_Int16 aRelationType) override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual OUString SAL_CALL getTitledBorderText() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
VclPtr< OTableWindow > m_pTable
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual sal_Bool SAL_CALL containsRelation(sal_Int16 aRelationType) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual css::accessibility::AccessibleRelation SAL_CALL getRelation(sal_Int32 nIndex) override
unsigned char sal_Bool