1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #include <svx/ChildrenManager.hxx>
21 #include "ChildrenManagerImpl.hxx"
22 #include <sal/log.hxx>
24 using namespace ::com::sun::star
;
25 using namespace ::com::sun::star::accessibility
;
26 using ::com::sun::star::uno::Reference
;
28 namespace accessibility
{
30 // AccessibleChildrenManager
31 ChildrenManager::ChildrenManager (
32 const css::uno::Reference
<XAccessible
>& rxParent
,
33 const css::uno::Reference
<drawing::XShapes
>& rxShapeList
,
34 const AccessibleShapeTreeInfo
& rShapeTreeInfo
,
35 AccessibleContextBase
& rContext
)
37 new ChildrenManagerImpl(
38 rxParent
, rxShapeList
, rShapeTreeInfo
, rContext
))
44 ChildrenManager::~ChildrenManager()
49 SAL_INFO("svx", "~ChildrenManager");
52 tools::Long
ChildrenManager::GetChildCount() const noexcept
54 return mpImpl
->GetChildCount();
57 css::uno::Reference
<XAccessible
> ChildrenManager::GetChild (tools::Long nIndex
)
59 return mpImpl
->GetChild (nIndex
);
62 css::uno::Reference
<css::drawing::XShape
> ChildrenManager::GetChildShape(tools::Long nIndex
)
64 return mpImpl
->GetChildShape(nIndex
);
67 void ChildrenManager::Update (bool bCreateNewObjectsOnDemand
)
69 mpImpl
->Update (bCreateNewObjectsOnDemand
);
72 void ChildrenManager::SetShapeList (const css::uno::Reference
<css::drawing::XShapes
>& xShapeList
)
74 mpImpl
->SetShapeList (xShapeList
);
77 void ChildrenManager::AddAccessibleShape (css::uno::Reference
<css::accessibility::XAccessible
> const & shape
)
79 mpImpl
->AddAccessibleShape (shape
);
82 void ChildrenManager::ClearAccessibleShapeList()
84 mpImpl
->ClearAccessibleShapeList ();
87 void ChildrenManager::SetInfo (AccessibleShapeTreeInfo
const & rShapeTreeInfo
)
89 mpImpl
->SetInfo (rShapeTreeInfo
);
92 void ChildrenManager::UpdateSelection()
94 mpImpl
->UpdateSelection ();
97 bool ChildrenManager::HasFocus() const
99 return mpImpl
->HasFocus ();
102 void ChildrenManager::RemoveFocus()
104 mpImpl
->RemoveFocus ();
107 // IAccessibleViewForwarderListener
108 void ChildrenManager::ViewForwarderChanged()
110 mpImpl
->ViewForwarderChanged();
113 } // end of namespace accessibility
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */