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

Generated by: LCOV version 1.10