LCOV - code coverage report
Current view: top level - libreoffice/unoxml/source/events - mouseevent.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 2 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             : #ifndef EVENT_MOUSEEVENT_HXX
      21             : #define EVENT_MOUSEEVENT_HXX
      22             : 
      23             : #include <com/sun/star/xml/dom/events/PhaseType.hpp>
      24             : #include <com/sun/star/xml/dom/events/XMouseEvent.hpp>
      25             : 
      26             : #include <cppuhelper/implbase1.hxx>
      27             : 
      28             : #include "uievent.hxx"
      29             : 
      30             : 
      31             : using ::rtl::OUString;
      32             : 
      33             : namespace DOM { namespace events {
      34             : 
      35             : typedef ::cppu::ImplInheritanceHelper1< CUIEvent, XMouseEvent >
      36             :     CMouseEvent_Base;
      37             : 
      38           0 : class CMouseEvent
      39             :     : public CMouseEvent_Base
      40             : {
      41             : protected:
      42             :     sal_Int32 m_screenX;
      43             :     sal_Int32 m_screenY;
      44             :     sal_Int32 m_clientX;
      45             :     sal_Int32 m_clientY;
      46             :     sal_Bool m_ctrlKey;
      47             :     sal_Bool m_shiftKey;
      48             :     sal_Bool m_altKey;
      49             :     sal_Bool m_metaKey;
      50             :     sal_Int16 m_button;
      51             :     Reference< XEventTarget > m_relatedTarget;
      52             : 
      53             : public:
      54             :     explicit CMouseEvent();
      55             : 
      56             :     virtual sal_Int32 SAL_CALL getScreenX() throw (RuntimeException);
      57             :     virtual sal_Int32 SAL_CALL getScreenY() throw (RuntimeException);
      58             :     virtual sal_Int32 SAL_CALL getClientX() throw (RuntimeException);
      59             :     virtual sal_Int32 SAL_CALL getClientY() throw (RuntimeException);
      60             :     virtual sal_Bool SAL_CALL getCtrlKey() throw (RuntimeException);
      61             :     virtual sal_Bool SAL_CALL getShiftKey() throw (RuntimeException);
      62             :     virtual sal_Bool SAL_CALL getAltKey() throw (RuntimeException);
      63             :     virtual sal_Bool SAL_CALL getMetaKey() throw (RuntimeException);
      64             :     virtual sal_Int16 SAL_CALL getButton() throw (RuntimeException);
      65             :     virtual Reference< XEventTarget > SAL_CALL getRelatedTarget()  throw(RuntimeException);
      66             : 
      67             :     virtual void SAL_CALL initMouseEvent(
      68             :                         const OUString& typeArg,
      69             :                         sal_Bool canBubbleArg,
      70             :                         sal_Bool cancelableArg,
      71             :                         const Reference< XAbstractView >& viewArg,
      72             :                         sal_Int32 detailArg,
      73             :                         sal_Int32 screenXArg,
      74             :                         sal_Int32 screenYArg,
      75             :                         sal_Int32 clientXArg,
      76             :                         sal_Int32 clientYArg,
      77             :                         sal_Bool ctrlKeyArg,
      78             :                         sal_Bool altKeyArg,
      79             :                         sal_Bool shiftKeyArg,
      80             :                         sal_Bool metaKeyArg,
      81             :                         sal_Int16 buttonArg,
      82             :                         const Reference< XEventTarget >& relatedTargetArg)
      83             :         throw(RuntimeException);
      84             : 
      85             :     // delegate to CUIevent
      86             :     virtual Reference< XAbstractView > SAL_CALL getView() throw (RuntimeException);
      87             :     virtual sal_Int32 SAL_CALL getDetail() throw (RuntimeException);
      88             :     virtual void SAL_CALL initUIEvent(const OUString& typeArg,
      89             :                      sal_Bool canBubbleArg,
      90             :                      sal_Bool cancelableArg,
      91             :                      const Reference< XAbstractView >& viewArg,
      92             :                      sal_Int32 detailArg) throw (RuntimeException);
      93             :     virtual OUString SAL_CALL getType() throw (RuntimeException);
      94             :     virtual Reference< XEventTarget > SAL_CALL getTarget() throw (RuntimeException);
      95             :     virtual Reference< XEventTarget > SAL_CALL getCurrentTarget() throw (RuntimeException);
      96             :     virtual PhaseType SAL_CALL getEventPhase() throw (RuntimeException);
      97             :     virtual sal_Bool SAL_CALL getBubbles() throw (RuntimeException);
      98             :     virtual sal_Bool SAL_CALL getCancelable() throw (RuntimeException);
      99             :     virtual com::sun::star::util::Time SAL_CALL getTimeStamp() throw (RuntimeException);
     100             :     virtual void SAL_CALL stopPropagation() throw (RuntimeException);
     101             :     virtual void SAL_CALL preventDefault() throw (RuntimeException);
     102             :     virtual void SAL_CALL initEvent(
     103             :         const OUString& eventTypeArg,
     104             :         sal_Bool canBubbleArg,
     105             :         sal_Bool cancelableArg)
     106             :         throw (RuntimeException);
     107             : };
     108             : }}
     109             : #endif
     110             : 
     111             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10