LCOV - code coverage report
Current view: top level - unoxml/source/events - mutationevent.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 39 52 75.0 %
Date: 2014-04-11 Functions: 14 19 73.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             : #include <mutationevent.hxx>
      21             : 
      22             : namespace DOM { namespace events
      23             : {
      24      341734 :     CMutationEvent::CMutationEvent()
      25             :         : CMutationEvent_Base()
      26      341734 :         , m_attrChangeType(AttrChangeType_MODIFICATION)
      27             :     {
      28      341734 :     }
      29             : 
      30      683468 :     CMutationEvent::~CMutationEvent()
      31             :     {
      32      683468 :     }
      33             : 
      34      170867 :     Reference< XNode > SAL_CALL CMutationEvent::getRelatedNode() throw (RuntimeException, std::exception)
      35             :     {
      36      170867 :         ::osl::MutexGuard const g(m_Mutex);
      37      170867 :         return m_relatedNode;
      38             :     }
      39             : 
      40      170867 :     OUString SAL_CALL CMutationEvent::getPrevValue() throw (RuntimeException, std::exception)
      41             :     {
      42      170867 :         ::osl::MutexGuard const g(m_Mutex);
      43      170867 :         return m_prevValue;
      44             :     }
      45             : 
      46      170867 :     OUString SAL_CALL CMutationEvent::getNewValue() throw (RuntimeException, std::exception)
      47             :     {
      48      170867 :         ::osl::MutexGuard const g(m_Mutex);
      49      170867 :         return m_newValue;
      50             :     }
      51             : 
      52      170867 :     OUString SAL_CALL CMutationEvent::getAttrName() throw (RuntimeException, std::exception)
      53             :     {
      54      170867 :         ::osl::MutexGuard const g(m_Mutex);
      55      170867 :         return m_attrName;
      56             :     }
      57             : 
      58      170867 :     AttrChangeType SAL_CALL CMutationEvent::getAttrChange() throw (RuntimeException, std::exception)
      59             :     {
      60      170867 :         ::osl::MutexGuard const g(m_Mutex);
      61      170867 :         return m_attrChangeType;
      62             :     }
      63             : 
      64      341734 :     void SAL_CALL CMutationEvent::initMutationEvent(const OUString& typeArg,
      65             :         sal_Bool canBubbleArg, sal_Bool cancelableArg,
      66             :         const Reference< XNode >& relatedNodeArg, const OUString& prevValueArg,
      67             :         const OUString& newValueArg, const OUString& attrNameArg,
      68             :         AttrChangeType attrChangeArg) throw (RuntimeException, std::exception)
      69             :     {
      70      341734 :         ::osl::MutexGuard const g(m_Mutex);
      71             : 
      72      341734 :         CEvent::initEvent(typeArg, canBubbleArg, cancelableArg);
      73      341734 :         m_relatedNode = relatedNodeArg;
      74      341734 :         m_prevValue = prevValueArg;
      75      341734 :         m_newValue = newValueArg;
      76      341734 :         m_attrName = attrNameArg;
      77      341734 :         m_attrChangeType = attrChangeArg;
      78      341734 :     }
      79             : 
      80             :     // delegate to CEvent, since we are inheriting from CEvent and XEvent
      81      170867 :     OUString SAL_CALL CMutationEvent::getType() throw (RuntimeException, std::exception)
      82             :     {
      83      170867 :         return CEvent::getType();
      84             :     }
      85             : 
      86           0 :     Reference< XEventTarget > SAL_CALL CMutationEvent::getTarget() throw (RuntimeException, std::exception)
      87             :     {
      88           0 :         return CEvent::getTarget();
      89             :     }
      90             : 
      91      170867 :     Reference< XEventTarget > SAL_CALL CMutationEvent::getCurrentTarget() throw (RuntimeException, std::exception)
      92             :     {
      93      170867 :         return CEvent::getCurrentTarget();
      94             :     }
      95             : 
      96           0 :     PhaseType SAL_CALL CMutationEvent::getEventPhase() throw (RuntimeException, std::exception)
      97             :     {
      98           0 :         return CEvent::getEventPhase();
      99             :     }
     100             : 
     101      341734 :     sal_Bool SAL_CALL CMutationEvent::getBubbles() throw (RuntimeException, std::exception)
     102             :     {
     103      341734 :         return CEvent::getBubbles();
     104             :     }
     105             : 
     106      170867 :     sal_Bool SAL_CALL CMutationEvent::getCancelable() throw (RuntimeException, std::exception)
     107             :     {
     108      170867 :         return CEvent::getCancelable();
     109             :     }
     110             : 
     111      170867 :     com::sun::star::util::Time SAL_CALL CMutationEvent::getTimeStamp() throw (RuntimeException, std::exception)
     112             :     {
     113      170867 :         return CEvent::getTimeStamp();
     114             :     }
     115             : 
     116           0 :     void SAL_CALL CMutationEvent::stopPropagation() throw (RuntimeException, std::exception)
     117             :     {
     118           0 :         CEvent::stopPropagation();
     119           0 :     }
     120           0 :     void SAL_CALL CMutationEvent::preventDefault() throw (RuntimeException, std::exception)
     121             :     {
     122           0 :         CEvent::preventDefault();
     123           0 :     }
     124             : 
     125           0 :     void SAL_CALL CMutationEvent::initEvent(const OUString& eventTypeArg, sal_Bool canBubbleArg,
     126             :         sal_Bool cancelableArg) throw (RuntimeException, std::exception)
     127             :     {
     128             :         // base initializer
     129           0 :         CEvent::initEvent(eventTypeArg, canBubbleArg, cancelableArg);
     130           0 :     }
     131             : }}
     132             : 
     133             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10