1*0d63794cSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*0d63794cSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*0d63794cSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*0d63794cSAndrew Rist * distributed with this work for additional information 6*0d63794cSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*0d63794cSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*0d63794cSAndrew Rist * "License"); you may not use this file except in compliance 9*0d63794cSAndrew Rist * with the License. You may obtain a copy of the License at 10*0d63794cSAndrew Rist * 11*0d63794cSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*0d63794cSAndrew Rist * 13*0d63794cSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*0d63794cSAndrew Rist * software distributed under the License is distributed on an 15*0d63794cSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*0d63794cSAndrew Rist * KIND, either express or implied. See the License for the 17*0d63794cSAndrew Rist * specific language governing permissions and limitations 18*0d63794cSAndrew Rist * under the License. 19*0d63794cSAndrew Rist * 20*0d63794cSAndrew Rist *************************************************************/ 21*0d63794cSAndrew Rist 22*0d63794cSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SV_KEYCODES_HXX 25cdf0e10cSrcweir #define _SV_KEYCODES_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <vcl/sv.h> 28cdf0e10cSrcweir #include <com/sun/star/awt/Key.hpp> 29cdf0e10cSrcweir #include <com/sun/star/awt/KeyGroup.hpp> 30cdf0e10cSrcweir 31cdf0e10cSrcweir // ----------------- 32cdf0e10cSrcweir // - KeyCode-Types - 33cdf0e10cSrcweir // ----------------- 34cdf0e10cSrcweir 35cdf0e10cSrcweir // By changes you must also change: rsc/vclrsc.hxx 36cdf0e10cSrcweir 37cdf0e10cSrcweir // Key-Gruppen 38cdf0e10cSrcweir #define KEYGROUP_NUM ((sal_uInt16)::com::sun::star::awt::KeyGroup::NUM) 39cdf0e10cSrcweir #define KEYGROUP_ALPHA ((sal_uInt16)::com::sun::star::awt::KeyGroup::ALPHA) 40cdf0e10cSrcweir #define KEYGROUP_FKEYS ((sal_uInt16)::com::sun::star::awt::KeyGroup::FKEYS) 41cdf0e10cSrcweir #define KEYGROUP_CURSOR ((sal_uInt16)::com::sun::star::awt::KeyGroup::CURSOR) 42cdf0e10cSrcweir #define KEYGROUP_MISC ((sal_uInt16)::com::sun::star::awt::KeyGroup::MISC) 43cdf0e10cSrcweir #define KEYGROUP_TYPE ((sal_uInt16)::com::sun::star::awt::KeyGroup::TYPE) 44cdf0e10cSrcweir 45cdf0e10cSrcweir // Key-Codes 46cdf0e10cSrcweir #define KEY_0 ((sal_uInt16)::com::sun::star::awt::Key::NUM0) 47cdf0e10cSrcweir #define KEY_1 ((sal_uInt16)::com::sun::star::awt::Key::NUM1) 48cdf0e10cSrcweir #define KEY_2 ((sal_uInt16)::com::sun::star::awt::Key::NUM2) 49cdf0e10cSrcweir #define KEY_3 ((sal_uInt16)::com::sun::star::awt::Key::NUM3) 50cdf0e10cSrcweir #define KEY_4 ((sal_uInt16)::com::sun::star::awt::Key::NUM4) 51cdf0e10cSrcweir #define KEY_5 ((sal_uInt16)::com::sun::star::awt::Key::NUM5) 52cdf0e10cSrcweir #define KEY_6 ((sal_uInt16)::com::sun::star::awt::Key::NUM6) 53cdf0e10cSrcweir #define KEY_7 ((sal_uInt16)::com::sun::star::awt::Key::NUM7) 54cdf0e10cSrcweir #define KEY_8 ((sal_uInt16)::com::sun::star::awt::Key::NUM8) 55cdf0e10cSrcweir #define KEY_9 ((sal_uInt16)::com::sun::star::awt::Key::NUM9) 56cdf0e10cSrcweir 57cdf0e10cSrcweir #define KEY_A ((sal_uInt16)::com::sun::star::awt::Key::A) 58cdf0e10cSrcweir #define KEY_B ((sal_uInt16)::com::sun::star::awt::Key::B) 59cdf0e10cSrcweir #define KEY_C ((sal_uInt16)::com::sun::star::awt::Key::C) 60cdf0e10cSrcweir #define KEY_D ((sal_uInt16)::com::sun::star::awt::Key::D) 61cdf0e10cSrcweir #define KEY_E ((sal_uInt16)::com::sun::star::awt::Key::E) 62cdf0e10cSrcweir #define KEY_F ((sal_uInt16)::com::sun::star::awt::Key::F) 63cdf0e10cSrcweir #define KEY_G ((sal_uInt16)::com::sun::star::awt::Key::G) 64cdf0e10cSrcweir #define KEY_H ((sal_uInt16)::com::sun::star::awt::Key::H) 65cdf0e10cSrcweir #define KEY_I ((sal_uInt16)::com::sun::star::awt::Key::I) 66cdf0e10cSrcweir #define KEY_J ((sal_uInt16)::com::sun::star::awt::Key::J) 67cdf0e10cSrcweir #define KEY_K ((sal_uInt16)::com::sun::star::awt::Key::K) 68cdf0e10cSrcweir #define KEY_L ((sal_uInt16)::com::sun::star::awt::Key::L) 69cdf0e10cSrcweir #define KEY_M ((sal_uInt16)::com::sun::star::awt::Key::M) 70cdf0e10cSrcweir #define KEY_N ((sal_uInt16)::com::sun::star::awt::Key::N) 71cdf0e10cSrcweir #define KEY_O ((sal_uInt16)::com::sun::star::awt::Key::O) 72cdf0e10cSrcweir #define KEY_P ((sal_uInt16)::com::sun::star::awt::Key::P) 73cdf0e10cSrcweir #define KEY_Q ((sal_uInt16)::com::sun::star::awt::Key::Q) 74cdf0e10cSrcweir #define KEY_R ((sal_uInt16)::com::sun::star::awt::Key::R) 75cdf0e10cSrcweir #define KEY_S ((sal_uInt16)::com::sun::star::awt::Key::S) 76cdf0e10cSrcweir #define KEY_T ((sal_uInt16)::com::sun::star::awt::Key::T) 77cdf0e10cSrcweir #define KEY_U ((sal_uInt16)::com::sun::star::awt::Key::U) 78cdf0e10cSrcweir #define KEY_V ((sal_uInt16)::com::sun::star::awt::Key::V) 79cdf0e10cSrcweir #define KEY_W ((sal_uInt16)::com::sun::star::awt::Key::W) 80cdf0e10cSrcweir #define KEY_X ((sal_uInt16)::com::sun::star::awt::Key::X) 81cdf0e10cSrcweir #define KEY_Y ((sal_uInt16)::com::sun::star::awt::Key::Y) 82cdf0e10cSrcweir #define KEY_Z ((sal_uInt16)::com::sun::star::awt::Key::Z) 83cdf0e10cSrcweir 84cdf0e10cSrcweir #define KEY_F1 ((sal_uInt16)::com::sun::star::awt::Key::F1) 85cdf0e10cSrcweir #define KEY_F2 ((sal_uInt16)::com::sun::star::awt::Key::F2) 86cdf0e10cSrcweir #define KEY_F3 ((sal_uInt16)::com::sun::star::awt::Key::F3) 87cdf0e10cSrcweir #define KEY_F4 ((sal_uInt16)::com::sun::star::awt::Key::F4) 88cdf0e10cSrcweir #define KEY_F5 ((sal_uInt16)::com::sun::star::awt::Key::F5) 89cdf0e10cSrcweir #define KEY_F6 ((sal_uInt16)::com::sun::star::awt::Key::F6) 90cdf0e10cSrcweir #define KEY_F7 ((sal_uInt16)::com::sun::star::awt::Key::F7) 91cdf0e10cSrcweir #define KEY_F8 ((sal_uInt16)::com::sun::star::awt::Key::F8) 92cdf0e10cSrcweir #define KEY_F9 ((sal_uInt16)::com::sun::star::awt::Key::F9) 93cdf0e10cSrcweir #define KEY_F10 ((sal_uInt16)::com::sun::star::awt::Key::F10) 94cdf0e10cSrcweir #define KEY_F11 ((sal_uInt16)::com::sun::star::awt::Key::F11) 95cdf0e10cSrcweir #define KEY_F12 ((sal_uInt16)::com::sun::star::awt::Key::F12) 96cdf0e10cSrcweir #define KEY_F13 ((sal_uInt16)::com::sun::star::awt::Key::F13) 97cdf0e10cSrcweir #define KEY_F14 ((sal_uInt16)::com::sun::star::awt::Key::F14) 98cdf0e10cSrcweir #define KEY_F15 ((sal_uInt16)::com::sun::star::awt::Key::F15) 99cdf0e10cSrcweir #define KEY_F16 ((sal_uInt16)::com::sun::star::awt::Key::F16) 100cdf0e10cSrcweir #define KEY_F17 ((sal_uInt16)::com::sun::star::awt::Key::F17) 101cdf0e10cSrcweir #define KEY_F18 ((sal_uInt16)::com::sun::star::awt::Key::F18) 102cdf0e10cSrcweir #define KEY_F19 ((sal_uInt16)::com::sun::star::awt::Key::F19) 103cdf0e10cSrcweir #define KEY_F20 ((sal_uInt16)::com::sun::star::awt::Key::F20) 104cdf0e10cSrcweir #define KEY_F21 ((sal_uInt16)::com::sun::star::awt::Key::F21) 105cdf0e10cSrcweir #define KEY_F22 ((sal_uInt16)::com::sun::star::awt::Key::F22) 106cdf0e10cSrcweir #define KEY_F23 ((sal_uInt16)::com::sun::star::awt::Key::F23) 107cdf0e10cSrcweir #define KEY_F24 ((sal_uInt16)::com::sun::star::awt::Key::F24) 108cdf0e10cSrcweir #define KEY_F25 ((sal_uInt16)::com::sun::star::awt::Key::F25) 109cdf0e10cSrcweir #define KEY_F26 ((sal_uInt16)::com::sun::star::awt::Key::F26) 110cdf0e10cSrcweir 111cdf0e10cSrcweir #define KEY_DOWN ((sal_uInt16)::com::sun::star::awt::Key::DOWN) 112cdf0e10cSrcweir #define KEY_UP ((sal_uInt16)::com::sun::star::awt::Key::UP) 113cdf0e10cSrcweir #define KEY_LEFT ((sal_uInt16)::com::sun::star::awt::Key::LEFT) 114cdf0e10cSrcweir #define KEY_RIGHT ((sal_uInt16)::com::sun::star::awt::Key::RIGHT) 115cdf0e10cSrcweir #define KEY_HOME ((sal_uInt16)::com::sun::star::awt::Key::HOME) 116cdf0e10cSrcweir #define KEY_END ((sal_uInt16)::com::sun::star::awt::Key::END) 117cdf0e10cSrcweir #define KEY_PAGEUP ((sal_uInt16)::com::sun::star::awt::Key::PAGEUP) 118cdf0e10cSrcweir #define KEY_PAGEDOWN ((sal_uInt16)::com::sun::star::awt::Key::PAGEDOWN) 119cdf0e10cSrcweir 120cdf0e10cSrcweir #define KEY_RETURN ((sal_uInt16)::com::sun::star::awt::Key::RETURN) 121cdf0e10cSrcweir #define KEY_ESCAPE ((sal_uInt16)::com::sun::star::awt::Key::ESCAPE) 122cdf0e10cSrcweir #define KEY_TAB ((sal_uInt16)::com::sun::star::awt::Key::TAB) 123cdf0e10cSrcweir #define KEY_BACKSPACE ((sal_uInt16)::com::sun::star::awt::Key::BACKSPACE) 124cdf0e10cSrcweir #define KEY_SPACE ((sal_uInt16)::com::sun::star::awt::Key::SPACE) 125cdf0e10cSrcweir #define KEY_INSERT ((sal_uInt16)::com::sun::star::awt::Key::INSERT) 126cdf0e10cSrcweir #define KEY_DELETE ((sal_uInt16)::com::sun::star::awt::Key::DELETE) 127cdf0e10cSrcweir 128cdf0e10cSrcweir #define KEY_ADD ((sal_uInt16)::com::sun::star::awt::Key::ADD) 129cdf0e10cSrcweir #define KEY_SUBTRACT ((sal_uInt16)::com::sun::star::awt::Key::SUBTRACT) 130cdf0e10cSrcweir #define KEY_MULTIPLY ((sal_uInt16)::com::sun::star::awt::Key::MULTIPLY) 131cdf0e10cSrcweir #define KEY_DIVIDE ((sal_uInt16)::com::sun::star::awt::Key::DIVIDE) 132cdf0e10cSrcweir #define KEY_POINT ((sal_uInt16)::com::sun::star::awt::Key::POINT) 133cdf0e10cSrcweir #define KEY_COMMA ((sal_uInt16)::com::sun::star::awt::Key::COMMA) 134cdf0e10cSrcweir #define KEY_LESS ((sal_uInt16)::com::sun::star::awt::Key::LESS) 135cdf0e10cSrcweir #define KEY_GREATER ((sal_uInt16)::com::sun::star::awt::Key::GREATER) 136cdf0e10cSrcweir #define KEY_EQUAL ((sal_uInt16)::com::sun::star::awt::Key::EQUAL) 137cdf0e10cSrcweir 138cdf0e10cSrcweir #define KEY_OPEN ((sal_uInt16)::com::sun::star::awt::Key::OPEN) 139cdf0e10cSrcweir #define KEY_CUT ((sal_uInt16)::com::sun::star::awt::Key::CUT) 140cdf0e10cSrcweir #define KEY_COPY ((sal_uInt16)::com::sun::star::awt::Key::COPY) 141cdf0e10cSrcweir #define KEY_PASTE ((sal_uInt16)::com::sun::star::awt::Key::PASTE) 142cdf0e10cSrcweir #define KEY_UNDO ((sal_uInt16)::com::sun::star::awt::Key::UNDO) 143cdf0e10cSrcweir #define KEY_REPEAT ((sal_uInt16)::com::sun::star::awt::Key::REPEAT) 144cdf0e10cSrcweir #define KEY_FIND ((sal_uInt16)::com::sun::star::awt::Key::FIND) 145cdf0e10cSrcweir #define KEY_PROPERTIES ((sal_uInt16)::com::sun::star::awt::Key::PROPERTIES) 146cdf0e10cSrcweir #define KEY_FRONT ((sal_uInt16)::com::sun::star::awt::Key::FRONT) 147cdf0e10cSrcweir #define KEY_CONTEXTMENU ((sal_uInt16)::com::sun::star::awt::Key::CONTEXTMENU) 148cdf0e10cSrcweir #define KEY_MENU ((sal_uInt16)::com::sun::star::awt::Key::MENU) 149cdf0e10cSrcweir #define KEY_HELP ((sal_uInt16)::com::sun::star::awt::Key::HELP) 150cdf0e10cSrcweir #define KEY_HANGUL_HANJA ((sal_uInt16)::com::sun::star::awt::Key::HANGUL_HANJA) 151cdf0e10cSrcweir #define KEY_DECIMAL ((sal_uInt16)::com::sun::star::awt::Key::DECIMAL) 152cdf0e10cSrcweir #define KEY_TILDE ((sal_uInt16)::com::sun::star::awt::Key::TILDE) 153cdf0e10cSrcweir #define KEY_QUOTELEFT ((sal_uInt16)::com::sun::star::awt::Key::QUOTELEFT) 154cdf0e10cSrcweir 155cdf0e10cSrcweir #define KEY_CODE ((sal_uInt16)0x0FFF) 156cdf0e10cSrcweir 157cdf0e10cSrcweir // Modifier-Tasten 158cdf0e10cSrcweir #define KEY_SHIFT ((sal_uInt16)0x1000) 159cdf0e10cSrcweir #define KEY_MOD1 ((sal_uInt16)0x2000) 160cdf0e10cSrcweir #define KEY_MOD2 ((sal_uInt16)0x4000) 161cdf0e10cSrcweir #define KEY_MOD3 ((sal_uInt16)0x8000) 162cdf0e10cSrcweir #define KEY_MODTYPE ((sal_uInt16)0xF000) 163cdf0e10cSrcweir #define KEY_ALLMODTYPE ((sal_uInt16)0xF000) 164cdf0e10cSrcweir 165cdf0e10cSrcweir // extended Modifier-Keys (only used for modkey events) 166cdf0e10cSrcweir #define MODKEY_LSHIFT 0x0001 167cdf0e10cSrcweir #define MODKEY_RSHIFT 0x0002 168cdf0e10cSrcweir #define MODKEY_LMOD1 0x0004 169cdf0e10cSrcweir #define MODKEY_RMOD1 0x0008 170cdf0e10cSrcweir #define MODKEY_LMOD2 0x0010 171cdf0e10cSrcweir #define MODKEY_RMOD2 0x0020 172cdf0e10cSrcweir #define MODKEY_LMOD3 0x0040 173cdf0e10cSrcweir #define MODKEY_RMOD3 0x0080 174cdf0e10cSrcweir #define MODKEY_SHIFT (MODKEY_LSHIFT|MODKEY_RSHIFT) 175cdf0e10cSrcweir #define MODKEY_MOD1 (MODKEY_LMOD1|MODKEY_RMOD1) 176cdf0e10cSrcweir #define MODKEY_MOD2 (MODKEY_LMOD2|MODKEY_RMOD2) 177cdf0e10cSrcweir #define MODKEY_MOD3 (MODKEY_LMOD3|MODKEY_RMOD3) 178cdf0e10cSrcweir 179cdf0e10cSrcweir // --------------- 180cdf0e10cSrcweir // - Mouse-Types - 181cdf0e10cSrcweir // --------------- 182cdf0e10cSrcweir 183cdf0e10cSrcweir #define MOUSE_LEFT ((sal_uInt16)0x0001) 184cdf0e10cSrcweir #define MOUSE_MIDDLE ((sal_uInt16)0x0002) 185cdf0e10cSrcweir #define MOUSE_RIGHT ((sal_uInt16)0x0004) 186cdf0e10cSrcweir 187cdf0e10cSrcweir #endif // _SV_KEYCODES_HXX 188