LibreOffice Module sd (master) 1
AccessibleDrawDocumentView.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
23
24#include <com/sun/star/accessibility/XAccessibleGroupPosition.hpp>
25
26namespace accessibility { class AccessiblePageShape; }
27namespace accessibility { class ChildrenManager; }
28
29namespace accessibility {
30
41 ,public css::accessibility::XAccessibleGroupPosition
42{
43public:
44 //===== internal ========================================================
45
47 ::sd::ViewShell* pViewShell,
48 const css::uno::Reference<css::frame::XController>& rxController,
49 const css::uno::Reference<css::accessibility::XAccessible>& rxParent);
50
51 virtual ~AccessibleDrawDocumentView() override;
52
55 virtual void Init() override;
56
57 //===== IAccessibleViewForwarderListener ================================
58
59 virtual void ViewForwarderChanged() override;
60
61 //===== XAccessibleContext ==============================================
62
63 virtual sal_Int64 SAL_CALL
64 getAccessibleChildCount() override;
65
66 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
67 getAccessibleChild (sal_Int64 nIndex) override;
68
69 virtual OUString SAL_CALL
70 getAccessibleName() override;
71
72 //===== lang::XEventListener ============================================
73
74 virtual void SAL_CALL
75 disposing (const css::lang::EventObject& rEventObject) override;
76
77 //===== XPropertyChangeListener =========================================
78
79 virtual void SAL_CALL
80 propertyChange (const css::beans::PropertyChangeEvent& rEventObject) override;
81 //===== XInterface ======================================================
82
83 virtual css::uno::Any SAL_CALL
84 queryInterface (const css::uno::Type & rType) override;
85
86 virtual void SAL_CALL
87 acquire()
88 noexcept override;
89
90 virtual void SAL_CALL
91 release()
92 noexcept override;
93
94 //===== XAccessibleGroupPosition =========================================
95 virtual css::uno::Sequence< sal_Int32 > SAL_CALL
96 getGroupPosition( const css::uno::Any& rAny ) override;
97 virtual OUString SAL_CALL getObjectLink( const css::uno::Any& accoject ) override;
98
99private:
100
101 //===== XServiceInfo ====================================================
102
103 virtual OUString SAL_CALL
104 getImplementationName() override;
105
106 virtual css::uno::Sequence< OUString> SAL_CALL
107 getSupportedServiceNames() override;
108
109 virtual bool
110 implIsSelected( sal_Int64 nAccessibleChildIndex ) override;
111
125 virtual void
126 implSelect( sal_Int64 nAccessibleChildIndex, bool bSelect ) override;
127
128 ::sd::ViewShell* mpSdViewSh;
129
135
136 // This method is called from the component helper base class while
137 // disposing.
138 virtual void SAL_CALL disposing() override;
139
143
145 virtual OUString
146 CreateAccessibleName () override;
147
151 virtual void Activated() override;
152
156 virtual void Deactivated() override;
157
158 virtual void impl_dispose() override;
159
161};
162
163} // end of namespace accessibility
164
165/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class for the various document views of the Draw and Impress applications.
This class makes draw documents in the general view modes accessible.
std::unique_ptr< ChildrenManager > mpChildrenManager
This object manages the shapes of the represented draw page.
virtual void SAL_CALL disposing() override
This method is called from the component helper base class while disposing.
virtual void implSelect(sal_Int64 nAccessibleChildIndex, bool bSelect) override
Select or deselect the specified child or all children if the given index has the special value ACCES...
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
This implementation returns either 1 or 0 depending on whether there is an active accessible OLE obje...
rtl::Reference< AccessiblePageShape > CreateDrawPageShape()
Create a shape the represents the page as seen on the screen.
virtual bool implIsSelected(sal_Int64 nAccessibleChildIndex) override
Return selection state of specified child.
virtual void ViewForwarderChanged() override
A view forwarder change is signalled for instance when any of the window events is received.
virtual OUString CreateAccessibleName() override
Create an accessible name that contains the current view mode.
virtual void SAL_CALL acquire() noexcept override
virtual void SAL_CALL disposing(const css::lang::EventObject &rEventObject) override
virtual void Activated() override
Make sure that the currently focused shape sends a FOCUSED state change event indicating that it has ...
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
AccessibleDrawDocumentView(::sd::Window *pSdWindow, ::sd::ViewShell *pViewShell, const css::uno::Reference< css::frame::XController > &rxController, const css::uno::Reference< css::accessibility::XAccessible > &rxParent)
virtual OUString SAL_CALL getImplementationName() override
Returns an identifier for the implementation of this object.
virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent &rEventObject) override
virtual OUString SAL_CALL getObjectLink(const css::uno::Any &accoject) override
virtual void Deactivated() override
Make sure that the currently focused shape sends a FOCUSED state change event indicating that it has ...
virtual OUString SAL_CALL getAccessibleName() override
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getGroupPosition(const css::uno::Any &rAny) override
virtual void Init() override
Complete the initialization begun in the constructor.
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL release() noexcept override
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 ...
A page shape represents the actual page as seen on the screen.
Base class of the stacked shell hierarchy.
Definition: ViewShell.hxx:92
An SdWindow contains the actual working area of ViewShell.
Definition: Window.hxx:45
sal_Int32 nIndex