LCOV - code coverage report
Current view: top level - svx/source/accessibility - ChildrenManager.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 45 0.0 %
Date: 2014-04-14 Functions: 0 16 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #include <svx/ChildrenManager.hxx>
      21             : #include "ChildrenManagerImpl.hxx"
      22             : #include <svx/AccessibleShape.hxx>
      23             : 
      24             : using namespace ::com::sun::star;
      25             : using namespace ::com::sun::star::accessibility;
      26             : using ::com::sun::star::uno::Reference;
      27             : 
      28             : namespace accessibility {
      29             : 
      30             : 
      31             : //=====  AccessibleChildrenManager  ===========================================
      32             : 
      33           0 : ChildrenManager::ChildrenManager (
      34             :     const ::com::sun::star::uno::Reference<XAccessible>& rxParent,
      35             :     const ::com::sun::star::uno::Reference<drawing::XShapes>& rxShapeList,
      36             :     const AccessibleShapeTreeInfo& rShapeTreeInfo,
      37             :     AccessibleContextBase& rContext)
      38           0 :     : mpImpl (NULL)
      39             : {
      40           0 :     mpImpl = new ChildrenManagerImpl (rxParent, rxShapeList, rShapeTreeInfo, rContext);
      41           0 :     if (mpImpl != NULL)
      42           0 :         mpImpl->Init ();
      43             :     else
      44             :         throw uno::RuntimeException(
      45           0 :             "ChildrenManager::ChildrenManager can't create implementation object", NULL);
      46           0 : }
      47             : 
      48             : 
      49             : 
      50             : 
      51           0 : ChildrenManager::~ChildrenManager (void)
      52             : {
      53           0 :     if (mpImpl != NULL)
      54           0 :         mpImpl->dispose();
      55             : 
      56             :     // emtpy
      57             :     OSL_TRACE ("~ChildrenManager");
      58           0 : }
      59             : 
      60             : 
      61             : 
      62             : 
      63           0 : long ChildrenManager::GetChildCount (void) const throw ()
      64             : {
      65             :     OSL_ASSERT (mpImpl != NULL);
      66           0 :     return mpImpl->GetChildCount();
      67             : }
      68             : 
      69             : 
      70             : 
      71             : 
      72           0 : ::com::sun::star::uno::Reference<XAccessible> ChildrenManager::GetChild (long nIndex)
      73             :     throw (::com::sun::star::uno::RuntimeException,
      74             :            ::com::sun::star::lang::IndexOutOfBoundsException)
      75             : {
      76             :     OSL_ASSERT (mpImpl != NULL);
      77           0 :     return mpImpl->GetChild (nIndex);
      78             : }
      79             : 
      80           0 : Reference<XAccessible> ChildrenManager::GetChild (const Reference<drawing::XShape>& xShape)
      81             :     throw (::com::sun::star::uno::RuntimeException)
      82             : {
      83             :     OSL_ASSERT (mpImpl != NULL);
      84           0 :     return mpImpl->GetChild (xShape);
      85             : }
      86             : 
      87             : ::com::sun::star::uno::Reference<
      88           0 :         ::com::sun::star::drawing::XShape> ChildrenManager::GetChildShape(long nIndex)
      89             :     throw (::com::sun::star::uno::RuntimeException,
      90             :            ::com::sun::star::lang::IndexOutOfBoundsException)
      91             : {
      92             :     OSL_ASSERT (mpImpl != NULL);
      93           0 :     return mpImpl->GetChildShape(nIndex);
      94             : }
      95             : 
      96           0 : void ChildrenManager::Update (bool bCreateNewObjectsOnDemand)
      97             : {
      98             :     OSL_ASSERT (mpImpl != NULL);
      99           0 :     mpImpl->Update (bCreateNewObjectsOnDemand);
     100           0 : }
     101             : 
     102             : 
     103             : 
     104             : 
     105           0 : void ChildrenManager::SetShapeList (const ::com::sun::star::uno::Reference<
     106             :     ::com::sun::star::drawing::XShapes>& xShapeList)
     107             : {
     108             :     OSL_ASSERT (mpImpl != NULL);
     109           0 :     mpImpl->SetShapeList (xShapeList);
     110           0 : }
     111             : 
     112             : 
     113             : 
     114             : 
     115           0 : void ChildrenManager::AddAccessibleShape (css::uno::Reference<css::accessibility::XAccessible> const & shape)
     116             : {
     117             :     OSL_ASSERT (mpImpl != NULL);
     118           0 :     mpImpl->AddAccessibleShape (shape);
     119           0 : }
     120             : 
     121             : 
     122             : 
     123             : 
     124           0 : void ChildrenManager::ClearAccessibleShapeList (void)
     125             : {
     126             :     OSL_ASSERT (mpImpl != NULL);
     127           0 :     mpImpl->ClearAccessibleShapeList ();
     128           0 : }
     129             : 
     130             : 
     131             : 
     132             : 
     133           0 : void ChildrenManager::SetInfo (AccessibleShapeTreeInfo& rShapeTreeInfo)
     134             : {
     135             :     OSL_ASSERT (mpImpl != NULL);
     136           0 :     mpImpl->SetInfo (rShapeTreeInfo);
     137           0 : }
     138             : 
     139             : 
     140             : 
     141             : 
     142           0 : void ChildrenManager::UpdateSelection (void)
     143             : {
     144             :     OSL_ASSERT (mpImpl != NULL);
     145           0 :     mpImpl->UpdateSelection ();
     146           0 : }
     147             : 
     148             : 
     149             : 
     150             : 
     151           0 : bool ChildrenManager::HasFocus (void)
     152             : {
     153             :     OSL_ASSERT (mpImpl != NULL);
     154           0 :     return mpImpl->HasFocus ();
     155             : }
     156             : 
     157             : 
     158             : 
     159             : 
     160           0 : void ChildrenManager::RemoveFocus (void)
     161             : {
     162             :     OSL_ASSERT (mpImpl != NULL);
     163           0 :     mpImpl->RemoveFocus ();
     164           0 : }
     165             : 
     166             : 
     167             : 
     168             : 
     169             : //=====  IAccessibleViewForwarderListener  ====================================
     170           0 : void ChildrenManager::ViewForwarderChanged (ChangeType aChangeType,
     171             :         const IAccessibleViewForwarder* pViewForwarder)
     172             : {
     173             :     OSL_ASSERT (mpImpl != NULL);
     174           0 :     mpImpl->ViewForwarderChanged (aChangeType, pViewForwarder);
     175           0 : }
     176             : 
     177             : 
     178             : 
     179             : } // end of namespace accessibility
     180             : 
     181             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10