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