LibreOffice Module sdext (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>
31 #include <cppuhelper/compbase.hxx>
32 #include <cppuhelper/basemutex.hxx>
33 #include <rtl/ref.hxx>
34 #include <memory>
35 
36 
37 namespace sdext::presenter {
38 
39 class PresenterController;
41 
42 typedef ::cppu::WeakComponentImplHelper <
43  css::accessibility::XAccessible,
44  css::lang::XInitialization,
45  css::awt::XFocusListener
47 
49  : public ::cppu::BaseMutex,
50  public PresenterAccessibleInterfaceBase
51 {
52 public:
54  const css::uno::Reference<css::uno::XComponentContext>& rxContext,
55  const ::rtl::Reference<PresenterController>& rpPresenterController,
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 
87 private:
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: */
css::uno::Reference< css::awt::XWindow > mxMainWindow
css::uno::Reference< css::awt::XWindow > mxPreviewContentWindow
virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext() override
::rtl::Reference< AccessibleObject > mpAccessibleConsole
css::uno::Reference< css::awt::XWindow > mxPreviewBorderWindow
::cppu::WeakComponentImplHelper< css::accessibility::XAccessible, css::lang::XInitialization, css::awt::XFocusListener > PresenterAccessibleInterfaceBase
PresenterPaneContainer::SharedPaneDescriptor GetPreviewPane() const
::rtl::Reference< AccessibleObject > mpAccessibleNotes
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArguments) override
virtual void SAL_CALL disposing() override
::rtl::Reference< PresenterController > mpPresenterController
virtual void SAL_CALL focusGained(const css::awt::FocusEvent &rEvent) override
css::uno::Reference< css::drawing::framework::XPane2 > mxMainPane
::rtl::Reference< AccessibleObject > mpAccessiblePreview
css::uno::Reference< css::awt::XWindow > mxNotesBorderWindow
PresenterAccessible(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const ::rtl::Reference< PresenterController > &rpPresenterController, const css::uno::Reference< css::drawing::framework::XPane > &rxMainPane)
const css::uno::Reference< css::uno::XComponentContext > mxComponentContext
std::shared_ptr< PaneDescriptor > SharedPaneDescriptor
css::uno::Reference< css::accessibility::XAccessible > mxAccessibleParent
A simple text view that paints text onto a given canvas.
css::uno::Reference< css::awt::XWindow > mxNotesContentWindow
virtual void SAL_CALL focusLost(const css::awt::FocusEvent &rEvent) override