fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / inc / AccessibleOutlineView.hxx
blobdc77370de12451a05b93547c04c6574bc846bf6f
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 SD_ACCESSIBILITY_ACCESSIBLE_OUTLINE_VIEW_HXX
21 #define SD_ACCESSIBILITY_ACCESSIBLE_OUTLINE_VIEW_HXX
23 #include "AccessibleDocumentViewBase.hxx"
24 #include <svx/AccessibleTextHelper.hxx>
26 namespace sd {
27 class OutlineViewShell;
28 class Window;
31 namespace accessibility {
34 /** This class makes the Impress outline view accessible.
36 Please see the documentation of the base class for further
37 explanations of the individual methods. This class is a mere
38 wrapper around the AccessibleTextHelper class; as basically the
39 Outline View is a big Outliner.
41 class AccessibleOutlineView
42 : public AccessibleDocumentViewBase
44 public:
45 AccessibleOutlineView (
46 ::sd::Window* pSdWindow,
47 ::sd::OutlineViewShell* pViewShell,
48 const ::com::sun::star::uno::Reference<
49 ::com::sun::star::frame::XController>& rxController,
50 const ::com::sun::star::uno::Reference<
51 ::com::sun::star::accessibility::XAccessible>& rxParent);
53 virtual ~AccessibleOutlineView (void);
55 /** Complete the initialization begun in the constructor.
57 virtual void Init (void);
60 //===== IAccessibleViewForwarderListener ================================
62 virtual void ViewForwarderChanged (ChangeType aChangeType,
63 const IAccessibleViewForwarder* pViewForwarder);
65 //===== XAccessibleContext ==============================================
67 virtual sal_Int32 SAL_CALL
68 getAccessibleChildCount (void)
69 throw (::com::sun::star::uno::RuntimeException);
71 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
72 getAccessibleChild (sal_Int32 nIndex)
73 throw (::com::sun::star::uno::RuntimeException);
75 //===== XAccessibleEventBroadcaster ========================================
77 virtual void SAL_CALL
78 addAccessibleEventListener (
79 const ::com::sun::star::uno::Reference<
80 ::com::sun::star::accessibility::XAccessibleEventListener >& xListener)
81 throw (::com::sun::star::uno::RuntimeException);
83 virtual void SAL_CALL
84 removeAccessibleEventListener (
85 const ::com::sun::star::uno::Reference<
86 ::com::sun::star::accessibility::XAccessibleEventListener >& xListener)
87 throw (::com::sun::star::uno::RuntimeException);
89 //===== XServiceInfo ====================================================
91 /** Returns an identifier for the implementation of this object.
93 virtual OUString SAL_CALL
94 getImplementationName (void)
95 throw (::com::sun::star::uno::RuntimeException);
97 //===== lang::XEventListener ============================================
99 virtual void SAL_CALL
100 disposing (const ::com::sun::star::lang::EventObject& rEventObject)
101 throw (::com::sun::star::uno::RuntimeException);
103 //===== XPropertyChangeListener =========================================
105 virtual void SAL_CALL
106 propertyChange (const ::com::sun::star::beans::PropertyChangeEvent& rEventObject)
107 throw (::com::sun::star::uno::RuntimeException);
110 protected:
112 // overridden, as we hold the listeners ourselves
113 virtual void FireEvent (const ::com::sun::star::accessibility::AccessibleEventObject& aEvent);
115 // overridden to detect focus changes
116 virtual void Activated (void);
118 // overridden to detect focus changes
119 virtual void Deactivated (void);
121 // declared, but not defined
122 AccessibleOutlineView( const AccessibleOutlineView& );
123 AccessibleOutlineView& operator= ( const AccessibleOutlineView& );
125 // This method is called from the component helper base class while disposing.
126 virtual void SAL_CALL disposing (void);
128 /// Create an accessible name that contains the current view mode.
129 virtual OUString
130 CreateAccessibleName ()
131 throw (::com::sun::star::uno::RuntimeException);
133 /// Create an accessible description that contains the current
134 /// view mode.
135 virtual OUString
136 CreateAccessibleDescription ()
137 throw (::com::sun::star::uno::RuntimeException);
139 private:
141 /// Invalidate text helper, updates visible children
142 void UpdateChildren();
144 AccessibleTextHelper maTextHelper;
148 } // end of namespace accessibility
150 #endif
152 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */