LibreOffice Module svx (master)  1
ChildrenManager.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_SVX_CHILDRENMANAGER_HXX
21 #define INCLUDED_SVX_CHILDRENMANAGER_HXX
22 
23 #include <sal/config.h>
24 
25 #include <com/sun/star/uno/Reference.hxx>
26 #include <rtl/ref.hxx>
27 #include <svx/svxdllapi.h>
28 
29 namespace com::sun::star {
30  namespace accessibility { class XAccessible; }
31  namespace drawing { class XShape; }
32  namespace drawing { class XShapes; }
33 }
34 
35 namespace accessibility {
36 
37 class AccessibleContextBase;
38 class AccessibleShapeTreeInfo;
39 class ChildrenManagerImpl;
40 
78 {
79 public:
97  ChildrenManager (const css::uno::Reference<
98  css::accessibility::XAccessible>& rxParent,
99  const css::uno::Reference<
100  css::drawing::XShapes>& rxShapeList,
101  const AccessibleShapeTreeInfo& rShapeTreeInfo,
102  AccessibleContextBase& rContext);
103 
107  ~ChildrenManager();
108 
113  long GetChildCount() const throw ();
114 
128  css::uno::Reference<
129  css::accessibility::XAccessible>
130  GetChild (long nIndex);
133  css::uno::Reference< css::drawing::XShape> GetChildShape (long nIndex);
134 
146  void Update (bool bCreateNewObjectsOnDemand = true);
147 
152  void SetShapeList (const css::uno::Reference<
153  css::drawing::XShapes>& xShapeList);
154 
162  void AddAccessibleShape (css::uno::Reference<css::accessibility::XAccessible> const & shape);
163 
167  void ClearAccessibleShapeList();
168 
174  void SetInfo (AccessibleShapeTreeInfo const & rShapeTreeInfo);
175 
180  void UpdateSelection();
181 
188  bool HasFocus() const;
189 
194  void RemoveFocus();
195 
196  void ViewForwarderChanged();
197 
198 private:
200 
201  ChildrenManager (const ChildrenManager&) = delete;
202  ChildrenManager& operator= (const ChildrenManager&) = delete;
203 };
204 
205 } // end of namespace accessibility
206 
207 #endif
208 
209 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_Int32 nIndex
The AccessibleChildrenManager class acts as a cache of the accessible objects of the currently visibl...
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
rtl::Reference< ChildrenManagerImpl > mpImpl
This class bundles all information that is passed down the tree of accessible shapes so that each sha...