tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / dbaccess / source / ui / inc / TableWindowAccess.hxx
blobfa3dc1bee032c6dd51e01ea3e6bf6457377c4845
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #pragma once
21 #include "TableWindow.hxx"
22 #include <com/sun/star/accessibility/AccessibleRelationType.hpp>
23 #include <com/sun/star/accessibility/XAccessibleRelationSet.hpp>
24 #include <cppuhelper/implbase.hxx>
25 #include <vcl/accessibility/vclxaccessiblecomponent.hxx>
26 #include <vcl/vclptr.hxx>
28 using css::accessibility::AccessibleRelationType;
30 namespace dbaui
32 class OTableWindow;
33 /** the class OTableWindowAccess represents the accessible object for table windows
34 like they are used in the QueryDesign and the RelationDesign
36 class OTableWindowAccess : public cppu::ImplInheritanceHelper<
37 VCLXAccessibleComponent,
38 css::accessibility::XAccessibleRelationSet,
39 css::accessibility::XAccessible>
41 VclPtr<OTableWindow> m_pTable; // the window which I should give accessibility to
43 css::uno::Reference< css::accessibility::XAccessible > getParentChild(sal_Int64 _nIndex);
44 protected:
45 /** this function is called upon disposing the component
47 virtual void SAL_CALL disposing() override;
49 virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) override;
50 public:
51 OTableWindowAccess( OTableWindow* _pTable);
53 // XServiceInfo
54 virtual OUString SAL_CALL getImplementationName() override;
55 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
57 // XAccessible
58 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override;
60 // XAccessibleContext
61 virtual sal_Int64 SAL_CALL getAccessibleChildCount( ) override;
62 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int64 i ) override;
63 virtual sal_Int64 SAL_CALL getAccessibleIndexInParent( ) override;
64 virtual sal_Int16 SAL_CALL getAccessibleRole( ) override;
65 virtual OUString SAL_CALL getAccessibleName( ) override;
66 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override;
68 // XAccessibleComponent
69 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
71 // XAccessibleExtendedComponent
72 virtual OUString SAL_CALL getTitledBorderText( ) override;
74 // XAccessibleRelationSet
75 virtual sal_Int32 SAL_CALL getRelationCount( ) override;
76 virtual css::accessibility::AccessibleRelation SAL_CALL getRelation( sal_Int32 nIndex ) override;
77 virtual sal_Bool SAL_CALL containsRelation(AccessibleRelationType eRelationType) override;
78 virtual css::accessibility::AccessibleRelation SAL_CALL getRelationByType(AccessibleRelationType eRelationType) override;
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */