LCOV - code coverage report
Current view: top level - vcl/unx/generic/dtrans - X11_dndcontext.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 41 0.0 %
Date: 2014-11-03 Functions: 0 18 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 <X11_dndcontext.hxx>
      21             : #include <X11_selection.hxx>
      22             : 
      23             : using namespace cppu;
      24             : using namespace x11;
      25             : 
      26             : /*
      27             :  *  DropTargetDropContext
      28             :  */
      29             : 
      30           0 : DropTargetDropContext::DropTargetDropContext(
      31             :     ::Window aDropWindow,
      32             :     Time aTimestamp,
      33             :     SelectionManager& rManager ) :
      34             :         m_aDropWindow( aDropWindow ),
      35             :         m_nTimestamp( aTimestamp ),
      36             :         m_rManager( rManager ),
      37           0 :         m_xManagerRef( static_cast< OWeakObject* >(&rManager) )
      38             : {
      39           0 : }
      40             : 
      41           0 : DropTargetDropContext::~DropTargetDropContext()
      42             : {
      43           0 : }
      44             : 
      45           0 : void DropTargetDropContext::acceptDrop( sal_Int8 dragOperation ) throw(std::exception)
      46             : {
      47           0 :     m_rManager.accept( dragOperation, m_aDropWindow, m_nTimestamp );
      48           0 : }
      49             : 
      50           0 : void DropTargetDropContext::rejectDrop() throw(std::exception)
      51             : {
      52           0 :     m_rManager.reject( m_aDropWindow, m_nTimestamp );
      53           0 : }
      54             : 
      55           0 : void DropTargetDropContext::dropComplete( sal_Bool success ) throw(std::exception)
      56             : {
      57           0 :     m_rManager.dropComplete( success, m_aDropWindow, m_nTimestamp );
      58           0 : }
      59             : 
      60             : /*
      61             :  *  DropTargetDragContext
      62             :  */
      63             : 
      64           0 : DropTargetDragContext::DropTargetDragContext(
      65             :     ::Window aDropWindow,
      66             :     Time aTimestamp,
      67             :     SelectionManager& rManager ) :
      68             :         m_aDropWindow( aDropWindow ),
      69             :         m_nTimestamp( aTimestamp ),
      70             :         m_rManager( rManager ),
      71           0 :         m_xManagerRef( static_cast< OWeakObject* >(&rManager) )
      72             : {
      73           0 : }
      74             : 
      75           0 : DropTargetDragContext::~DropTargetDragContext()
      76             : {
      77           0 : }
      78             : 
      79           0 : void DropTargetDragContext::acceptDrag( sal_Int8 dragOperation ) throw(std::exception)
      80             : {
      81           0 :     m_rManager.accept( dragOperation, m_aDropWindow, m_nTimestamp );
      82           0 : }
      83             : 
      84           0 : void DropTargetDragContext::rejectDrag() throw(std::exception)
      85             : {
      86           0 :     m_rManager.reject( m_aDropWindow, m_nTimestamp );
      87           0 : }
      88             : 
      89             : /*
      90             :  *  DragSourceContext
      91             :  */
      92             : 
      93           0 : DragSourceContext::DragSourceContext(
      94             :     ::Window aDropWindow,
      95             :     Time aTimestamp,
      96             :     SelectionManager& rManager ) :
      97             :         m_aDropWindow( aDropWindow ),
      98             :         m_nTimestamp( aTimestamp ),
      99             :         m_rManager( rManager ),
     100           0 :         m_xManagerRef( static_cast< OWeakObject* >(&rManager) )
     101             : {
     102           0 : }
     103             : 
     104           0 : DragSourceContext::~DragSourceContext()
     105             : {
     106           0 : }
     107             : 
     108           0 : sal_Int32 DragSourceContext::getCurrentCursor() throw(std::exception)
     109             : {
     110           0 :     return m_rManager.getCurrentCursor();
     111             : }
     112             : 
     113           0 : void DragSourceContext::setCursor( sal_Int32 cursorId ) throw(std::exception)
     114             : {
     115           0 :     m_rManager.setCursor( cursorId, m_aDropWindow, m_nTimestamp );
     116           0 : }
     117             : 
     118           0 : void DragSourceContext::setImage( sal_Int32 imageId ) throw(std::exception)
     119             : {
     120           0 :     m_rManager.setImage( imageId, m_aDropWindow, m_nTimestamp );
     121           0 : }
     122             : 
     123           0 : void DragSourceContext::transferablesFlavorsChanged() throw(std::exception)
     124             : {
     125           0 :     m_rManager.transferablesFlavorsChanged();
     126           0 : }
     127             : 
     128             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10