1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright IBM Corporation 2010.
6  * Copyright 2000, 2010 Oracle and/or its affiliates.
7  *
8  * OpenOffice.org - a multi-platform office productivity suite
9  *
10  * This file is part of OpenOffice.org.
11  *
12  * OpenOffice.org is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser General Public License version 3
14  * only, as published by the Free Software Foundation.
15  *
16  * OpenOffice.org is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU Lesser General Public License version 3 for more details
20  * (a copy is included in the LICENSE file that accompanied this code).
21  *
22  * You should have received a copy of the GNU Lesser General Public License
23  * version 3 along with OpenOffice.org.  If not, see
24  * <http://www.openoffice.org/license.html>
25  * for a copy of the LGPLv3 License.
26  *
27  ************************************************************************/
28 
29 #ifndef __ACCESSIBLEKEYSTROKE_H_
30 #define __ACCESSIBLEKEYSTROKE_H_
31 
32 #pragma	once
33 
34 typedef struct _ACCESSIBLE_KEYSTROKE {
35   short modifiers;
36   short keyCode;
37   char keyChar;
38   short keyFunc;
39 } ACCESSIBLE_KEYSTROKE;
40 
41 const short MODIFIER_SHIFT = 1;
42 const short MODIFIER_CTRL = 2;
43 const short MODIFIER_ALT = 4;
44 
45 const short KEYCODE_NUM0 = 256;
46 const short KEYCODE_NUM1 = 257;
47 const short KEYCODE_NUM2 = 258;
48 const short KEYCODE_NUM3 = 259;
49 const short KEYCODE_NUM4 = 260;
50 const short KEYCODE_NUM5 = 261;
51 const short KEYCODE_NUM6 = 262;
52 const short KEYCODE_NUM7 = 263;
53 const short KEYCODE_NUM8 = 264;
54 const short KEYCODE_NUM9 = 265;
55 const short KEYCODE_A = 512;
56 const short KEYCODE_B = 513;
57 const short KEYCODE_C = 514;
58 const short KEYCODE_D = 515;
59 const short KEYCODE_E = 516;
60 const short KEYCODE_F = 517;
61 const short KEYCODE_G = 518;
62 const short KEYCODE_H = 519;
63 const short KEYCODE_I = 520;
64 const short KEYCODE_J = 521;
65 const short KEYCODE_K = 522;
66 const short KEYCODE_L = 523;
67 const short KEYCODE_M = 524;
68 const short KEYCODE_N = 525;
69 const short KEYCODE_O = 526;
70 const short KEYCODE_P = 527;
71 const short KEYCODE_Q = 528;
72 const short KEYCODE_R = 529;
73 const short KEYCODE_S = 530;
74 const short KEYCODE_T = 531;
75 const short KEYCODE_U = 532;
76 const short KEYCODE_V = 533;
77 const short KEYCODE_W = 534;
78 const short KEYCODE_X = 535;
79 const short KEYCODE_Y = 536;
80 const short KEYCODE_Z = 537;
81 const short KEYCODE_F1 = 768;
82 const short KEYCODE_F2 = 769;
83 const short KEYCODE_F3 = 770;
84 const short KEYCODE_F4 = 771;
85 const short KEYCODE_F5 = 772;
86 const short KEYCODE_F6 = 773;
87 const short KEYCODE_F7 = 774;
88 const short KEYCODE_F8 = 775;
89 const short KEYCODE_F9 = 776;
90 const short KEYCODE_F10 = 777;
91 const short KEYCODE_F11 = 778;
92 const short KEYCODE_F12 = 779;
93 const short KEYCODE_F13 = 780;
94 const short KEYCODE_F14 = 781;
95 const short KEYCODE_F15 = 782;
96 const short KEYCODE_F16 = 783;
97 const short KEYCODE_F17 = 784;
98 const short KEYCODE_F18 = 785;
99 const short KEYCODE_F19 = 786;
100 const short KEYCODE_F20 = 787;
101 const short KEYCODE_F21 = 788;
102 const short KEYCODE_F22 = 789;
103 const short KEYCODE_F23 = 790;
104 const short KEYCODE_F24 = 791;
105 const short KEYCODE_F25 = 792;
106 const short KEYCODE_F26 = 793;
107 const short KEYCODE_DOWN = 1024;
108 const short KEYCODE_UP = 1025;
109 const short KEYCODE_LEFT = 1026;
110 const short KEYCODE_RIGHT = 1027;
111 const short KEYCODE_HOME = 1028;
112 const short KEYCODE_END = 1029;
113 const short KEYCODE_PAGEUP = 1030;
114 const short KEYCODE_PAGEDOWN = 1031;
115 const short KEYCODE_RETURN = 1280;
116 const short KEYCODE_ESCAPE = 1281;
117 const short KEYCODE_TAB = 1282;
118 const short KEYCODE_BACKSPACE = 1283;
119 const short KEYCODE_SPACE = 1284;
120 const short KEYCODE_INSERT = 1285;
121 const short KEYCODE_DELETE = 1286;
122 const short KEYCODE_ADD = 1287;
123 const short KEYCODE_SUBTRACT = 1288;
124 const short KEYCODE_MULTIPLY = 1289;
125 const short KEYCODE_DIVIDE = 1290;
126 const short KEYCODE_POINT = 1291;
127 const short KEYCODE_COMMA = 1292;
128 const short KEYCODE_LESS = 1293;
129 const short KEYCODE_GREATER = 1294;
130 const short KEYCODE_EQUAL = 1295;
131 const short KEYCODE_OPEN = 1296;
132 const short KEYCODE_CUT = 1297;
133 const short KEYCODE_COPY = 1298;
134 const short KEYCODE_PASTE = 1299;
135 const short KEYCODE_UNDO = 1300;
136 const short KEYCODE_REPEAT = 1301;
137 const short KEYCODE_FIND = 1302;
138 const short KEYCODE_PROPERTIES = 1303;
139 const short KEYCODE_FRONT = 1304;
140 const short KEYCODE_CONTEXTMENU = 1305;
141 const short KEYCODE_HELP = 1306;
142 
143 const short SHORTCUT_DONTKNOW = 0;
144 const short NEW = 1;
145 const short OPEN = 2;
146 const short SAVE = 3;
147 const short SAVEAS = 4;
148 const short PRINT = 5;
149 const short CLOSE = 6;
150 const short QUIT = 7;
151 const short CUT = 8;
152 const short COPY = 9;
153 const short PASTE = 10;
154 const short UNDO = 11;
155 const short REDO = 12;
156 const short UNODELETE = 13;
157 const short REPEAT = 14;
158 const short FIND = 15;
159 const short FINDBACKWARD = 16;
160 const short PROPERTIES = 17;
161 const short FRONT = 18;
162 
163 
164 #endif //#define __ACCESSIBLEKEYSTROKE_H_
165