LibreOffice Module sd (master) 1
PresenterAccessibility.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_SDEXT_SOURCE_PRESENTER_PRESENTERACCESSIBILITY_HXX
21#define INCLUDED_SDEXT_SOURCE_PRESENTER_PRESENTERACCESSIBILITY_HXX
22
24
25#include <com/sun/star/accessibility/XAccessible.hpp>
26#include <com/sun/star/awt/XFocusListener.hpp>
27#include <com/sun/star/drawing/framework/XPane.hpp>
28#include <com/sun/star/drawing/framework/XPane2.hpp>
29#include <com/sun/star/lang/XInitialization.hpp>
30#include <com/sun/star/uno/XComponentContext.hpp>
33#include <rtl/ref.hxx>
34#include <memory>
35
36
37namespace sdext::presenter {
38
39class PresenterController;
40class PresenterTextView;
41
42typedef ::cppu::WeakComponentImplHelper <
43 css::accessibility::XAccessible,
44 css::lang::XInitialization,
45 css::awt::XFocusListener
47
49 : public ::cppu::BaseMutex,
51{
52public:
54 css::uno::Reference<css::uno::XComponentContext> xContext,
55 ::rtl::Reference<PresenterController> xPresenterController,
56 const css::uno::Reference<css::drawing::framework::XPane>& rxMainPane);
57 virtual ~PresenterAccessible() override;
58
60
62
63 virtual void SAL_CALL disposing() override;
64
65 //----- XAccessible -------------------------------------------------------
66
67 virtual css::uno::Reference<css::accessibility::XAccessibleContext> SAL_CALL
68 getAccessibleContext() override;
69
70 //----- XFocusListener ----------------------------------------------------
71
72 virtual void SAL_CALL focusGained (const css::awt::FocusEvent& rEvent) override;
73
74 virtual void SAL_CALL focusLost (const css::awt::FocusEvent& rEvent) override;
75
76 //----- XEventListener ----------------------------------------------------
77
78 virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) override;
79
80 //----- XInitialization ---------------------------------------------------
81
82 virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments) override;
83
84 class AccessibleObject;
86
87private:
88 const css::uno::Reference<css::uno::XComponentContext> mxComponentContext;
90 css::uno::Reference<css::drawing::framework::XPane2> mxMainPane;
91 css::uno::Reference<css::awt::XWindow> mxMainWindow;
92 css::uno::Reference<css::awt::XWindow> mxPreviewContentWindow;
93 css::uno::Reference<css::awt::XWindow> mxPreviewBorderWindow;
94 css::uno::Reference<css::awt::XWindow> mxNotesContentWindow;
95 css::uno::Reference<css::awt::XWindow> mxNotesBorderWindow;
99 css::uno::Reference<css::accessibility::XAccessible> mxAccessibleParent;
100
102 const css::uno::Reference<css::awt::XWindow>& rxPreviewContentWindow,
103 const css::uno::Reference<css::awt::XWindow>& rxPreviewBorderWindow,
104 const OUString& rsTitle,
105 const css::uno::Reference<css::awt::XWindow>& rxNotesContentWindow,
106 const css::uno::Reference<css::awt::XWindow>& rxNotesBorderWindow,
107 const std::shared_ptr<PresenterTextView>& rpNotesTextView);
109};
110
111} // end of namespace ::sd::presenter
112
113#endif
114
115/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
::rtl::Reference< AccessibleObject > mpAccessibleNotes
virtual void SAL_CALL focusGained(const css::awt::FocusEvent &rEvent) override
virtual void SAL_CALL focusLost(const css::awt::FocusEvent &rEvent) override
css::uno::Reference< css::awt::XWindow > mxPreviewBorderWindow
::rtl::Reference< PresenterController > mpPresenterController
virtual void SAL_CALL disposing() override
css::uno::Reference< css::drawing::framework::XPane2 > mxMainPane
css::uno::Reference< css::awt::XWindow > mxNotesContentWindow
css::uno::Reference< css::accessibility::XAccessible > mxAccessibleParent
css::uno::Reference< css::awt::XWindow > mxMainWindow
PresenterPaneContainer::SharedPaneDescriptor GetPreviewPane() const
PresenterAccessible(css::uno::Reference< css::uno::XComponentContext > xContext, ::rtl::Reference< PresenterController > xPresenterController, const css::uno::Reference< css::drawing::framework::XPane > &rxMainPane)
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArguments) override
void UpdateAccessibilityHierarchy(const css::uno::Reference< css::awt::XWindow > &rxPreviewContentWindow, const css::uno::Reference< css::awt::XWindow > &rxPreviewBorderWindow, const OUString &rsTitle, const css::uno::Reference< css::awt::XWindow > &rxNotesContentWindow, const css::uno::Reference< css::awt::XWindow > &rxNotesBorderWindow, const std::shared_ptr< PresenterTextView > &rpNotesTextView)
css::uno::Reference< css::awt::XWindow > mxPreviewContentWindow
::rtl::Reference< AccessibleObject > mpAccessiblePreview
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
css::uno::Reference< css::awt::XWindow > mxNotesBorderWindow
const css::uno::Reference< css::uno::XComponentContext > mxComponentContext
::rtl::Reference< AccessibleObject > mpAccessibleConsole
std::shared_ptr< PaneDescriptor > SharedPaneDescriptor
::cppu::WeakComponentImplHelper< css::accessibility::XAccessible, css::lang::XInitialization, css::awt::XFocusListener > PresenterAccessibleInterfaceBase