LCOV - code coverage report
Current view: top level - libreoffice/svx/source/accessibility - ChildrenManager.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 41 0.0 %
Date: 2012-12-27 Functions: 0 14 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             :             ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
      46           0 :                 "ChildrenManager::ChildrenManager can't create implementation object")), NULL);
      47           0 : }
      48             : 
      49             : 
      50             : 
      51             : 
      52           0 : ChildrenManager::~ChildrenManager (void)
      53             : {
      54           0 :     if (mpImpl != NULL)
      55           0 :         mpImpl->dispose();
      56             : 
      57             :     // emtpy
      58             :     OSL_TRACE ("~ChildrenManager");
      59           0 : }
      60             : 
      61             : 
      62             : 
      63             : 
      64           0 : long ChildrenManager::GetChildCount (void) const throw ()
      65             : {
      66             :     OSL_ASSERT (mpImpl != NULL);
      67           0 :     return mpImpl->GetChildCount();
      68             : }
      69             : 
      70             : 
      71             : 
      72             : 
      73           0 : ::com::sun::star::uno::Reference<XAccessible> ChildrenManager::GetChild (long nIndex)
      74             :     throw (::com::sun::star::uno::RuntimeException,
      75             :            ::com::sun::star::lang::IndexOutOfBoundsException)
      76             : {
      77             :     OSL_ASSERT (mpImpl != NULL);
      78           0 :     return mpImpl->GetChild (nIndex);
      79             : }
      80             : 
      81             : 
      82             : 
      83             : 
      84           0 : void ChildrenManager::Update (bool bCreateNewObjectsOnDemand)
      85             : {
      86             :     OSL_ASSERT (mpImpl != NULL);
      87           0 :     mpImpl->Update (bCreateNewObjectsOnDemand);
      88           0 : }
      89             : 
      90             : 
      91             : 
      92             : 
      93           0 : void ChildrenManager::SetShapeList (const ::com::sun::star::uno::Reference<
      94             :     ::com::sun::star::drawing::XShapes>& xShapeList)
      95             : {
      96             :     OSL_ASSERT (mpImpl != NULL);
      97           0 :     mpImpl->SetShapeList (xShapeList);
      98           0 : }
      99             : 
     100             : 
     101             : 
     102             : 
     103           0 : void ChildrenManager::AddAccessibleShape (std::auto_ptr<AccessibleShape> pShape)
     104             : {
     105             :     OSL_ASSERT (mpImpl != NULL);
     106           0 :     mpImpl->AddAccessibleShape (pShape);
     107           0 : }
     108             : 
     109             : 
     110             : 
     111             : 
     112           0 : void ChildrenManager::ClearAccessibleShapeList (void)
     113             : {
     114             :     OSL_ASSERT (mpImpl != NULL);
     115           0 :     mpImpl->ClearAccessibleShapeList ();
     116           0 : }
     117             : 
     118             : 
     119             : 
     120             : 
     121           0 : void ChildrenManager::SetInfo (AccessibleShapeTreeInfo& rShapeTreeInfo)
     122             : {
     123             :     OSL_ASSERT (mpImpl != NULL);
     124           0 :     mpImpl->SetInfo (rShapeTreeInfo);
     125           0 : }
     126             : 
     127             : 
     128             : 
     129             : 
     130           0 : void ChildrenManager::UpdateSelection (void)
     131             : {
     132             :     OSL_ASSERT (mpImpl != NULL);
     133           0 :     mpImpl->UpdateSelection ();
     134           0 : }
     135             : 
     136             : 
     137             : 
     138             : 
     139           0 : bool ChildrenManager::HasFocus (void)
     140             : {
     141             :     OSL_ASSERT (mpImpl != NULL);
     142           0 :     return mpImpl->HasFocus ();
     143             : }
     144             : 
     145             : 
     146             : 
     147             : 
     148           0 : void ChildrenManager::RemoveFocus (void)
     149             : {
     150             :     OSL_ASSERT (mpImpl != NULL);
     151           0 :     mpImpl->RemoveFocus ();
     152           0 : }
     153             : 
     154             : 
     155             : 
     156             : 
     157             : //=====  IAccessibleViewForwarderListener  ====================================
     158           0 : void ChildrenManager::ViewForwarderChanged (ChangeType aChangeType,
     159             :         const IAccessibleViewForwarder* pViewForwarder)
     160             : {
     161             :     OSL_ASSERT (mpImpl != NULL);
     162           0 :     mpImpl->ViewForwarderChanged (aChangeType, pViewForwarder);
     163           0 : }
     164             : 
     165             : 
     166             : 
     167             : } // end of namespace accessibility
     168             : 
     169             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10