• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ev_Win32Mouse.h

Go to the documentation of this file.
00001 /* AbiSource Program Utilities
00002  * Copyright (C) 1998 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 
00021 
00022 
00023 #ifndef EV_WIN32MOUSE_H
00024 #define EV_WIN32MOUSE_H
00025 
00026 #include "ev_Mouse.h"
00027 #include "ev_EditBits.h"
00028 
00029 // TODO EV_<platform>Mouse and EV_EditEventMapper are
00030 // TODO unique for each document, although the EditBindings
00031 // TODO may be global.  (ev_<platform>Mouse could be global
00032 // TODO i suppose.)
00033 
00034 class AV_View;
00035 
00036 
00037 class ABI_EXPORT EV_Win32Mouse : public EV_Mouse
00038 {
00039 public:
00040     EV_Win32Mouse(EV_EditEventMapper * pEEM);
00041 
00042     void reset(void);
00043 
00044     void onButtonDown(AV_View * pView, HWND hWnd, EV_EditMouseButton emb, WPARAM fwKeys, WPARAM xPos, WPARAM yPos);
00045     void onButtonUp  (AV_View * pView, HWND hWnd, EV_EditMouseButton emb, WPARAM fwKeys, WPARAM xPos, WPARAM yPos);
00046     void onButtonMove(AV_View * pView, HWND hWnd, WPARAM fwKeys, WPARAM xPos, WPARAM yPos);
00047     void onDoubleClick(AV_View * pView, HWND hWnd, EV_EditMouseButton emb, WPARAM fwKeys, WPARAM xPos, WPARAM yPos);
00048     void onButtonWheel(AV_View * pView, HWND hWnd, EV_EditMouseButton emb,  WPARAM fwKeys, WPARAM xPos, WPARAM yPos);
00049 
00050 
00051 protected:
00052     UT_uint32           m_iCaptureCount;
00053     EV_EditMouseButton  m_embCaptured;
00054 };
00055 
00056 #endif /* EV_WIN32MOUSE_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1