LibreOffice Module svx (master) 1
AccessibleFrameSelector.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
20#ifndef INCLUDED_SVX_SOURCE_INC_ACCESSIBLEFRAMESELECTOR_HXX
21#define INCLUDED_SVX_SOURCE_INC_ACCESSIBLEFRAMESELECTOR_HXX
22
23#include <com/sun/star/accessibility/XAccessible.hpp>
24#include <com/sun/star/accessibility/XAccessibleContext.hpp>
28
29namespace svx {
30
31class FrameSelector;
32
33namespace a11y {
34
35typedef ::cppu::ImplHelper1<css::accessibility::XAccessible> OAccessibleHelper_Base;
36
39{
40public:
41 explicit AccFrameSelector(FrameSelector& rFrameSel);
42 virtual ~AccFrameSelector() override;
43
46
47 //XAccessibleComponent
48 virtual void SAL_CALL grabFocus( ) override;
49 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
50
51 //XAccessibleContext
52 virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) override;
53 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) override;
54 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) override;
55 virtual sal_Int16 SAL_CALL getAccessibleRole( ) override;
56 virtual OUString SAL_CALL getAccessibleDescription( ) override;
57 virtual OUString SAL_CALL getAccessibleName( ) override;
58 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override;
59 virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override;
60
61 //XAccessible
62 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override;
63
64 virtual sal_Int32 SAL_CALL getForeground( ) override;
65 virtual sal_Int32 SAL_CALL getBackground( ) override;
66
67 void Invalidate();
68
69private:
70 // OCommonAccessibleComponent
72 virtual css::awt::Rectangle implGetBounds( ) override;
73
75 void IsValid();
76
78};
79
82{
83public:
84 explicit AccFrameSelectorChild( FrameSelector& rFrameSel, FrameBorderType eBorder );
85
86 virtual ~AccFrameSelectorChild() override;
87
90
91 //XAccessibleComponent
92 virtual void SAL_CALL grabFocus( ) override;
93 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
94
95 //XAccessibleContext
96 virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) override;
97 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) override;
98 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) override;
99 virtual sal_Int16 SAL_CALL getAccessibleRole( ) override;
100 virtual OUString SAL_CALL getAccessibleDescription( ) override;
101 virtual OUString SAL_CALL getAccessibleName( ) override;
102 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override;
103 virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) override;
104
105 //XAccessible
106 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override;
107
108 virtual sal_Int32 SAL_CALL getForeground( ) override;
109 virtual sal_Int32 SAL_CALL getBackground( ) override;
110
111 void NotifyAccessibleEvent(const sal_Int16 _nEventId, const css::uno::Any& _rOldValue, const css::uno::Any& _rNewValue)
112 {
114 }
115
116 void Invalidate();
117
118private:
119 // OCommonAccessibleComponent
121 virtual css::awt::Rectangle implGetBounds( ) override;
122
124 void IsValid();
125
127
129};
130
131
132}
133}
134
135#endif
136
137/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void NotifyAccessibleEvent(const sal_Int16 _nEventId, const css::uno::Any &_rOldValue, const css::uno::Any &_rNewValue)
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int32 i) override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual OUString SAL_CALL getAccessibleName() override
void NotifyAccessibleEvent(const sal_Int16 _nEventId, const css::uno::Any &_rOldValue, const css::uno::Any &_rNewValue)
virtual css::awt::Rectangle implGetBounds() override
implements the calculation of the bounding rectangle
virtual void SAL_CALL grabFocus() override
virtual OUString SAL_CALL getAccessibleDescription() override
AccFrameSelectorChild(FrameSelector &rFrameSel, FrameBorderType eBorder)
virtual sal_Int32 SAL_CALL getAccessibleChildCount() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual sal_Int32 SAL_CALL getForeground() override
virtual sal_Int32 SAL_CALL getBackground() override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
virtual css::uno::Reference< css::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int32 i) override
virtual sal_Int32 SAL_CALL getBackground() override
virtual sal_Int32 SAL_CALL getAccessibleChildCount() override
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
virtual void SAL_CALL grabFocus() override
AccFrameSelector(FrameSelector &rFrameSel)
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual css::awt::Rectangle implGetBounds() override
implements the calculation of the bounding rectangle
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual OUString SAL_CALL getAccessibleName() override
virtual sal_Int32 SAL_CALL getForeground() override
virtual OUString SAL_CALL getAccessibleDescription() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
int i
::cppu::ImplHelper1< css::accessibility::XAccessible > OAccessibleHelper_Base
FrameBorderType
Enumerates all borders a frame selection control can contain.
#define DECLARE_XTYPEPROVIDER()
#define DECLARE_XINTERFACE()