LCOV - code coverage report
Current view: top level - include/svx - IAccessibleParent.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 7 0.0 %
Date: 2014-04-14 Functions: 0 6 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             : #ifndef INCLUDED_SVX_IACCESSIBLEPARENT_HXX
      21             : #define INCLUDED_SVX_IACCESSIBLEPARENT_HXX
      22             : 
      23             : #include <com/sun/star/uno/RuntimeException.hpp>
      24             : #include <com/sun/star/drawing/XShape.hpp>
      25             : #include <sal/types.h>
      26             : #include "AccessibleControlShape.hxx"
      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           0 : class IAccessibleParent
      37             : {
      38             : public:
      39             :     /** Allow for a virtual destructor.
      40             :     */
      41           0 :     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 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             :     //Add this method to support Form Controls
      84           0 :     virtual AccessibleControlShape* GetAccControlShapeFromModel
      85             :         (::com::sun::star::beans::XPropertySet*)
      86           0 :         throw (::com::sun::star::uno::RuntimeException){return NULL;};
      87             :     virtual  ::com::sun::star::uno::Reference<
      88             :             ::com::sun::star::accessibility::XAccessible>
      89           0 :         GetAccessibleCaption (const ::com::sun::star::uno::Reference<
      90             :             ::com::sun::star::drawing::XShape>&)
      91           0 :             throw (::com::sun::star::uno::RuntimeException){return NULL;};
      92           0 :     virtual bool IsDocumentSelAll(){ return false; }
      93             : };
      94             : 
      95             : } // end of namespace accessibility
      96             : 
      97             : #endif
      98             : 
      99             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10