1*96821c26SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*96821c26SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*96821c26SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*96821c26SAndrew Rist * distributed with this work for additional information 6*96821c26SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*96821c26SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*96821c26SAndrew Rist * "License"); you may not use this file except in compliance 9*96821c26SAndrew Rist * with the License. You may obtain a copy of the License at 10*96821c26SAndrew Rist * 11*96821c26SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*96821c26SAndrew Rist * 13*96821c26SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*96821c26SAndrew Rist * software distributed under the License is distributed on an 15*96821c26SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*96821c26SAndrew Rist * KIND, either express or implied. See the License for the 17*96821c26SAndrew Rist * specific language governing permissions and limitations 18*96821c26SAndrew Rist * under the License. 19*96821c26SAndrew Rist * 20*96821c26SAndrew Rist *************************************************************/ 21*96821c26SAndrew Rist 22*96821c26SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _BASCTL_DLGEDFUNC_HXX 25cdf0e10cSrcweir #define _BASCTL_DLGEDFUNC_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <vcl/timer.hxx> 28cdf0e10cSrcweir 29cdf0e10cSrcweir class DlgEditor; 30cdf0e10cSrcweir class Timer; 31cdf0e10cSrcweir class MouseEvent; 32cdf0e10cSrcweir class Point; 33cdf0e10cSrcweir 34cdf0e10cSrcweir //============================================================================ 35cdf0e10cSrcweir // DlgEdFunc 36cdf0e10cSrcweir //============================================================================ 37cdf0e10cSrcweir 38cdf0e10cSrcweir class DlgEdFunc /* : public LinkHdl */ 39cdf0e10cSrcweir { 40cdf0e10cSrcweir protected: 41cdf0e10cSrcweir DlgEditor* pParent; 42cdf0e10cSrcweir Timer aScrollTimer; 43cdf0e10cSrcweir 44cdf0e10cSrcweir DECL_LINK( ScrollTimeout, Timer * ); 45cdf0e10cSrcweir void ForceScroll( const Point& rPos ); 46cdf0e10cSrcweir 47cdf0e10cSrcweir public: 48cdf0e10cSrcweir DlgEdFunc( DlgEditor* pParent ); 49cdf0e10cSrcweir virtual ~DlgEdFunc(); 50cdf0e10cSrcweir 51cdf0e10cSrcweir virtual sal_Bool MouseButtonDown( const MouseEvent& rMEvt ); 52cdf0e10cSrcweir virtual sal_Bool MouseButtonUp( const MouseEvent& rMEvt ); 53cdf0e10cSrcweir virtual sal_Bool MouseMove( const MouseEvent& rMEvt ); 54cdf0e10cSrcweir virtual sal_Bool KeyInput( const KeyEvent& rKEvt ); 55cdf0e10cSrcweir }; 56cdf0e10cSrcweir 57cdf0e10cSrcweir //============================================================================ 58cdf0e10cSrcweir // DlgEdFuncInsert 59cdf0e10cSrcweir //============================================================================ 60cdf0e10cSrcweir 61cdf0e10cSrcweir class DlgEdFuncInsert : public DlgEdFunc 62cdf0e10cSrcweir { 63cdf0e10cSrcweir public: 64cdf0e10cSrcweir DlgEdFuncInsert( DlgEditor* pParent ); 65cdf0e10cSrcweir ~DlgEdFuncInsert(); 66cdf0e10cSrcweir 67cdf0e10cSrcweir virtual sal_Bool MouseButtonDown( const MouseEvent& rMEvt ); 68cdf0e10cSrcweir virtual sal_Bool MouseButtonUp( const MouseEvent& rMEvt ); 69cdf0e10cSrcweir virtual sal_Bool MouseMove( const MouseEvent& rMEvt ); 70cdf0e10cSrcweir }; 71cdf0e10cSrcweir 72cdf0e10cSrcweir //============================================================================ 73cdf0e10cSrcweir // DlgEdFuncSelect 74cdf0e10cSrcweir //============================================================================ 75cdf0e10cSrcweir 76cdf0e10cSrcweir class DlgEdFuncSelect : public DlgEdFunc 77cdf0e10cSrcweir { 78cdf0e10cSrcweir protected: 79cdf0e10cSrcweir sal_Bool bMarkAction; 80cdf0e10cSrcweir 81cdf0e10cSrcweir public: 82cdf0e10cSrcweir DlgEdFuncSelect( DlgEditor* pParent ); 83cdf0e10cSrcweir ~DlgEdFuncSelect(); 84cdf0e10cSrcweir 85cdf0e10cSrcweir virtual sal_Bool MouseButtonDown( const MouseEvent& rMEvt ); 86cdf0e10cSrcweir virtual sal_Bool MouseButtonUp( const MouseEvent& rMEvt ); 87cdf0e10cSrcweir virtual sal_Bool MouseMove( const MouseEvent& rMEvt ); 88cdf0e10cSrcweir }; 89cdf0e10cSrcweir 90cdf0e10cSrcweir 91cdf0e10cSrcweir #endif //_BASCTL_DLGEDFUNC_HXX 92