LibreOffice Module sd (master) 1
AccessibleOutlineView.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#pragma once
21
24
25namespace sd { class OutlineViewShell; }
26
27namespace accessibility {
28
38{
39public:
41 ::sd::Window* pSdWindow,
42 ::sd::OutlineViewShell* pViewShell,
43 const css::uno::Reference<css::frame::XController>& rxController,
44 const css::uno::Reference<css::accessibility::XAccessible>& rxParent);
45
46 virtual ~AccessibleOutlineView() override;
47
50 virtual void Init() override;
51
52 //===== IAccessibleViewForwarderListener ================================
53
54 virtual void ViewForwarderChanged() override;
55
56 //===== XAccessibleContext ==============================================
57
58 virtual sal_Int64 SAL_CALL
59 getAccessibleChildCount() override;
60
61 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
62 getAccessibleChild (sal_Int64 nIndex) override;
63 virtual OUString SAL_CALL
64 getAccessibleName() override;
65 //===== XAccessibleEventBroadcaster ========================================
66
67 virtual void SAL_CALL
69 const css::uno::Reference<css::accessibility::XAccessibleEventListener >& xListener) override;
70
71 virtual void SAL_CALL
73 const css::uno::Reference<css::accessibility::XAccessibleEventListener >& xListener) override;
74
75 //===== XServiceInfo ====================================================
76
79 virtual OUString SAL_CALL
80 getImplementationName() override;
81
82 //===== lang::XEventListener ============================================
83
85
86 //===== XPropertyChangeListener =========================================
87
88 virtual void SAL_CALL
89 propertyChange (const css::beans::PropertyChangeEvent& rEventObject) override;
90
91private:
92
93 // overridden to detect focus changes
94 virtual void Activated() override;
95
96 // overridden to detect focus changes
97 virtual void Deactivated() override;
98
99 // declared, but not defined
102
103 // This method is called from the component helper base class while disposing.
104 virtual void SAL_CALL disposing() override;
105
107 virtual OUString
108 CreateAccessibleName () override;
109
111 void UpdateChildren();
112
114
115};
116
117} // end of namespace accessibility
118
119/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class for the various document views of the Draw and Impress applications.
This class makes the Impress outline view accessible.
virtual void ViewForwarderChanged() override
A view forwarder change is signalled for instance when any of the window events is received.
AccessibleOutlineView & operator=(const AccessibleOutlineView &)
virtual OUString CreateAccessibleName() override
Create an accessible name that contains the current view mode.
virtual OUString SAL_CALL getImplementationName() override
Returns an identifier for the implementation of this object.
virtual void Deactivated() override
This method is called when (before or after?) the frame containing this document has been deactivated...
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 nIndex) override
This implementation either returns the active accessible OLE object if it exists and the given index ...
virtual void SAL_CALL disposing() override
AccessibleOutlineView(const AccessibleOutlineView &)
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
This implementation returns either 1 or 0 depending on whether there is an active accessible OLE obje...
AccessibleOutlineView(::sd::Window *pSdWindow, ::sd::OutlineViewShell *pViewShell, const css::uno::Reference< css::frame::XController > &rxController, const css::uno::Reference< css::accessibility::XAccessible > &rxParent)
virtual void Activated() override
This method is called when (after) the frame containing this document has been activated.
virtual void SAL_CALL addAccessibleEventListener(const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent &rEventObject) override
virtual void Init() override
Complete the initialization begun in the constructor.
virtual OUString SAL_CALL getAccessibleName() override
virtual void SAL_CALL removeAccessibleEventListener(const css::uno::Reference< css::accessibility::XAccessibleEventListener > &xListener) override
void UpdateChildren()
Invalidate text helper, updates visible children.
Show a textual overview of the text contents of all slides.
An SdWindow contains the actual working area of ViewShell.
Definition: Window.hxx:45