LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/include/svx - IAccessibleParent.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2013-07-09 Functions: 2 3 66.7 %
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             : #ifndef _SVX_ACCESSIBILITY_IACCESSIBLE_PARENT_HXX
      21             : #define _SVX_ACCESSIBILITY_IACCESSIBLE_PARENT_HXX
      22             : 
      23             : #include <com/sun/star/uno/RuntimeException.hpp>
      24             : #include <com/sun/star/drawing/XShape.hpp>
      25             : #include <sal/types.h>
      26             : 
      27             : namespace accessibility {
      28             : 
      29             : class AccessibleShape;
      30             : class AccessibleShapeTreeInfo;
      31             : 
      32             : /** This interface contains methods missing from the
      33             :     XAccessibleContext interface that allow the modification of
      34             :     parent/child relationship.
      35             : */
      36          25 : class IAccessibleParent
      37             : {
      38             : public:
      39             :     /** Allow for a virtual destructor.
      40             :     */
      41          25 :     virtual ~IAccessibleParent (void){};
      42             : 
      43             :     /** A call to this method requests the implementor to replace one child
      44             :         with another and send the appropriate notifications.  That are two
      45             :         child events: One notifying the removal of the current child and one
      46             :         about the existence of the new child.  The index of the new child is
      47             :         implementation dependent, i.e. it is not garanteed that the
      48             :         replacement has the same index as the current child has.
      49             : 
      50             :         <p>A default implementation can just use the ShapeTypeHandler::CreateAccessibleObject
      51             :         to let a factory create the new instance with the parameters given, and then
      52             :         place the new shape into the own structures.</p>
      53             : 
      54             :         @param pCurrentChild
      55             :             This child is about to be replaced.
      56             : 
      57             :         @param _rxShape
      58             :             The UNO shape which the old and new child represent
      59             : 
      60             :         @param _nIndex
      61             :             The IndexInParent of the old child. Note that the index in
      62             :             parent of the replacement is not necessarily the same as
      63             :             that of the current child.
      64             : 
      65             :         @param _rShapeTreeInfo
      66             :             The TreeInfo for the old child.
      67             : 
      68             :         @return
      69             :            If the replacement has taken place successfully <TRUE/> is
      70             :            returned.  If the replacement can not be carried out or an error
      71             :            occurs that does not result in an exception then <FALSE/> is
      72             :            returned.
      73             : 
      74             :         @raises RuntimeException
      75             :            in case something went heavily wrong
      76             :     */
      77             :     virtual sal_Bool ReplaceChild (
      78             :         AccessibleShape* pCurrentChild,
      79             :         const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& _rxShape,
      80             :         const long _nIndex,
      81             :         const AccessibleShapeTreeInfo& _rShapeTreeInfo
      82             :     )   throw (::com::sun::star::uno::RuntimeException) = 0;
      83             : };
      84             : 
      85             : } // end of namespace accessibility
      86             : 
      87             : #endif
      88             : 
      89             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10