1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef SC_NOTEMARK_HXX 29 #define SC_NOTEMARK_HXX 30 31 #ifndef _MAPMOD_HXX //autogen 32 #include <vcl/mapmod.hxx> 33 #endif 34 #include <vcl/timer.hxx> 35 #include "global.hxx" 36 #include "address.hxx" 37 38 class SdrModel; 39 class SdrObject; 40 41 class ScNoteMarker 42 { 43 private: 44 Window* pWindow; 45 Window* pRightWin; 46 Window* pBottomWin; 47 Window* pDiagWin; 48 ScDocument* pDoc; 49 ScAddress aDocPos; 50 String aUserText; 51 Rectangle aVisRect; 52 Timer aTimer; 53 MapMode aMapMode; 54 sal_Bool bLeft; 55 sal_Bool bByKeyboard; 56 57 Rectangle aRect; 58 SdrModel* pModel; 59 SdrObject* pObject; 60 sal_Bool bVisible; 61 62 DECL_LINK( TimeHdl, Timer* ); 63 64 public: 65 ScNoteMarker( Window* pWin, Window* pRight, Window* pBottom, Window* pDiagonal, 66 ScDocument* pD, ScAddress aPos, const String& rUser, 67 const MapMode& rMap, sal_Bool bLeftEdge, sal_Bool bForce, sal_Bool bKeyboard ); 68 ~ScNoteMarker(); 69 70 void Draw(); 71 void InvalidateWin(); 72 73 ScAddress GetDocPos() const { return aDocPos; } 74 sal_Bool IsByKeyboard() const { return bByKeyboard; } 75 }; 76 77 78 79 #endif 80 81