xref: /aoo4110/main/sc/source/ui/inc/notemark.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef SC_NOTEMARK_HXX
25 #define SC_NOTEMARK_HXX
26 
27 #ifndef _MAPMOD_HXX //autogen
28 #include <vcl/mapmod.hxx>
29 #endif
30 #include <vcl/timer.hxx>
31 #include "global.hxx"
32 #include "address.hxx"
33 
34 class SdrModel;
35 class SdrObject;
36 
37 class ScNoteMarker
38 {
39 private:
40 	Window*		pWindow;
41 	Window*		pRightWin;
42 	Window*		pBottomWin;
43 	Window*		pDiagWin;
44 	ScDocument*	pDoc;
45 	ScAddress	aDocPos;
46 	String		aUserText;
47     Rectangle   aVisRect;
48 	Timer		aTimer;
49 	MapMode		aMapMode;
50 	sal_Bool		bLeft;
51 	sal_Bool		bByKeyboard;
52 
53 	Rectangle		aRect;
54 	SdrModel*		pModel;
55 	SdrObject*		pObject;
56 	sal_Bool			bVisible;
57 
58 	DECL_LINK( TimeHdl, Timer* );
59 
60 public:
61 				ScNoteMarker( Window* pWin, Window* pRight, Window* pBottom, Window* pDiagonal,
62 								ScDocument* pD, ScAddress aPos, const String& rUser,
63                                 const MapMode& rMap, sal_Bool bLeftEdge, sal_Bool bForce, sal_Bool bKeyboard );
64 				~ScNoteMarker();
65 
66 	void		Draw();
67 	void		InvalidateWin();
68 
GetDocPos() const69 	ScAddress	GetDocPos() const		{ return aDocPos; }
IsByKeyboard() const70 	sal_Bool		IsByKeyboard() const	{ return bByKeyboard; }
71 };
72 
73 
74 
75 #endif
76 
77