bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / inc / AccessibleOutlineView.hxx
blob5ae89ae20f51df8608e13304270dd689c6f5a6b1
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
38 : public AccessibleDocumentViewBase
40 public:
41 AccessibleOutlineView (
42 ::sd::Window* pSdWindow,
43 ::sd::OutlineViewShell* pViewShell,
44 const ::com::sun::star::uno::Reference<
45 ::com::sun::star::frame::XController>& rxController,
46 const ::com::sun::star::uno::Reference<
47 ::com::sun::star::accessibility::XAccessible>& rxParent);
49 virtual ~AccessibleOutlineView();
51 /** Complete the initialization begun in the constructor.
53 virtual void Init() SAL_OVERRIDE;
55 //===== IAccessibleViewForwarderListener ================================
57 virtual void ViewForwarderChanged (ChangeType aChangeType,
58 const IAccessibleViewForwarder* pViewForwarder) SAL_OVERRIDE;
60 //===== XAccessibleContext ==============================================
62 virtual sal_Int32 SAL_CALL
63 getAccessibleChildCount()
64 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
66 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
67 getAccessibleChild (sal_Int32 nIndex)
68 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
69 virtual OUString SAL_CALL
70 getAccessibleName()
71 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
72 //===== XAccessibleEventBroadcaster ========================================
74 virtual void SAL_CALL
75 addAccessibleEventListener (
76 const ::com::sun::star::uno::Reference<
77 ::com::sun::star::accessibility::XAccessibleEventListener >& xListener)
78 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
80 virtual void SAL_CALL
81 removeAccessibleEventListener (
82 const ::com::sun::star::uno::Reference<
83 ::com::sun::star::accessibility::XAccessibleEventListener >& xListener)
84 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
86 //===== XServiceInfo ====================================================
88 /** Returns an identifier for the implementation of this object.
90 virtual OUString SAL_CALL
91 getImplementationName()
92 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
94 //===== lang::XEventListener ============================================
96 virtual void SAL_CALL
97 disposing (const ::com::sun::star::lang::EventObject& rEventObject)
98 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
100 //===== XPropertyChangeListener =========================================
102 virtual void SAL_CALL
103 propertyChange (const ::com::sun::star::beans::PropertyChangeEvent& rEventObject)
104 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
106 protected:
108 // overridden to detect focus changes
109 virtual void Activated() SAL_OVERRIDE;
111 // overridden to detect focus changes
112 virtual void Deactivated() SAL_OVERRIDE;
114 // declared, but not defined
115 AccessibleOutlineView( const AccessibleOutlineView& );
116 AccessibleOutlineView& operator= ( const AccessibleOutlineView& );
118 // This method is called from the component helper base class while disposing.
119 virtual void SAL_CALL disposing() SAL_OVERRIDE;
121 /// Create an accessible name that contains the current view mode.
122 virtual OUString
123 CreateAccessibleName ()
124 throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
126 /// Create an accessible description that contains the current
127 /// view mode.
128 virtual OUString
129 CreateAccessibleDescription ()
130 throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
132 private:
134 /// Invalidate text helper, updates visible children
135 void UpdateChildren();
137 AccessibleTextHelper maTextHelper;
141 } // end of namespace accessibility
143 #endif
145 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */