LibreOffice Module svx (master) 1
ChildrenManager.cxx
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
22#include <sal/log.hxx>
23
24using namespace ::com::sun::star;
25using namespace ::com::sun::star::accessibility;
26using ::com::sun::star::uno::Reference;
27
28namespace accessibility {
29
30// AccessibleChildrenManager
32 const css::uno::Reference<XAccessible>& rxParent,
33 const css::uno::Reference<drawing::XShapes>& rxShapeList,
34 const AccessibleShapeTreeInfo& rShapeTreeInfo,
35 AccessibleContextBase& rContext)
36 : mpImpl(
37 new ChildrenManagerImpl(
38 rxParent, rxShapeList, rShapeTreeInfo, rContext))
39{
40 mpImpl->Init ();
41}
42
43
44ChildrenManager::~ChildrenManager()
45{
46 mpImpl->dispose();
47
48 // empty
49 SAL_INFO("svx", "~ChildrenManager");
50}
51
52tools::Long ChildrenManager::GetChildCount() const noexcept
53{
54 return mpImpl->GetChildCount();
55}
56
57css::uno::Reference<XAccessible> ChildrenManager::GetChild (tools::Long nIndex)
58{
59 return mpImpl->GetChild (nIndex);
60}
61
62const css::uno::Reference<css::drawing::XShape>& ChildrenManager::GetChildShape(tools::Long nIndex)
63{
64 return mpImpl->GetChildShape(nIndex);
65}
66
67void ChildrenManager::Update (bool bCreateNewObjectsOnDemand)
68{
69 mpImpl->Update (bCreateNewObjectsOnDemand);
70}
71
72void ChildrenManager::SetShapeList (const css::uno::Reference<css::drawing::XShapes>& xShapeList)
73{
74 mpImpl->SetShapeList (xShapeList);
75}
76
77void ChildrenManager::AddAccessibleShape (rtl::Reference<AccessibleShape> const & shape)
78{
79 mpImpl->AddAccessibleShape (shape);
80}
81
82void ChildrenManager::ClearAccessibleShapeList()
83{
84 mpImpl->ClearAccessibleShapeList ();
85}
86
87void ChildrenManager::SetInfo (AccessibleShapeTreeInfo const & rShapeTreeInfo)
88{
89 mpImpl->SetInfo (rShapeTreeInfo);
90}
91
92void ChildrenManager::UpdateSelection()
93{
94 mpImpl->UpdateSelection ();
95}
96
97bool ChildrenManager::HasFocus() const
98{
99 return mpImpl->HasFocus ();
100}
101
102void ChildrenManager::RemoveFocus()
103{
104 mpImpl->RemoveFocus ();
105}
106
107// IAccessibleViewForwarderListener
108void ChildrenManager::ViewForwarderChanged()
109{
110 mpImpl->ViewForwarderChanged();
111}
112
113} // end of namespace accessibility
114
115/* 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...
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.
sal_Int32 nIndex
#define SAL_INFO(area, stream)
long Long