LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/ribbar - dselect.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 21 0.0 %
Date: 2012-12-27 Functions: 0 3 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 <sfx2/bindings.hxx>
      21             : #include "view.hxx"
      22             : #include "edtwin.hxx"
      23             : #include "wrtsh.hxx"
      24             : #include "cmdid.h"
      25             : #include "drawbase.hxx"
      26             : #include "dselect.hxx"
      27             : 
      28             : extern sal_Bool bNoInterrupt;       // in mainwn.cxx
      29             : 
      30             : /*************************************************************************
      31             : |*
      32             : |* Konstruktor
      33             : |*
      34             : \************************************************************************/
      35             : 
      36           0 : DrawSelection::DrawSelection(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) :
      37           0 :                 SwDrawBase(pWrtShell, pEditWin, pSwView)
      38             : {
      39           0 :     m_bCreateObj = sal_False;
      40           0 : }
      41             : 
      42             : /*************************************************************************
      43             : |*
      44             : |* Tastaturereignisse bearbeiten
      45             : |*
      46             : |* Wird ein KeyEvent bearbeitet, so ist der Return-Wert sal_True, andernfalls
      47             : |* sal_False.
      48             : |*
      49             : \************************************************************************/
      50             : 
      51           0 : sal_Bool DrawSelection::KeyInput(const KeyEvent& rKEvt)
      52             : {
      53           0 :     sal_Bool bReturn = sal_False;
      54             : 
      55           0 :     switch (rKEvt.GetKeyCode().GetCode())
      56             :     {
      57             :         case KEY_ESCAPE:
      58             :         {
      59           0 :             if (m_pWin->IsDrawAction())
      60             :             {
      61           0 :                 m_pSh->BreakMark();
      62           0 :                 m_pWin->ReleaseMouse();
      63             :             }
      64           0 :             bReturn = sal_True;
      65             :         }
      66           0 :         break;
      67             :     }
      68             : 
      69           0 :     if (!bReturn)
      70           0 :         bReturn = SwDrawBase::KeyInput(rKEvt);
      71             : 
      72           0 :     return (bReturn);
      73             : }
      74             : 
      75             : /*************************************************************************
      76             : |*
      77             : |* Function aktivieren
      78             : |*
      79             : \************************************************************************/
      80             : 
      81           0 : void DrawSelection::Activate(const sal_uInt16 nSlotId)
      82             : {
      83           0 :     m_pWin->SetSdrDrawMode(OBJ_NONE);
      84           0 :     m_pWin->SetObjectSelect( sal_True );
      85           0 :     SwDrawBase::Activate(nSlotId);
      86             : 
      87           0 :     m_pSh->GetView().GetViewFrame()->GetBindings().Invalidate(SID_INSERT_DRAW);
      88           0 : }
      89             : 
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10