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