diff options
Diffstat (limited to 'vcl/inc/vcl/keycodes.hxx')
-rw-r--r-- | vcl/inc/vcl/keycodes.hxx | 250 |
1 files changed, 125 insertions, 125 deletions
diff --git a/vcl/inc/vcl/keycodes.hxx b/vcl/inc/vcl/keycodes.hxx index cfd4d11c9a7c..940858020f10 100644 --- a/vcl/inc/vcl/keycodes.hxx +++ b/vcl/inc/vcl/keycodes.hxx @@ -39,132 +39,132 @@ // By changes you must also change: rsc/vclrsc.hxx // Key-Gruppen -#define KEYGROUP_NUM ((USHORT)::com::sun::star::awt::KeyGroup::NUM) -#define KEYGROUP_ALPHA ((USHORT)::com::sun::star::awt::KeyGroup::ALPHA) -#define KEYGROUP_FKEYS ((USHORT)::com::sun::star::awt::KeyGroup::FKEYS) -#define KEYGROUP_CURSOR ((USHORT)::com::sun::star::awt::KeyGroup::CURSOR) -#define KEYGROUP_MISC ((USHORT)::com::sun::star::awt::KeyGroup::MISC) -#define KEYGROUP_TYPE ((USHORT)::com::sun::star::awt::KeyGroup::TYPE) +#define KEYGROUP_NUM ((sal_uInt16)::com::sun::star::awt::KeyGroup::NUM) +#define KEYGROUP_ALPHA ((sal_uInt16)::com::sun::star::awt::KeyGroup::ALPHA) +#define KEYGROUP_FKEYS ((sal_uInt16)::com::sun::star::awt::KeyGroup::FKEYS) +#define KEYGROUP_CURSOR ((sal_uInt16)::com::sun::star::awt::KeyGroup::CURSOR) +#define KEYGROUP_MISC ((sal_uInt16)::com::sun::star::awt::KeyGroup::MISC) +#define KEYGROUP_TYPE ((sal_uInt16)::com::sun::star::awt::KeyGroup::TYPE) // Key-Codes -#define KEY_0 ((USHORT)::com::sun::star::awt::Key::NUM0) -#define KEY_1 ((USHORT)::com::sun::star::awt::Key::NUM1) -#define KEY_2 ((USHORT)::com::sun::star::awt::Key::NUM2) -#define KEY_3 ((USHORT)::com::sun::star::awt::Key::NUM3) -#define KEY_4 ((USHORT)::com::sun::star::awt::Key::NUM4) -#define KEY_5 ((USHORT)::com::sun::star::awt::Key::NUM5) -#define KEY_6 ((USHORT)::com::sun::star::awt::Key::NUM6) -#define KEY_7 ((USHORT)::com::sun::star::awt::Key::NUM7) -#define KEY_8 ((USHORT)::com::sun::star::awt::Key::NUM8) -#define KEY_9 ((USHORT)::com::sun::star::awt::Key::NUM9) - -#define KEY_A ((USHORT)::com::sun::star::awt::Key::A) -#define KEY_B ((USHORT)::com::sun::star::awt::Key::B) -#define KEY_C ((USHORT)::com::sun::star::awt::Key::C) -#define KEY_D ((USHORT)::com::sun::star::awt::Key::D) -#define KEY_E ((USHORT)::com::sun::star::awt::Key::E) -#define KEY_F ((USHORT)::com::sun::star::awt::Key::F) -#define KEY_G ((USHORT)::com::sun::star::awt::Key::G) -#define KEY_H ((USHORT)::com::sun::star::awt::Key::H) -#define KEY_I ((USHORT)::com::sun::star::awt::Key::I) -#define KEY_J ((USHORT)::com::sun::star::awt::Key::J) -#define KEY_K ((USHORT)::com::sun::star::awt::Key::K) -#define KEY_L ((USHORT)::com::sun::star::awt::Key::L) -#define KEY_M ((USHORT)::com::sun::star::awt::Key::M) -#define KEY_N ((USHORT)::com::sun::star::awt::Key::N) -#define KEY_O ((USHORT)::com::sun::star::awt::Key::O) -#define KEY_P ((USHORT)::com::sun::star::awt::Key::P) -#define KEY_Q ((USHORT)::com::sun::star::awt::Key::Q) -#define KEY_R ((USHORT)::com::sun::star::awt::Key::R) -#define KEY_S ((USHORT)::com::sun::star::awt::Key::S) -#define KEY_T ((USHORT)::com::sun::star::awt::Key::T) -#define KEY_U ((USHORT)::com::sun::star::awt::Key::U) -#define KEY_V ((USHORT)::com::sun::star::awt::Key::V) -#define KEY_W ((USHORT)::com::sun::star::awt::Key::W) -#define KEY_X ((USHORT)::com::sun::star::awt::Key::X) -#define KEY_Y ((USHORT)::com::sun::star::awt::Key::Y) -#define KEY_Z ((USHORT)::com::sun::star::awt::Key::Z) - -#define KEY_F1 ((USHORT)::com::sun::star::awt::Key::F1) -#define KEY_F2 ((USHORT)::com::sun::star::awt::Key::F2) -#define KEY_F3 ((USHORT)::com::sun::star::awt::Key::F3) -#define KEY_F4 ((USHORT)::com::sun::star::awt::Key::F4) -#define KEY_F5 ((USHORT)::com::sun::star::awt::Key::F5) -#define KEY_F6 ((USHORT)::com::sun::star::awt::Key::F6) -#define KEY_F7 ((USHORT)::com::sun::star::awt::Key::F7) -#define KEY_F8 ((USHORT)::com::sun::star::awt::Key::F8) -#define KEY_F9 ((USHORT)::com::sun::star::awt::Key::F9) -#define KEY_F10 ((USHORT)::com::sun::star::awt::Key::F10) -#define KEY_F11 ((USHORT)::com::sun::star::awt::Key::F11) -#define KEY_F12 ((USHORT)::com::sun::star::awt::Key::F12) -#define KEY_F13 ((USHORT)::com::sun::star::awt::Key::F13) -#define KEY_F14 ((USHORT)::com::sun::star::awt::Key::F14) -#define KEY_F15 ((USHORT)::com::sun::star::awt::Key::F15) -#define KEY_F16 ((USHORT)::com::sun::star::awt::Key::F16) -#define KEY_F17 ((USHORT)::com::sun::star::awt::Key::F17) -#define KEY_F18 ((USHORT)::com::sun::star::awt::Key::F18) -#define KEY_F19 ((USHORT)::com::sun::star::awt::Key::F19) -#define KEY_F20 ((USHORT)::com::sun::star::awt::Key::F20) -#define KEY_F21 ((USHORT)::com::sun::star::awt::Key::F21) -#define KEY_F22 ((USHORT)::com::sun::star::awt::Key::F22) -#define KEY_F23 ((USHORT)::com::sun::star::awt::Key::F23) -#define KEY_F24 ((USHORT)::com::sun::star::awt::Key::F24) -#define KEY_F25 ((USHORT)::com::sun::star::awt::Key::F25) -#define KEY_F26 ((USHORT)::com::sun::star::awt::Key::F26) - -#define KEY_DOWN ((USHORT)::com::sun::star::awt::Key::DOWN) -#define KEY_UP ((USHORT)::com::sun::star::awt::Key::UP) -#define KEY_LEFT ((USHORT)::com::sun::star::awt::Key::LEFT) -#define KEY_RIGHT ((USHORT)::com::sun::star::awt::Key::RIGHT) -#define KEY_HOME ((USHORT)::com::sun::star::awt::Key::HOME) -#define KEY_END ((USHORT)::com::sun::star::awt::Key::END) -#define KEY_PAGEUP ((USHORT)::com::sun::star::awt::Key::PAGEUP) -#define KEY_PAGEDOWN ((USHORT)::com::sun::star::awt::Key::PAGEDOWN) - -#define KEY_RETURN ((USHORT)::com::sun::star::awt::Key::RETURN) -#define KEY_ESCAPE ((USHORT)::com::sun::star::awt::Key::ESCAPE) -#define KEY_TAB ((USHORT)::com::sun::star::awt::Key::TAB) -#define KEY_BACKSPACE ((USHORT)::com::sun::star::awt::Key::BACKSPACE) -#define KEY_SPACE ((USHORT)::com::sun::star::awt::Key::SPACE) -#define KEY_INSERT ((USHORT)::com::sun::star::awt::Key::INSERT) -#define KEY_DELETE ((USHORT)::com::sun::star::awt::Key::DELETE) - -#define KEY_ADD ((USHORT)::com::sun::star::awt::Key::ADD) -#define KEY_SUBTRACT ((USHORT)::com::sun::star::awt::Key::SUBTRACT) -#define KEY_MULTIPLY ((USHORT)::com::sun::star::awt::Key::MULTIPLY) -#define KEY_DIVIDE ((USHORT)::com::sun::star::awt::Key::DIVIDE) -#define KEY_POINT ((USHORT)::com::sun::star::awt::Key::POINT) -#define KEY_COMMA ((USHORT)::com::sun::star::awt::Key::COMMA) -#define KEY_LESS ((USHORT)::com::sun::star::awt::Key::LESS) -#define KEY_GREATER ((USHORT)::com::sun::star::awt::Key::GREATER) -#define KEY_EQUAL ((USHORT)::com::sun::star::awt::Key::EQUAL) - -#define KEY_OPEN ((USHORT)::com::sun::star::awt::Key::OPEN) -#define KEY_CUT ((USHORT)::com::sun::star::awt::Key::CUT) -#define KEY_COPY ((USHORT)::com::sun::star::awt::Key::COPY) -#define KEY_PASTE ((USHORT)::com::sun::star::awt::Key::PASTE) -#define KEY_UNDO ((USHORT)::com::sun::star::awt::Key::UNDO) -#define KEY_REPEAT ((USHORT)::com::sun::star::awt::Key::REPEAT) -#define KEY_FIND ((USHORT)::com::sun::star::awt::Key::FIND) -#define KEY_PROPERTIES ((USHORT)::com::sun::star::awt::Key::PROPERTIES) -#define KEY_FRONT ((USHORT)::com::sun::star::awt::Key::FRONT) -#define KEY_CONTEXTMENU ((USHORT)::com::sun::star::awt::Key::CONTEXTMENU) -#define KEY_MENU ((USHORT)::com::sun::star::awt::Key::MENU) -#define KEY_HELP ((USHORT)::com::sun::star::awt::Key::HELP) -#define KEY_HANGUL_HANJA ((USHORT)::com::sun::star::awt::Key::HANGUL_HANJA) -#define KEY_DECIMAL ((USHORT)::com::sun::star::awt::Key::DECIMAL) -#define KEY_TILDE ((USHORT)::com::sun::star::awt::Key::TILDE) -#define KEY_QUOTELEFT ((USHORT)::com::sun::star::awt::Key::QUOTELEFT) - -#define KEY_CODE ((USHORT)0x0FFF) +#define KEY_0 ((sal_uInt16)::com::sun::star::awt::Key::NUM0) +#define KEY_1 ((sal_uInt16)::com::sun::star::awt::Key::NUM1) +#define KEY_2 ((sal_uInt16)::com::sun::star::awt::Key::NUM2) +#define KEY_3 ((sal_uInt16)::com::sun::star::awt::Key::NUM3) +#define KEY_4 ((sal_uInt16)::com::sun::star::awt::Key::NUM4) +#define KEY_5 ((sal_uInt16)::com::sun::star::awt::Key::NUM5) +#define KEY_6 ((sal_uInt16)::com::sun::star::awt::Key::NUM6) +#define KEY_7 ((sal_uInt16)::com::sun::star::awt::Key::NUM7) +#define KEY_8 ((sal_uInt16)::com::sun::star::awt::Key::NUM8) +#define KEY_9 ((sal_uInt16)::com::sun::star::awt::Key::NUM9) + +#define KEY_A ((sal_uInt16)::com::sun::star::awt::Key::A) +#define KEY_B ((sal_uInt16)::com::sun::star::awt::Key::B) +#define KEY_C ((sal_uInt16)::com::sun::star::awt::Key::C) +#define KEY_D ((sal_uInt16)::com::sun::star::awt::Key::D) +#define KEY_E ((sal_uInt16)::com::sun::star::awt::Key::E) +#define KEY_F ((sal_uInt16)::com::sun::star::awt::Key::F) +#define KEY_G ((sal_uInt16)::com::sun::star::awt::Key::G) +#define KEY_H ((sal_uInt16)::com::sun::star::awt::Key::H) +#define KEY_I ((sal_uInt16)::com::sun::star::awt::Key::I) +#define KEY_J ((sal_uInt16)::com::sun::star::awt::Key::J) +#define KEY_K ((sal_uInt16)::com::sun::star::awt::Key::K) +#define KEY_L ((sal_uInt16)::com::sun::star::awt::Key::L) +#define KEY_M ((sal_uInt16)::com::sun::star::awt::Key::M) +#define KEY_N ((sal_uInt16)::com::sun::star::awt::Key::N) +#define KEY_O ((sal_uInt16)::com::sun::star::awt::Key::O) +#define KEY_P ((sal_uInt16)::com::sun::star::awt::Key::P) +#define KEY_Q ((sal_uInt16)::com::sun::star::awt::Key::Q) +#define KEY_R ((sal_uInt16)::com::sun::star::awt::Key::R) +#define KEY_S ((sal_uInt16)::com::sun::star::awt::Key::S) +#define KEY_T ((sal_uInt16)::com::sun::star::awt::Key::T) +#define KEY_U ((sal_uInt16)::com::sun::star::awt::Key::U) +#define KEY_V ((sal_uInt16)::com::sun::star::awt::Key::V) +#define KEY_W ((sal_uInt16)::com::sun::star::awt::Key::W) +#define KEY_X ((sal_uInt16)::com::sun::star::awt::Key::X) +#define KEY_Y ((sal_uInt16)::com::sun::star::awt::Key::Y) +#define KEY_Z ((sal_uInt16)::com::sun::star::awt::Key::Z) + +#define KEY_F1 ((sal_uInt16)::com::sun::star::awt::Key::F1) +#define KEY_F2 ((sal_uInt16)::com::sun::star::awt::Key::F2) +#define KEY_F3 ((sal_uInt16)::com::sun::star::awt::Key::F3) +#define KEY_F4 ((sal_uInt16)::com::sun::star::awt::Key::F4) +#define KEY_F5 ((sal_uInt16)::com::sun::star::awt::Key::F5) +#define KEY_F6 ((sal_uInt16)::com::sun::star::awt::Key::F6) +#define KEY_F7 ((sal_uInt16)::com::sun::star::awt::Key::F7) +#define KEY_F8 ((sal_uInt16)::com::sun::star::awt::Key::F8) +#define KEY_F9 ((sal_uInt16)::com::sun::star::awt::Key::F9) +#define KEY_F10 ((sal_uInt16)::com::sun::star::awt::Key::F10) +#define KEY_F11 ((sal_uInt16)::com::sun::star::awt::Key::F11) +#define KEY_F12 ((sal_uInt16)::com::sun::star::awt::Key::F12) +#define KEY_F13 ((sal_uInt16)::com::sun::star::awt::Key::F13) +#define KEY_F14 ((sal_uInt16)::com::sun::star::awt::Key::F14) +#define KEY_F15 ((sal_uInt16)::com::sun::star::awt::Key::F15) +#define KEY_F16 ((sal_uInt16)::com::sun::star::awt::Key::F16) +#define KEY_F17 ((sal_uInt16)::com::sun::star::awt::Key::F17) +#define KEY_F18 ((sal_uInt16)::com::sun::star::awt::Key::F18) +#define KEY_F19 ((sal_uInt16)::com::sun::star::awt::Key::F19) +#define KEY_F20 ((sal_uInt16)::com::sun::star::awt::Key::F20) +#define KEY_F21 ((sal_uInt16)::com::sun::star::awt::Key::F21) +#define KEY_F22 ((sal_uInt16)::com::sun::star::awt::Key::F22) +#define KEY_F23 ((sal_uInt16)::com::sun::star::awt::Key::F23) +#define KEY_F24 ((sal_uInt16)::com::sun::star::awt::Key::F24) +#define KEY_F25 ((sal_uInt16)::com::sun::star::awt::Key::F25) +#define KEY_F26 ((sal_uInt16)::com::sun::star::awt::Key::F26) + +#define KEY_DOWN ((sal_uInt16)::com::sun::star::awt::Key::DOWN) +#define KEY_UP ((sal_uInt16)::com::sun::star::awt::Key::UP) +#define KEY_LEFT ((sal_uInt16)::com::sun::star::awt::Key::LEFT) +#define KEY_RIGHT ((sal_uInt16)::com::sun::star::awt::Key::RIGHT) +#define KEY_HOME ((sal_uInt16)::com::sun::star::awt::Key::HOME) +#define KEY_END ((sal_uInt16)::com::sun::star::awt::Key::END) +#define KEY_PAGEUP ((sal_uInt16)::com::sun::star::awt::Key::PAGEUP) +#define KEY_PAGEDOWN ((sal_uInt16)::com::sun::star::awt::Key::PAGEDOWN) + +#define KEY_RETURN ((sal_uInt16)::com::sun::star::awt::Key::RETURN) +#define KEY_ESCAPE ((sal_uInt16)::com::sun::star::awt::Key::ESCAPE) +#define KEY_TAB ((sal_uInt16)::com::sun::star::awt::Key::TAB) +#define KEY_BACKSPACE ((sal_uInt16)::com::sun::star::awt::Key::BACKSPACE) +#define KEY_SPACE ((sal_uInt16)::com::sun::star::awt::Key::SPACE) +#define KEY_INSERT ((sal_uInt16)::com::sun::star::awt::Key::INSERT) +#define KEY_DELETE ((sal_uInt16)::com::sun::star::awt::Key::DELETE) + +#define KEY_ADD ((sal_uInt16)::com::sun::star::awt::Key::ADD) +#define KEY_SUBTRACT ((sal_uInt16)::com::sun::star::awt::Key::SUBTRACT) +#define KEY_MULTIPLY ((sal_uInt16)::com::sun::star::awt::Key::MULTIPLY) +#define KEY_DIVIDE ((sal_uInt16)::com::sun::star::awt::Key::DIVIDE) +#define KEY_POINT ((sal_uInt16)::com::sun::star::awt::Key::POINT) +#define KEY_COMMA ((sal_uInt16)::com::sun::star::awt::Key::COMMA) +#define KEY_LESS ((sal_uInt16)::com::sun::star::awt::Key::LESS) +#define KEY_GREATER ((sal_uInt16)::com::sun::star::awt::Key::GREATER) +#define KEY_EQUAL ((sal_uInt16)::com::sun::star::awt::Key::EQUAL) + +#define KEY_OPEN ((sal_uInt16)::com::sun::star::awt::Key::OPEN) +#define KEY_CUT ((sal_uInt16)::com::sun::star::awt::Key::CUT) +#define KEY_COPY ((sal_uInt16)::com::sun::star::awt::Key::COPY) +#define KEY_PASTE ((sal_uInt16)::com::sun::star::awt::Key::PASTE) +#define KEY_UNDO ((sal_uInt16)::com::sun::star::awt::Key::UNDO) +#define KEY_REPEAT ((sal_uInt16)::com::sun::star::awt::Key::REPEAT) +#define KEY_FIND ((sal_uInt16)::com::sun::star::awt::Key::FIND) +#define KEY_PROPERTIES ((sal_uInt16)::com::sun::star::awt::Key::PROPERTIES) +#define KEY_FRONT ((sal_uInt16)::com::sun::star::awt::Key::FRONT) +#define KEY_CONTEXTMENU ((sal_uInt16)::com::sun::star::awt::Key::CONTEXTMENU) +#define KEY_MENU ((sal_uInt16)::com::sun::star::awt::Key::MENU) +#define KEY_HELP ((sal_uInt16)::com::sun::star::awt::Key::HELP) +#define KEY_HANGUL_HANJA ((sal_uInt16)::com::sun::star::awt::Key::HANGUL_HANJA) +#define KEY_DECIMAL ((sal_uInt16)::com::sun::star::awt::Key::DECIMAL) +#define KEY_TILDE ((sal_uInt16)::com::sun::star::awt::Key::TILDE) +#define KEY_QUOTELEFT ((sal_uInt16)::com::sun::star::awt::Key::QUOTELEFT) + +#define KEY_CODE ((sal_uInt16)0x0FFF) // Modifier-Tasten -#define KEY_SHIFT ((USHORT)0x1000) -#define KEY_MOD1 ((USHORT)0x2000) -#define KEY_MOD2 ((USHORT)0x4000) -#define KEY_MOD3 ((USHORT)0x8000) -#define KEY_MODTYPE ((USHORT)0xF000) -#define KEY_ALLMODTYPE ((USHORT)0xF000) +#define KEY_SHIFT ((sal_uInt16)0x1000) +#define KEY_MOD1 ((sal_uInt16)0x2000) +#define KEY_MOD2 ((sal_uInt16)0x4000) +#define KEY_MOD3 ((sal_uInt16)0x8000) +#define KEY_MODTYPE ((sal_uInt16)0xF000) +#define KEY_ALLMODTYPE ((sal_uInt16)0xF000) // extended Modifier-Keys (only used for modkey events) #define MODKEY_LSHIFT 0x0001 @@ -184,8 +184,8 @@ // - Mouse-Types - // --------------- -#define MOUSE_LEFT ((USHORT)0x0001) -#define MOUSE_MIDDLE ((USHORT)0x0002) -#define MOUSE_RIGHT ((USHORT)0x0004) +#define MOUSE_LEFT ((sal_uInt16)0x0001) +#define MOUSE_MIDDLE ((sal_uInt16)0x0002) +#define MOUSE_RIGHT ((sal_uInt16)0x0004) #endif // _SV_KEYCODES_HXX |