LCOV - code coverage report
Current view: top level - unoxml/source/events - mouseevent.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 76 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 25 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             : #include <mouseevent.hxx>
      21             : 
      22             : using namespace css::uno;
      23             : using namespace css::xml::dom::events;
      24             : using namespace css::xml::dom::views;
      25             : 
      26             : namespace DOM { namespace events
      27             : {
      28           0 :     CMouseEvent::CMouseEvent()
      29             :         : CMouseEvent_Base()
      30             :         , m_screenX(0)
      31             :         , m_screenY(0)
      32             :         , m_clientX(0)
      33             :         , m_clientY(0)
      34             :         , m_ctrlKey(false)
      35             :         , m_shiftKey(false)
      36             :         , m_altKey(false)
      37             :         , m_metaKey(false)
      38           0 :         , m_button(0)
      39             :     {
      40           0 :     }
      41             : 
      42           0 :     sal_Int32 SAL_CALL CMouseEvent::getScreenX() throw (RuntimeException, std::exception)
      43             :     {
      44           0 :         ::osl::MutexGuard const g(m_Mutex);
      45           0 :         return m_screenX;
      46             :     }
      47           0 :     sal_Int32 SAL_CALL CMouseEvent::getScreenY() throw (RuntimeException, std::exception)
      48             :     {
      49           0 :         ::osl::MutexGuard const g(m_Mutex);
      50           0 :         return m_screenY;
      51             :     }
      52           0 :     sal_Int32 SAL_CALL CMouseEvent::getClientX() throw (RuntimeException, std::exception)
      53             :     {
      54           0 :         ::osl::MutexGuard const g(m_Mutex);
      55           0 :         return m_clientX;
      56             :     }
      57           0 :     sal_Int32 SAL_CALL CMouseEvent::getClientY() throw (RuntimeException, std::exception)
      58             :     {
      59           0 :         ::osl::MutexGuard const g(m_Mutex);
      60           0 :         return m_clientY;
      61             :     }
      62           0 :     sal_Bool SAL_CALL CMouseEvent::getCtrlKey() throw (RuntimeException, std::exception)
      63             :     {
      64           0 :         ::osl::MutexGuard const g(m_Mutex);
      65           0 :         return m_ctrlKey;
      66             :     }
      67           0 :     sal_Bool SAL_CALL CMouseEvent::getShiftKey() throw (RuntimeException, std::exception)
      68             :     {
      69           0 :         ::osl::MutexGuard const g(m_Mutex);
      70           0 :         return m_shiftKey;
      71             :     }
      72           0 :     sal_Bool SAL_CALL CMouseEvent::getAltKey() throw (RuntimeException, std::exception)
      73             :     {
      74           0 :         ::osl::MutexGuard const g(m_Mutex);
      75           0 :         return m_altKey;
      76             :     }
      77           0 :     sal_Bool SAL_CALL CMouseEvent::getMetaKey() throw (RuntimeException, std::exception)
      78             :     {
      79           0 :         ::osl::MutexGuard const g(m_Mutex);
      80           0 :         return m_metaKey;
      81             :     }
      82           0 :     sal_Int16 SAL_CALL CMouseEvent::getButton() throw (RuntimeException, std::exception)
      83             :     {
      84           0 :         ::osl::MutexGuard const g(m_Mutex);
      85           0 :         return m_button;
      86             :     }
      87           0 :     Reference< XEventTarget > SAL_CALL CMouseEvent::getRelatedTarget()  throw(RuntimeException, std::exception)
      88             :     {
      89           0 :         ::osl::MutexGuard const g(m_Mutex);
      90           0 :         return m_relatedTarget;
      91             :     }
      92             : 
      93           0 :     void SAL_CALL CMouseEvent::initMouseEvent(
      94             :                         const OUString& typeArg,
      95             :                         sal_Bool canBubbleArg,
      96             :                         sal_Bool cancelableArg,
      97             :                         const Reference< XAbstractView >& viewArg,
      98             :                         sal_Int32 detailArg,
      99             :                         sal_Int32 screenXArg,
     100             :                         sal_Int32 screenYArg,
     101             :                         sal_Int32 clientXArg,
     102             :                         sal_Int32 clientYArg,
     103             :                         sal_Bool ctrlKeyArg,
     104             :                         sal_Bool altKeyArg,
     105             :                         sal_Bool shiftKeyArg,
     106             :                         sal_Bool metaKeyArg,
     107             :                         sal_Int16 buttonArg,
     108             :                         const Reference< XEventTarget >& /*relatedTargetArg*/)
     109             :         throw(RuntimeException, std::exception)
     110             :     {
     111           0 :         ::osl::MutexGuard const g(m_Mutex);
     112             : 
     113           0 :         CUIEvent::initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg);
     114           0 :         m_screenX = screenXArg;
     115           0 :         m_screenY = screenYArg;
     116           0 :         m_clientX = clientXArg;
     117           0 :         m_clientY = clientYArg;
     118           0 :         m_ctrlKey = ctrlKeyArg;
     119           0 :         m_altKey = altKeyArg;
     120           0 :         m_shiftKey = shiftKeyArg;
     121           0 :         m_metaKey = metaKeyArg;
     122           0 :         m_button = buttonArg;
     123           0 :     }
     124             : 
     125             :     // delegate to CUIEvent, since we are inheriting from CUIEvent and XUIEvent
     126           0 :     Reference< XAbstractView > SAL_CALL CMouseEvent::getView() throw(RuntimeException, std::exception)
     127             :     {
     128           0 :         return CUIEvent::getView();
     129             :     }
     130             : 
     131           0 :     sal_Int32 SAL_CALL CMouseEvent::getDetail() throw(RuntimeException, std::exception)
     132             :     {
     133           0 :         return CUIEvent::getDetail();
     134             :     }
     135             : 
     136           0 :     void SAL_CALL CMouseEvent::initUIEvent(const OUString& typeArg,
     137             :                      sal_Bool canBubbleArg,
     138             :                      sal_Bool cancelableArg,
     139             :                      const Reference< XAbstractView >& viewArg,
     140             :                      sal_Int32 detailArg) throw(RuntimeException, std::exception)
     141             :     {
     142           0 :         CUIEvent::initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg);
     143           0 :     }
     144             : 
     145           0 :     OUString SAL_CALL CMouseEvent::getType() throw (RuntimeException, std::exception)
     146             :     {
     147           0 :         return CUIEvent::getType();
     148             :     }
     149             : 
     150           0 :     Reference< XEventTarget > SAL_CALL CMouseEvent::getTarget() throw (RuntimeException, std::exception)
     151             :     {
     152           0 :         return CUIEvent::getTarget();
     153             :     }
     154             : 
     155           0 :     Reference< XEventTarget > SAL_CALL CMouseEvent::getCurrentTarget() throw (RuntimeException, std::exception)
     156             :     {
     157           0 :         return CUIEvent::getCurrentTarget();
     158             :     }
     159             : 
     160           0 :     PhaseType SAL_CALL CMouseEvent::getEventPhase() throw (RuntimeException, std::exception)
     161             :     {
     162           0 :         return CUIEvent::getEventPhase();
     163             :     }
     164             : 
     165           0 :     sal_Bool SAL_CALL CMouseEvent::getBubbles() throw (RuntimeException, std::exception)
     166             :     {
     167           0 :         return CEvent::getBubbles();
     168             :     }
     169             : 
     170           0 :     sal_Bool SAL_CALL CMouseEvent::getCancelable() throw (RuntimeException, std::exception)
     171             :     {
     172           0 :         return CUIEvent::getCancelable();
     173             :     }
     174             : 
     175           0 :     css::util::Time SAL_CALL CMouseEvent::getTimeStamp() throw (RuntimeException, std::exception)
     176             :     {
     177           0 :         return CUIEvent::getTimeStamp();
     178             :     }
     179             : 
     180           0 :     void SAL_CALL CMouseEvent::stopPropagation() throw (RuntimeException, std::exception)
     181             :     {
     182           0 :         CUIEvent::stopPropagation();
     183           0 :     }
     184             : 
     185           0 :     void SAL_CALL CMouseEvent::preventDefault() throw (RuntimeException, std::exception)
     186             :     {
     187           0 :         CUIEvent::preventDefault();
     188           0 :     }
     189             : 
     190           0 :     void SAL_CALL CMouseEvent::initEvent(const OUString& eventTypeArg, sal_Bool canBubbleArg,
     191             :         sal_Bool cancelableArg) throw (RuntimeException, std::exception)
     192             :     {
     193             :         // base initializer
     194           0 :         CUIEvent::initEvent(eventTypeArg, canBubbleArg, cancelableArg);
     195           0 :     }
     196             : }}
     197             : 
     198             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11