bump product version to 6.3.0.0.beta1
[LibreOffice.git] / sd / source / ui / inc / AccessibleOutlineView.hxx
blobb7cd34d114c640d189eb5b710399f9c278fb792d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SD_SOURCE_UI_INC_ACCESSIBLEOUTLINEVIEW_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_ACCESSIBLEOUTLINEVIEW_HXX
23 #include "AccessibleDocumentViewBase.hxx"
24 #include <svx/AccessibleTextHelper.hxx>
26 namespace sd { class OutlineViewShell; }
28 namespace accessibility {
30 /** This class makes the Impress outline view accessible.
32 Please see the documentation of the base class for further
33 explanations of the individual methods. This class is a mere
34 wrapper around the AccessibleTextHelper class; as basically the
35 Outline View is a big Outliner.
37 class AccessibleOutlineView final
38 : public AccessibleDocumentViewBase
40 public:
41 AccessibleOutlineView (
42 ::sd::Window* pSdWindow,
43 ::sd::OutlineViewShell* pViewShell,
44 const css::uno::Reference<css::frame::XController>& rxController,
45 const css::uno::Reference<css::accessibility::XAccessible>& rxParent);
47 virtual ~AccessibleOutlineView() override;
49 /** Complete the initialization begun in the constructor.
51 virtual void Init() override;
53 //===== IAccessibleViewForwarderListener ================================
55 virtual void ViewForwarderChanged() override;
57 //===== XAccessibleContext ==============================================
59 virtual sal_Int32 SAL_CALL
60 getAccessibleChildCount() override;
62 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
63 getAccessibleChild (sal_Int32 nIndex) override;
64 virtual OUString SAL_CALL
65 getAccessibleName() override;
66 //===== XAccessibleEventBroadcaster ========================================
68 virtual void SAL_CALL
69 addAccessibleEventListener (
70 const css::uno::Reference<css::accessibility::XAccessibleEventListener >& xListener) override;
72 virtual void SAL_CALL
73 removeAccessibleEventListener (
74 const css::uno::Reference<css::accessibility::XAccessibleEventListener >& xListener) override;
76 //===== XServiceInfo ====================================================
78 /** Returns an identifier for the implementation of this object.
80 virtual OUString SAL_CALL
81 getImplementationName() override;
83 //===== lang::XEventListener ============================================
85 using AccessibleDocumentViewBase::disposing;
87 //===== XPropertyChangeListener =========================================
89 virtual void SAL_CALL
90 propertyChange (const css::beans::PropertyChangeEvent& rEventObject) override;
92 private:
94 // overridden to detect focus changes
95 virtual void Activated() override;
97 // overridden to detect focus changes
98 virtual void Deactivated() override;
100 // declared, but not defined
101 AccessibleOutlineView( const AccessibleOutlineView& );
102 AccessibleOutlineView& operator= ( const AccessibleOutlineView& );
104 // This method is called from the component helper base class while disposing.
105 virtual void SAL_CALL disposing() override;
107 /// Create an accessible name that contains the current view mode.
108 virtual OUString
109 CreateAccessibleName () override;
111 /// Invalidate text helper, updates visible children
112 void UpdateChildren();
114 AccessibleTextHelper maTextHelper;
118 } // end of namespace accessibility
120 #endif
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */