xref: /aoo4110/main/basctl/source/inc/dlgedfunc.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 _BASCTL_DLGEDFUNC_HXX
25 #define _BASCTL_DLGEDFUNC_HXX
26 
27 #include <vcl/timer.hxx>
28 
29 class DlgEditor;
30 class Timer;
31 class MouseEvent;
32 class Point;
33 
34 //============================================================================
35 // DlgEdFunc
36 //============================================================================
37 
38 class DlgEdFunc /* : public LinkHdl */
39 {
40 protected:
41 	DlgEditor* pParent;
42 	Timer		 aScrollTimer;
43 
44 	DECL_LINK( ScrollTimeout, Timer * );
45 	void	ForceScroll( const Point& rPos );
46 
47 public:
48 	DlgEdFunc( DlgEditor* pParent );
49 	virtual ~DlgEdFunc();
50 
51 	virtual sal_Bool MouseButtonDown( const MouseEvent& rMEvt );
52 	virtual sal_Bool MouseButtonUp( const MouseEvent& rMEvt );
53 	virtual sal_Bool MouseMove( const MouseEvent& rMEvt );
54 	virtual sal_Bool KeyInput( const KeyEvent& rKEvt );
55 };
56 
57 //============================================================================
58 // DlgEdFuncInsert
59 //============================================================================
60 
61 class DlgEdFuncInsert : public DlgEdFunc
62 {
63 public:
64 	DlgEdFuncInsert( DlgEditor* pParent );
65 	~DlgEdFuncInsert();
66 
67 	virtual sal_Bool MouseButtonDown( const MouseEvent& rMEvt );
68 	virtual sal_Bool MouseButtonUp( const MouseEvent& rMEvt );
69 	virtual sal_Bool MouseMove( const MouseEvent& rMEvt );
70 };
71 
72 //============================================================================
73 // DlgEdFuncSelect
74 //============================================================================
75 
76 class DlgEdFuncSelect : public DlgEdFunc
77 {
78 protected:
79 	sal_Bool	bMarkAction;
80 
81 public:
82 	DlgEdFuncSelect( DlgEditor* pParent );
83 	~DlgEdFuncSelect();
84 
85 	virtual sal_Bool MouseButtonDown( const MouseEvent& rMEvt );
86 	virtual sal_Bool MouseButtonUp( const MouseEvent& rMEvt );
87 	virtual sal_Bool MouseMove( const MouseEvent& rMEvt );
88 };
89 
90 
91 #endif //_BASCTL_DLGEDFUNC_HXX
92