android: Update app-specific/MIME type icons
[LibreOffice.git] / sd / source / ui / inc / AccessibleOutlineView.hxx
blobddff1b465289678000cb3bc479f4a9bfd6900b80
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 #pragma once
22 #include "AccessibleDocumentViewBase.hxx"
23 #include <svx/AccessibleTextHelper.hxx>
25 namespace sd { class OutlineViewShell; }
27 namespace accessibility {
29 /** This class makes the Impress outline view accessible.
31 Please see the documentation of the base class for further
32 explanations of the individual methods. This class is a mere
33 wrapper around the AccessibleTextHelper class; as basically the
34 Outline View is a big Outliner.
36 class AccessibleOutlineView final
37 : public AccessibleDocumentViewBase
39 public:
40 AccessibleOutlineView (
41 ::sd::Window* pSdWindow,
42 ::sd::OutlineViewShell* pViewShell,
43 const css::uno::Reference<css::frame::XController>& rxController,
44 const css::uno::Reference<css::accessibility::XAccessible>& rxParent);
46 virtual ~AccessibleOutlineView() override;
48 /** Complete the initialization begun in the constructor.
50 virtual void Init() override;
52 //===== IAccessibleViewForwarderListener ================================
54 virtual void ViewForwarderChanged() override;
56 //===== XAccessibleContext ==============================================
58 virtual sal_Int64 SAL_CALL
59 getAccessibleChildCount() override;
61 virtual css::uno::Reference< css::accessibility::XAccessible> SAL_CALL
62 getAccessibleChild (sal_Int64 nIndex) override;
63 virtual OUString SAL_CALL
64 getAccessibleName() override;
65 //===== XAccessibleEventBroadcaster ========================================
67 virtual void SAL_CALL
68 addAccessibleEventListener (
69 const css::uno::Reference<css::accessibility::XAccessibleEventListener >& xListener) override;
71 virtual void SAL_CALL
72 removeAccessibleEventListener (
73 const css::uno::Reference<css::accessibility::XAccessibleEventListener >& xListener) override;
75 //===== XServiceInfo ====================================================
77 /** Returns an identifier for the implementation of this object.
79 virtual OUString SAL_CALL
80 getImplementationName() override;
82 //===== lang::XEventListener ============================================
84 using AccessibleDocumentViewBase::disposing;
86 //===== XPropertyChangeListener =========================================
88 virtual void SAL_CALL
89 propertyChange (const css::beans::PropertyChangeEvent& rEventObject) override;
91 private:
93 // overridden to detect focus changes
94 virtual void Activated() override;
96 // overridden to detect focus changes
97 virtual void Deactivated() override;
99 // declared, but not defined
100 AccessibleOutlineView( const AccessibleOutlineView& );
101 AccessibleOutlineView& operator= ( const AccessibleOutlineView& );
103 // This method is called from the component helper base class while disposing.
104 virtual void SAL_CALL disposing() override;
106 /// Create an accessible name that contains the current view mode.
107 virtual OUString
108 CreateAccessibleName () override;
110 /// Invalidate text helper, updates visible children
111 void UpdateChildren();
113 AccessibleTextHelper maTextHelper;
117 } // end of namespace accessibility
119 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */