LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - drawbase.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 4 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 4 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             : #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_DRAWBASE_HXX
      20             : #define INCLUDED_SW_SOURCE_UIBASE_INC_DRAWBASE_HXX
      21             : 
      22             : #include <tools/gen.hxx>
      23             : 
      24             : class SwView;
      25             : class SwWrtShell;
      26             : class SwEditWin;
      27             : class KeyEvent;
      28             : class MouseEvent;
      29             : 
      30             : // base class for all functions
      31             : class SwDrawBase
      32             : {
      33             : protected:
      34             :     SwView*         m_pView;
      35             :     SwWrtShell*     m_pSh;
      36             :     VclPtr<SwEditWin> m_pWin;
      37             :     Point           m_aStartPos;                 // position of BeginCreate
      38             :     Point           m_aMDPos;                // position of MouseButtonDown
      39             :     sal_uInt16          m_nSlotId;
      40             :     bool            m_bCreateObj  :1;
      41             :     bool            m_bInsForm   :1;
      42             : 
      43             :     Point           GetDefaultCenterPos();
      44             : public:
      45             :     SwDrawBase(SwWrtShell *pSh, SwEditWin* pWin, SwView* pView);
      46             :     virtual ~SwDrawBase();
      47             : 
      48             :     void         SetDrawPointer();
      49             :     void         EnterSelectMode(const MouseEvent& rMEvt);
      50           0 :     inline bool  IsInsertForm() const { return m_bInsForm; }
      51           0 :     inline bool  IsCreateObj() const { return m_bCreateObj; }
      52             : 
      53             :     // mouse- & key events; return value=true: event was edited
      54             :     virtual bool KeyInput(const KeyEvent& rKEvt);
      55             :     virtual bool MouseMove(const MouseEvent& rMEvt);
      56             :     virtual bool MouseButtonUp(const MouseEvent& rMEvt);
      57             :     virtual bool MouseButtonDown(const MouseEvent& rMEvt);
      58             : 
      59             :     void         BreakCreate();
      60           0 :     void         SetSlotId(sal_uInt16 nSlot) {m_nSlotId = nSlot;}
      61           0 :     sal_uInt16       GetSlotId() { return m_nSlotId;}
      62             : 
      63             :     virtual void Activate(const sal_uInt16 nSlotId);    // activate function
      64             :     virtual void Deactivate();                      // deactivate function
      65             : 
      66             :     virtual void CreateDefaultObject();
      67             : 
      68             :     // #i33136#
      69             :     virtual bool doConstructOrthogonal() const;
      70             : };
      71             : 
      72             : #endif // INCLUDED_SW_SOURCE_UIBASE_INC_DRAWBASE_HXX
      73             : 
      74             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11