LCOV - code coverage report
Current view: top level - libreoffice/sd/source/ui/inc - fudraw.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 1 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 SD_FU_DRAW_HXX
      21             : #define SD_FU_DRAW_HXX
      22             : 
      23             : #include <vcl/pointr.hxx>
      24             : #include "fupoor.hxx"
      25             : 
      26             : struct SdrViewEvent;
      27             : class SdrObject;
      28             : 
      29             : namespace sd {
      30             : 
      31             : /*************************************************************************
      32             : |*
      33             : |* Basisklasse fuer alle Drawmodul-spezifischen Funktionen
      34             : |*
      35             : \************************************************************************/
      36             : 
      37             : class FuDraw
      38             :     : public FuPoor
      39             : {
      40             : public:
      41             :     TYPEINFO();
      42             : 
      43             :     virtual sal_Bool KeyInput(const KeyEvent& rKEvt);
      44             :     virtual sal_Bool MouseMove(const MouseEvent& rMEvt);
      45             :     virtual sal_Bool MouseButtonUp(const MouseEvent& rMEvt);
      46             :     virtual sal_Bool MouseButtonDown(const MouseEvent& rMEvt);
      47             :     virtual sal_Bool RequestHelp(const HelpEvent& rHEvt);
      48             : 
      49             :     virtual void Activate();
      50             :     virtual void Deactivate();
      51             : 
      52             :     virtual void ForcePointer(const MouseEvent* pMEvt = NULL);
      53             : 
      54             :     virtual void DoubleClick(const MouseEvent& rMEvt);
      55             : 
      56             :     sal_Bool    SetPointer(SdrObject* pObj, const Point& rPos);
      57             :     sal_Bool    SetHelpText(SdrObject* pObj, const Point& rPos, const SdrViewEvent& rVEvt);
      58             : 
      59           0 :     void    SetPermanent(sal_Bool bSet) { bPermanent = bSet; }
      60             : 
      61             :     /** is called when the currenct function should be aborted. <p>
      62             :         This is used when a function gets a KEY_ESCAPE but can also
      63             :         be called directly.
      64             : 
      65             :         @returns true if a active function was aborted
      66             :     */
      67             :     virtual bool cancel();
      68             : 
      69             : protected:
      70             :     FuDraw (ViewShell* pViewSh,
      71             :         ::sd::Window* pWin,
      72             :         ::sd::View* pView,
      73             :         SdDrawDocument* pDoc,
      74             :         SfxRequest& rReq);
      75             : 
      76             :     virtual ~FuDraw();
      77             : 
      78             :     Pointer aNewPointer;
      79             :     Pointer aOldPointer;
      80             :     sal_Bool    bMBDown;
      81             :     sal_Bool    bDragHelpLine;
      82             :     sal_uInt16  nHelpLine;
      83             :     sal_Bool    bPermanent;
      84             : 
      85             : };
      86             : 
      87             : } // end of namespace sd
      88             : 
      89             : #endif      // _SD_FUDRAW_HXX
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10