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
29typedef struct _ACCESSIBLE_KEYSTROKE {
30  short modifiers;
31  short keyCode;
32  char keyChar;
33  short keyFunc;
34} ACCESSIBLE_KEYSTROKE;
35
36const short MODIFIER_SHIFT = 1;
37const short MODIFIER_CTRL = 2;
38const short MODIFIER_ALT = 4;
39
40const short KEYCODE_NUM0 = 256;
41const short KEYCODE_NUM1 = 257;
42const short KEYCODE_NUM2 = 258;
43const short KEYCODE_NUM3 = 259;
44const short KEYCODE_NUM4 = 260;
45const short KEYCODE_NUM5 = 261;
46const short KEYCODE_NUM6 = 262;
47const short KEYCODE_NUM7 = 263;
48const short KEYCODE_NUM8 = 264;
49const short KEYCODE_NUM9 = 265;
50const short KEYCODE_A = 512;
51const short KEYCODE_B = 513;
52const short KEYCODE_C = 514;
53const short KEYCODE_D = 515;
54const short KEYCODE_E = 516;
55const short KEYCODE_F = 517;
56const short KEYCODE_G = 518;
57const short KEYCODE_H = 519;
58const short KEYCODE_I = 520;
59const short KEYCODE_J = 521;
60const short KEYCODE_K = 522;
61const short KEYCODE_L = 523;
62const short KEYCODE_M = 524;
63const short KEYCODE_N = 525;
64const short KEYCODE_O = 526;
65const short KEYCODE_P = 527;
66const short KEYCODE_Q = 528;
67const short KEYCODE_R = 529;
68const short KEYCODE_S = 530;
69const short KEYCODE_T = 531;
70const short KEYCODE_U = 532;
71const short KEYCODE_V = 533;
72const short KEYCODE_W = 534;
73const short KEYCODE_X = 535;
74const short KEYCODE_Y = 536;
75const short KEYCODE_Z = 537;
76const short KEYCODE_F1 = 768;
77const short KEYCODE_F2 = 769;
78const short KEYCODE_F3 = 770;
79const short KEYCODE_F4 = 771;
80const short KEYCODE_F5 = 772;
81const short KEYCODE_F6 = 773;
82const short KEYCODE_F7 = 774;
83const short KEYCODE_F8 = 775;
84const short KEYCODE_F9 = 776;
85const short KEYCODE_F10 = 777;
86const short KEYCODE_F11 = 778;
87const short KEYCODE_F12 = 779;
88const short KEYCODE_F13 = 780;
89const short KEYCODE_F14 = 781;
90const short KEYCODE_F15 = 782;
91const short KEYCODE_F16 = 783;
92const short KEYCODE_F17 = 784;
93const short KEYCODE_F18 = 785;
94const short KEYCODE_F19 = 786;
95const short KEYCODE_F20 = 787;
96const short KEYCODE_F21 = 788;
97const short KEYCODE_F22 = 789;
98const short KEYCODE_F23 = 790;
99const short KEYCODE_F24 = 791;
100const short KEYCODE_F25 = 792;
101const short KEYCODE_F26 = 793;
102const short KEYCODE_DOWN = 1024;
103const short KEYCODE_UP = 1025;
104const short KEYCODE_LEFT = 1026;
105const short KEYCODE_RIGHT = 1027;
106const short KEYCODE_HOME = 1028;
107const short KEYCODE_END = 1029;
108const short KEYCODE_PAGEUP = 1030;
109const short KEYCODE_PAGEDOWN = 1031;
110const short KEYCODE_RETURN = 1280;
111const short KEYCODE_ESCAPE = 1281;
112const short KEYCODE_TAB = 1282;
113const short KEYCODE_BACKSPACE = 1283;
114const short KEYCODE_SPACE = 1284;
115const short KEYCODE_INSERT = 1285;
116const short KEYCODE_DELETE = 1286;
117const short KEYCODE_ADD = 1287;
118const short KEYCODE_SUBTRACT = 1288;
119const short KEYCODE_MULTIPLY = 1289;
120const short KEYCODE_DIVIDE = 1290;
121const short KEYCODE_POINT = 1291;
122const short KEYCODE_COMMA = 1292;
123const short KEYCODE_LESS = 1293;
124const short KEYCODE_GREATER = 1294;
125const short KEYCODE_EQUAL = 1295;
126const short KEYCODE_OPEN = 1296;
127const short KEYCODE_CUT = 1297;
128const short KEYCODE_COPY = 1298;
129const short KEYCODE_PASTE = 1299;
130const short KEYCODE_UNDO = 1300;
131const short KEYCODE_REPEAT = 1301;
132const short KEYCODE_FIND = 1302;
133const short KEYCODE_PROPERTIES = 1303;
134const short KEYCODE_FRONT = 1304;
135const short KEYCODE_CONTEXTMENU = 1305;
136const short KEYCODE_HELP = 1306;
137
138const short SHORTCUT_DONTKNOW = 0;
139const short NEW = 1;
140const short OPEN = 2;
141const short SAVE = 3;
142const short SAVEAS = 4;
143const short PRINT = 5;
144const short CLOSE = 6;
145const short QUIT = 7;
146const short CUT = 8;
147const short COPY = 9;
148const short PASTE = 10;
149const short UNDO = 11;
150const short REDO = 12;
151const short UNODELETE = 13;
152const short REPEAT = 14;
153const short FIND = 15;
154const short FINDBACKWARD = 16;
155const short PROPERTIES = 17;
156const short FRONT = 18;
157