1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 #include "TableConnection.hxx"
22 #include <com/sun/star/accessibility/XAccessibleRelationSet.hpp>
23 #include <cppuhelper/implbase.hxx>
24 #include <toolkit/awt/vclxaccessiblecomponent.hxx>
25 #include <vcl/vclptr.hxx>
29 class OTableConnection
;
30 /** the class OConnectionLineAccess represents the accessible object for the connection between two table windows
31 like they are used in the QueryDesign and the RelationDesign
33 class OConnectionLineAccess
: public cppu::ImplInheritanceHelper
<
34 VCLXAccessibleComponent
,
35 css::accessibility::XAccessibleRelationSet
,
36 css::accessibility::XAccessible
>
38 VclPtr
<const OTableConnection
> m_pLine
; // the window which I should give accessibility to
40 /** this function is called upon disposing the component
42 virtual void SAL_CALL
disposing() override
;
45 OConnectionLineAccess(OTableConnection
* _pLine
);
48 virtual OUString SAL_CALL
getImplementationName() override
;
51 virtual css::uno::Reference
< css::accessibility::XAccessibleContext
> SAL_CALL
getAccessibleContext( ) override
;
54 virtual sal_Int64 SAL_CALL
getAccessibleChildCount( ) override
;
55 virtual css::uno::Reference
< css::accessibility::XAccessible
> SAL_CALL
getAccessibleChild( sal_Int64 i
) override
;
56 virtual sal_Int64 SAL_CALL
getAccessibleIndexInParent( ) override
;
57 virtual sal_Int16 SAL_CALL
getAccessibleRole( ) override
;
58 virtual OUString SAL_CALL
getAccessibleDescription( ) override
;
59 virtual css::uno::Reference
< css::accessibility::XAccessibleRelationSet
> SAL_CALL
getAccessibleRelationSet( ) override
;
61 // XAccessibleComponent
62 virtual css::uno::Reference
< css::accessibility::XAccessible
> SAL_CALL
getAccessibleAtPoint( const css::awt::Point
& aPoint
) override
;
63 virtual css::awt::Rectangle SAL_CALL
getBounds( ) override
;
64 virtual css::awt::Point SAL_CALL
getLocation( ) override
;
65 virtual css::awt::Point SAL_CALL
getLocationOnScreen( ) override
;
66 virtual css::awt::Size SAL_CALL
getSize( ) override
;
68 // XAccessibleRelationSet
69 virtual sal_Int32 SAL_CALL
getRelationCount( ) override
;
70 virtual css::accessibility::AccessibleRelation SAL_CALL
getRelation( sal_Int32 nIndex
) override
;
71 virtual sal_Bool SAL_CALL
containsRelation( sal_Int16 aRelationType
) override
;
72 virtual css::accessibility::AccessibleRelation SAL_CALL
getRelationByType( sal_Int16 aRelationType
) override
;
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */