LCOV - code coverage report
Current view: top level - unoxml/source/events - mutationevent.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 39 52 75.0 %
Date: 2015-06-13 12:38:46 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      596564 :     CMutationEvent::CMutationEvent()
      29             :         : CMutationEvent_Base()
      30      596564 :         , m_attrChangeType(AttrChangeType_MODIFICATION)
      31             :     {
      32      596564 :     }
      33             : 
      34     1193128 :     CMutationEvent::~CMutationEvent()
      35             :     {
      36     1193128 :     }
      37             : 
      38      298282 :     Reference< XNode > SAL_CALL CMutationEvent::getRelatedNode() throw (RuntimeException, std::exception)
      39             :     {
      40      298282 :         ::osl::MutexGuard const g(m_Mutex);
      41      298282 :         return m_relatedNode;
      42             :     }
      43             : 
      44      298282 :     OUString SAL_CALL CMutationEvent::getPrevValue() throw (RuntimeException, std::exception)
      45             :     {
      46      298282 :         ::osl::MutexGuard const g(m_Mutex);
      47      298282 :         return m_prevValue;
      48             :     }
      49             : 
      50      298282 :     OUString SAL_CALL CMutationEvent::getNewValue() throw (RuntimeException, std::exception)
      51             :     {
      52      298282 :         ::osl::MutexGuard const g(m_Mutex);
      53      298282 :         return m_newValue;
      54             :     }
      55             : 
      56      298282 :     OUString SAL_CALL CMutationEvent::getAttrName() throw (RuntimeException, std::exception)
      57             :     {
      58      298282 :         ::osl::MutexGuard const g(m_Mutex);
      59      298282 :         return m_attrName;
      60             :     }
      61             : 
      62      298282 :     AttrChangeType SAL_CALL CMutationEvent::getAttrChange() throw (RuntimeException, std::exception)
      63             :     {
      64      298282 :         ::osl::MutexGuard const g(m_Mutex);
      65      298282 :         return m_attrChangeType;
      66             :     }
      67             : 
      68      596564 :     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      596564 :         ::osl::MutexGuard const g(m_Mutex);
      75             : 
      76      596564 :         CEvent::initEvent(typeArg, canBubbleArg, cancelableArg);
      77      596564 :         m_relatedNode = relatedNodeArg;
      78      596564 :         m_prevValue = prevValueArg;
      79      596564 :         m_newValue = newValueArg;
      80      596564 :         m_attrName = attrNameArg;
      81      596564 :         m_attrChangeType = attrChangeArg;
      82      596564 :     }
      83             : 
      84             :     // delegate to CEvent, since we are inheriting from CEvent and XEvent
      85      298282 :     OUString SAL_CALL CMutationEvent::getType() throw (RuntimeException, std::exception)
      86             :     {
      87      298282 :         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      298282 :     Reference< XEventTarget > SAL_CALL CMutationEvent::getCurrentTarget() throw (RuntimeException, std::exception)
      96             :     {
      97      298282 :         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      596564 :     sal_Bool SAL_CALL CMutationEvent::getBubbles() throw (RuntimeException, std::exception)
     106             :     {
     107      596564 :         return CEvent::getBubbles();
     108             :     }
     109             : 
     110      298282 :     sal_Bool SAL_CALL CMutationEvent::getCancelable() throw (RuntimeException, std::exception)
     111             :     {
     112      298282 :         return CEvent::getCancelable();
     113             :     }
     114             : 
     115      298282 :     css::util::Time SAL_CALL CMutationEvent::getTimeStamp() throw (RuntimeException, std::exception)
     116             :     {
     117      298282 :         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.11