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#include <tools/long.hxx>
29
30namespace com::sun::star
31{
32namespace accessibility
33{
34class XAccessible;
35}
36namespace drawing
37{
38class XShape;
39}
40namespace drawing
41{
42class XShapes;
43}
44}
45
46namespace accessibility
47{
48class AccessibleContextBase;
49class AccessibleShape;
50class AccessibleShapeTreeInfo;
51class ChildrenManagerImpl;
52
90{
91public:
109 ChildrenManager(const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
110 const css::uno::Reference<css::drawing::XShapes>& rxShapeList,
111 const AccessibleShapeTreeInfo& rShapeTreeInfo, AccessibleContextBase& rContext);
112
117
122 sal_Int64 GetChildCount() const noexcept;
123
137 css::uno::Reference<css::accessibility::XAccessible> GetChild(sal_Int64 nIndex);
140 const css::uno::Reference<css::drawing::XShape>& GetChildShape(sal_Int64 nIndex);
141
153 void Update(bool bCreateNewObjectsOnDemand = true);
154
159 void SetShapeList(const css::uno::Reference<css::drawing::XShapes>& xShapeList);
160
168 void AddAccessibleShape(rtl::Reference<AccessibleShape> const& shape);
169
173 void ClearAccessibleShapeList();
174
180 void SetInfo(AccessibleShapeTreeInfo const& rShapeTreeInfo);
181
186 void UpdateSelection();
187
194 bool HasFocus() const;
195
200 void RemoveFocus();
201
202 void ViewForwarderChanged();
203
204private:
205 rtl::Reference<ChildrenManagerImpl> mpImpl;
206
208 ChildrenManager& operator=(const ChildrenManager&) = delete;
209};
210
211} // end of namespace accessibility
212
213#endif
214
215/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class bundles all information that is passed down the tree of accessible shapes so that each sha...
This base class provides a base implementation for all shapes.
This class contains the actual implementation of the children manager.
The AccessibleChildrenManager class acts as a cache of the accessible objects of the currently visibl...
ChildrenManager(const css::uno::Reference< css::accessibility::XAccessible > &rxParent, const css::uno::Reference< css::drawing::XShapes > &rxShapeList, const AccessibleShapeTreeInfo &rShapeTreeInfo, AccessibleContextBase &rContext)
Create a children manager, which manages the children of the given parent.
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28