#include <ev_Win32Keyboard.h>
Public Member Functions | |
ev_Win32Keyboard (EV_EditEventMapper *pEEM) | |
virtual | ~ev_Win32Keyboard () |
void | remapKeyboard (HKL hKeyboardLayout) |
bool | onKeyDown (AV_View *pView, HWND hWnd, UINT iMsg, WPARAM nVirtKey, LPARAM keyData) |
bool | onIMEChar (AV_View *pView, HWND hWnd, UINT iMsg, WPARAM nVirtKey, LPARAM keyData) |
bool | onChar (AV_View *pView, HWND hWnd, UINT iMsg, WPARAM nVirtKey, LPARAM keyData) |
bool | onUniChar (AV_View *pView, HWND hWnd, UINT iMsg, WPARAM nVirtKey, LPARAM keyData) |
Protected Member Functions | |
EV_EditBits | _getModifierState (void) |
void | _emitChar (AV_View *pView, HWND hWnd, UINT iMsg, WPARAM nVirtKey, LPARAM keyData, UT_uint32 b, EV_EditModifierState ems) |
int | _scanCodeToChars (UINT nVirtKey, UINT wScanCode, CONST PBYTE lpKeyState, LPWSTR pwszBuff, int cchBuff) |
Protected Attributes | |
int(* | m_pToUnicodeEx )(UINT wVirtKey, UINT wScanCode, CONST PBYTE lpKeyState, LPWSTR pwszBuff, int cchBuff, UINT wFlags, HKL dwhkl) |
HKL | m_hKeyboardLayout |
UT_iconv_t | m_iconv |
bool | m_bIsUnicodeInput |
bool | m_bWasAnAbiCommand |
ev_Win32Keyboard::ev_Win32Keyboard | ( | EV_EditEventMapper * | pEEM | ) |
References m_pToUnicodeEx, and remapKeyboard().
ev_Win32Keyboard::~ev_Win32Keyboard | ( | ) | [virtual] |
References m_iconv, UT_iconv_close(), and UT_ICONV_INVALID.
void ev_Win32Keyboard::_emitChar | ( | AV_View * | pView, | |
HWND | hWnd, | |||
UINT | iMsg, | |||
WPARAM | nVirtKey, | |||
LPARAM | keyData, | |||
UT_uint32 | b, | |||
EV_EditModifierState | ems | |||
) | [protected] |
References EV_EEMR_BOGUS_CONT, EV_EEMR_BOGUS_START, EV_EEMR_COMPLETE, EV_EEMR_INCOMPLETE, EV_EKP_PRESS, EV_Keyboard::invokeKeyboardMethod(), EV_EditEventMapper::Keystroke(), m_bIsUnicodeInput, m_iconv, EV_Keyboard::m_pEEM, UT_ASSERT, UT_iconv(), UT_ICONV_INVALID, UT_SHOULD_NOT_HAPPEN, and WM_UNICHAR.
Referenced by onChar(), and onIMEChar().
EV_EditBits ev_Win32Keyboard::_getModifierState | ( | void | ) | [protected] |
Referenced by onKeyDown(), and onUniChar().
int ev_Win32Keyboard::_scanCodeToChars | ( | UINT | nVirtKey, | |
UINT | wScanCode, | |||
CONST PBYTE | lpKeyState, | |||
LPWSTR | pwszBuff, | |||
int | cchBuff | |||
) | [protected] |
References m_hKeyboardLayout, m_pToUnicodeEx, and UT_ASSERT.
bool ev_Win32Keyboard::onChar | ( | AV_View * | pView, | |
HWND | hWnd, | |||
UINT | iMsg, | |||
WPARAM | nVirtKey, | |||
LPARAM | keyData | |||
) |
References _emitChar(), m_bWasAnAbiCommand, and UT_DEBUGMSG.
Referenced by AP_Win32FrameImpl::_DocumentWndProc().
bool ev_Win32Keyboard::onIMEChar | ( | AV_View * | pView, | |
HWND | hWnd, | |||
UINT | iMsg, | |||
WPARAM | nVirtKey, | |||
LPARAM | keyData | |||
) |
References _emitChar(), and m_bIsUnicodeInput.
Referenced by AP_Win32FrameImpl::_DocumentWndProc().
bool ev_Win32Keyboard::onKeyDown | ( | AV_View * | pView, | |
HWND | hWnd, | |||
UINT | iMsg, | |||
WPARAM | nVirtKey, | |||
LPARAM | keyData | |||
) |
References _getModifierState(), EV_EEMR_BOGUS_CONT, EV_EEMR_BOGUS_START, EV_EEMR_COMPLETE, EV_EEMR_INCOMPLETE, EV_EKP_PRESS, EV_EMS_ALT, EV_EMS_CONTROL, EV_EMS_SHIFT, EV_NVK__IGNORE__, EV_Keyboard::invokeKeyboardMethod(), EV_EditEventMapper::Keystroke(), m_bWasAnAbiCommand, m_hKeyboardLayout, EV_Keyboard::m_pEEM, s_mapVirtualKeyCodeToNVK(), UT_ASSERT, UT_DEBUGMSG, UT_UCS4_tolower(), and UT_UNUSED.
Referenced by AP_Win32FrameImpl::_DocumentWndProc().
bool ev_Win32Keyboard::onUniChar | ( | AV_View * | pView, | |
HWND | hWnd, | |||
UINT | iMsg, | |||
WPARAM | nVirtKey, | |||
LPARAM | keyData | |||
) |
References _getModifierState(), EV_EEMR_BOGUS_CONT, EV_EEMR_BOGUS_START, EV_EEMR_COMPLETE, EV_EEMR_INCOMPLETE, EV_EKP_PRESS, EV_Keyboard::invokeKeyboardMethod(), EV_EditEventMapper::Keystroke(), m_bWasAnAbiCommand, EV_Keyboard::m_pEEM, UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.
Referenced by AP_Win32FrameImpl::_DocumentWndProc().
void ev_Win32Keyboard::remapKeyboard | ( | HKL | hKeyboardLayout | ) |
References XAP_EncodingManager::get_instance(), XAP_EncodingManager::getNativeUnicodeEncodingName(), m_bIsUnicodeInput, m_hKeyboardLayout, m_iconv, UT_ASSERT, UT_DEBUGMSG, UT_iconv_close(), UT_ICONV_INVALID, UT_iconv_open(), and UT_IsWinNT().
Referenced by XAP_Win32FrameImpl::_FrameWndProc(), and ev_Win32Keyboard().
bool ev_Win32Keyboard::m_bIsUnicodeInput [protected] |
Referenced by _emitChar(), onIMEChar(), and remapKeyboard().
bool ev_Win32Keyboard::m_bWasAnAbiCommand [protected] |
Referenced by onChar(), onKeyDown(), and onUniChar().
HKL ev_Win32Keyboard::m_hKeyboardLayout [protected] |
Referenced by _scanCodeToChars(), onKeyDown(), and remapKeyboard().
UT_iconv_t ev_Win32Keyboard::m_iconv [protected] |
Referenced by _emitChar(), remapKeyboard(), and ~ev_Win32Keyboard().
int(* ev_Win32Keyboard::m_pToUnicodeEx)(UINT wVirtKey, UINT wScanCode, CONST PBYTE lpKeyState, LPWSTR pwszBuff, int cchBuff, UINT wFlags, HKL dwhkl) [protected] |
Referenced by _scanCodeToChars(), and ev_Win32Keyboard().