LCOV - code coverage report
Current view: top level - libreoffice/unoxml/source/events - mutationevent.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 39 52 75.0 %
Date: 2012-12-27 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       35146 :     CMutationEvent::CMutationEvent()
      25             :         : CMutationEvent_Base()
      26       35146 :         , m_attrChangeType(AttrChangeType_MODIFICATION)
      27             :     {
      28       35146 :     }
      29             : 
      30       70292 :     CMutationEvent::~CMutationEvent()
      31             :     {
      32       70292 :     }
      33             : 
      34       17573 :     Reference< XNode > SAL_CALL CMutationEvent::getRelatedNode() throw (RuntimeException)
      35             :     {
      36       17573 :         ::osl::MutexGuard const g(m_Mutex);
      37       17573 :         return m_relatedNode;
      38             :     }
      39             : 
      40       17573 :     OUString SAL_CALL CMutationEvent::getPrevValue() throw (RuntimeException)
      41             :     {
      42       17573 :         ::osl::MutexGuard const g(m_Mutex);
      43       17573 :         return m_prevValue;
      44             :     }
      45             : 
      46       17573 :     OUString SAL_CALL CMutationEvent::getNewValue() throw (RuntimeException)
      47             :     {
      48       17573 :         ::osl::MutexGuard const g(m_Mutex);
      49       17573 :         return m_newValue;
      50             :     }
      51             : 
      52       17573 :     OUString SAL_CALL CMutationEvent::getAttrName() throw (RuntimeException)
      53             :     {
      54       17573 :         ::osl::MutexGuard const g(m_Mutex);
      55       17573 :         return m_attrName;
      56             :     }
      57             : 
      58       17573 :     AttrChangeType SAL_CALL CMutationEvent::getAttrChange() throw (RuntimeException)
      59             :     {
      60       17573 :         ::osl::MutexGuard const g(m_Mutex);
      61       17573 :         return m_attrChangeType;
      62             :     }
      63             : 
      64       35146 :     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)
      69             :     {
      70       35146 :         ::osl::MutexGuard const g(m_Mutex);
      71             : 
      72       35146 :         CEvent::initEvent(typeArg, canBubbleArg, cancelableArg);
      73       35146 :         m_relatedNode = relatedNodeArg;
      74       35146 :         m_prevValue = prevValueArg;
      75       35146 :         m_newValue = newValueArg;
      76       35146 :         m_attrName = attrNameArg;
      77       35146 :         m_attrChangeType = attrChangeArg;
      78       35146 :     }
      79             : 
      80             :     // delegate to CEvent, since we are inheriting from CEvent and XEvent
      81       17573 :     OUString SAL_CALL CMutationEvent::getType() throw (RuntimeException)
      82             :     {
      83       17573 :         return CEvent::getType();
      84             :     }
      85             : 
      86           0 :     Reference< XEventTarget > SAL_CALL CMutationEvent::getTarget() throw (RuntimeException)
      87             :     {
      88           0 :         return CEvent::getTarget();
      89             :     }
      90             : 
      91       17573 :     Reference< XEventTarget > SAL_CALL CMutationEvent::getCurrentTarget() throw (RuntimeException)
      92             :     {
      93       17573 :         return CEvent::getCurrentTarget();
      94             :     }
      95             : 
      96           0 :     PhaseType SAL_CALL CMutationEvent::getEventPhase() throw (RuntimeException)
      97             :     {
      98           0 :         return CEvent::getEventPhase();
      99             :     }
     100             : 
     101       35146 :     sal_Bool SAL_CALL CMutationEvent::getBubbles() throw (RuntimeException)
     102             :     {
     103       35146 :         return CEvent::getBubbles();
     104             :     }
     105             : 
     106       17573 :     sal_Bool SAL_CALL CMutationEvent::getCancelable() throw (RuntimeException)
     107             :     {
     108       17573 :         return CEvent::getCancelable();
     109             :     }
     110             : 
     111       17573 :     com::sun::star::util::Time SAL_CALL CMutationEvent::getTimeStamp() throw (RuntimeException)
     112             :     {
     113       17573 :         return CEvent::getTimeStamp();
     114             :     }
     115             : 
     116           0 :     void SAL_CALL CMutationEvent::stopPropagation() throw (RuntimeException)
     117             :     {
     118           0 :         CEvent::stopPropagation();
     119           0 :     }
     120           0 :     void SAL_CALL CMutationEvent::preventDefault() throw (RuntimeException)
     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)
     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