1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
/*************************************************************************
*
* $RCSfile: globlac.hrc,v $
*
* $Revision: 1.12 $
*
* last change: $Author: rt $ $Date: 2004-09-17 14:10:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#ifndef _GLOBALACC_SRC
#define _GLOBALACC_SRC
#define ACC_CODE( Id, c, bSh, bM1, bM2 ) \
AcceleratorItem { Identifier = Id; \
Key = KeyCode { Code = c ; \
Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; }; };
#define ACC_FUNC( Id, f ) \
AcceleratorItem { Identifier = Id; \
Key = KeyCode { Function = f ; }; };
#define ACC_KEY( language, c, bSh, bM1, bM2 ) \
Key[ language ] = KeyCode { Code = c ; \
Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; };
#define ACC_DEF_KEY( c, bSh, bM1, bM2 ) \
Key = KeyCode { Code = c ; \
Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; };
#define AI_HELPINDEX ACC_CODE( SID_HELPINDEX, KEY_F1, FALSE, TRUE, FALSE )
#define AI_ATTR_CHAR ACC_CODE( SID_ATTR_CHAR, KEY_F2, FALSE, FALSE, FALSE )
// new shortcut F9 for starting slide-show (see #73417#)
#define AI_PRESENTATION ACC_CODE( SID_PRESENTATION, KEY_F9, FALSE, FALSE, FALSE )
// formerly used shortcut Ctrl-F2. Still used (in sd) for compatibility
#define AI_PRESENTATION_COMPAT ACC_CODE( SID_PRESENTATION, KEY_F2, FALSE, TRUE, FALSE )
#define AI_ENTER_GROUP ACC_CODE( SID_ENTER_GROUP, KEY_F3, FALSE, FALSE, FALSE )
#define AI_COPYOBJECTS ACC_CODE( SID_COPYOBJECTS, KEY_F3, TRUE, FALSE, FALSE )
#define AI_LEAVE_GROUP ACC_CODE( SID_LEAVE_GROUP, KEY_F3, FALSE, TRUE, FALSE )
#define AI_ATTR_TRANSFORM ACC_CODE( SID_ATTR_TRANSFORM, KEY_F4, FALSE, FALSE, FALSE )
#define AI_NAVIGATOR ACC_CODE( SID_NAVIGATOR, KEY_F5, FALSE, FALSE, FALSE )
#define AI_SPELLING ACC_CODE( SID_SPELL_DIALOG, KEY_F7, FALSE, FALSE, FALSE )
#define AI_THESAURUS ACC_CODE( SID_THESAURUS, KEY_F7, FALSE, TRUE, FALSE )
#define AI_BEZIER_EDIT ACC_CODE( SID_BEZIER_EDIT, KEY_F8, FALSE, FALSE, FALSE )
#define AI_ATTR_TEXT_FITTOSIZE ACC_CODE( SID_ATTR_TEXT_FITTOSIZE, KEY_F8, TRUE, TRUE, FALSE )
#define AI_STYLE_DESIGNER ACC_CODE( SID_STYLE_DESIGNER, KEY_F11, FALSE, FALSE, FALSE )
#define AI_OUTLINEMODE ACC_CODE( SID_OUTLINEMODE, KEY_F12, FALSE, FALSE, FALSE )
#define AI_DRAWINGMODE ACC_CODE( SID_DRAWINGMODE, KEY_F12, FALSE, TRUE, FALSE )
#define AI_ATTR_PARA_LINESPACE_10 ACC_CODE( SID_ATTR_PARA_LINESPACE_10, KEY_1, FALSE, TRUE, FALSE )
#define AI_ATTR_PARA_LINESPACE_20 ACC_CODE( SID_ATTR_PARA_LINESPACE_20, KEY_2, FALSE, TRUE, FALSE )
#define AI_ATTR_PARA_LINESPACE_15 ACC_CODE( SID_ATTR_PARA_LINESPACE_15, KEY_5, FALSE, TRUE, FALSE )
#define AI_SHOW_ITEMBROWSER ACC_CODE( SID_SHOW_ITEMBROWSER, KEY_9, TRUE, TRUE, TRUE )
#define AI_ATTR_PARA_ADJUST_BLOCK AcceleratorItem { Identifier = SID_ATTR_PARA_ADJUST_BLOCK;\
ACC_DEF_KEY( KEY_J, FALSE, TRUE, FALSE ) \
ACC_KEY( de , KEY_B, FALSE, TRUE, FALSE ) \
ACC_KEY( en-US , KEY_J, FALSE, TRUE, FALSE ) \
ACC_KEY( it , KEY_F, FALSE, TRUE, FALSE ) \
ACC_KEY( es , KEY_J, FALSE, TRUE, FALSE ) \
ACC_KEY( fr , KEY_J, FALSE, TRUE, FALSE ) \
ACC_KEY( nl , KEY_J, FALSE, TRUE, FALSE ) \
ACC_KEY( pl , KEY_J, FALSE, TRUE, FALSE ) \
ACC_KEY( ru , KEY_J, FALSE, TRUE, FALSE ) };
#define AI_ATTR_PARA_ADJUST_CENTER AcceleratorItem { Identifier = SID_ATTR_PARA_ADJUST_CENTER;\
ACC_DEF_KEY( KEY_E, FALSE, TRUE, FALSE ) \
ACC_KEY( de , KEY_E, FALSE, TRUE, FALSE ) \
ACC_KEY( en-US , KEY_E, FALSE, TRUE, FALSE ) \
ACC_KEY( it , KEY_E, FALSE, TRUE, FALSE ) \
ACC_KEY( es , KEY_E, FALSE, TRUE, FALSE ) \
ACC_KEY( fr , KEY_C, TRUE, TRUE, FALSE ) \
ACC_KEY( nl , KEY_J, FALSE, TRUE, FALSE ) };
#define AI_ATTR_CHAR_WEIGHT AcceleratorItem { Identifier = SID_ATTR_CHAR_WEIGHT;\
ACC_DEF_KEY( KEY_B, FALSE, TRUE, FALSE ) \
ACC_KEY( de , KEY_F, FALSE, TRUE, FALSE ) \
ACC_KEY( en-US , KEY_B, FALSE, TRUE, FALSE ) \
ACC_KEY( it , KEY_G, FALSE, TRUE, FALSE ) \
ACC_KEY( es , KEY_N, FALSE, TRUE, FALSE ) \
ACC_KEY( fr , KEY_G, FALSE, TRUE, FALSE ) \
ACC_KEY( nl , KEY_B, FALSE, TRUE, FALSE ) \
ACC_KEY( da , KEY_F, FALSE, TRUE, FALSE ) \
ACC_KEY( pl , KEY_B, FALSE, TRUE, FALSE ) \
ACC_KEY( ru, KEY_B, FALSE, TRUE, FALSE ) };
#define AI_SEARCH_DLG AcceleratorItem { Identifier = SID_SEARCH_DLG;\
ACC_DEF_KEY( KEY_F, FALSE, TRUE, FALSE ) \
ACC_KEY( de , KEY_G, FALSE, TRUE, FALSE ) \
ACC_KEY( en-US , KEY_F, FALSE, TRUE, FALSE ) \
ACC_KEY( it , KEY_B, FALSE, TRUE, FALSE ) \
ACC_KEY( es , KEY_G, FALSE, TRUE, FALSE ) \
ACC_KEY( fr , KEY_F, FALSE, TRUE, FALSE ) \
ACC_KEY( nl , KEY_F, FALSE, TRUE, FALSE ) };
#define AI_GROUP ACC_CODE( SID_GROUP, KEY_G, TRUE, TRUE, FALSE )
#define AI_UNGROUP ACC_CODE( SID_UNGROUP, KEY_G, TRUE, TRUE, TRUE )
// Weitersuchen ...
#define AI_SET_SUPER_SCRIPT AcceleratorItem { Identifier = SID_SET_SUPER_SCRIPT;\
ACC_DEF_KEY( KEY_P, TRUE, TRUE, FALSE ) \
ACC_KEY( de , KEY_H, FALSE, TRUE, FALSE ) \
ACC_KEY( en-US , KEY_P, TRUE, TRUE, FALSE ) \
ACC_KEY( it , KEY_H, FALSE, TRUE, FALSE ) \
ACC_KEY( es , KEY_H, FALSE, TRUE, FALSE ) \
ACC_KEY( fr , KEY_H, FALSE, TRUE, FALSE ) \
ACC_KEY( nl , KEY_H, FALSE, TRUE, FALSE ) };
#define AI_ATTR_CHAR_POSTURE AcceleratorItem { Identifier = SID_ATTR_CHAR_POSTURE;\
ACC_DEF_KEY( KEY_I, FALSE, TRUE, FALSE ) \
ACC_KEY( de , KEY_K, FALSE, TRUE, FALSE ) \
ACC_KEY( en-US , KEY_I, FALSE, TRUE, FALSE ) \
ACC_KEY( it , KEY_I, FALSE, TRUE, FALSE ) \
ACC_KEY( es , KEY_K, FALSE, TRUE, FALSE ) \
ACC_KEY( fr , KEY_I, FALSE, TRUE, FALSE ) \
ACC_KEY( nl , KEY_I, FALSE, TRUE, FALSE ) \
ACC_KEY( da , KEY_K, FALSE, TRUE, FALSE ) \
ACC_KEY( pl , KEY_I, FALSE, TRUE, FALSE ) \
ACC_KEY( ru , KEY_I, FALSE, TRUE, FALSE ) };
#define AI_COMBINE ACC_CODE( SID_COMBINE, KEY_K, TRUE, TRUE, FALSE )
#define AI_DISMANTLE ACC_CODE( SID_DISMANTLE, KEY_K, TRUE, TRUE, TRUE )
#define AI_ATTR_PARA_ADJUST_LEFT AcceleratorItem { Identifier = SID_ATTR_PARA_ADJUST_LEFT;\
ACC_DEF_KEY( KEY_L, FALSE, TRUE, FALSE ) \
ACC_KEY( de , KEY_L, FALSE, TRUE, FALSE ) \
ACC_KEY( en-US , KEY_L, FALSE, TRUE, FALSE ) \
ACC_KEY( it , KEY_T, FALSE, TRUE, FALSE ) \
ACC_KEY( es , KEY_I, FALSE, TRUE, FALSE ) \
ACC_KEY( fr , KEY_G, TRUE, TRUE, FALSE ) \
ACC_KEY( nl , KEY_L, FALSE, TRUE, FALSE ) };
#define AI_ATTR_PARA_ADJUST_RIGHT AcceleratorItem { Identifier = SID_ATTR_PARA_ADJUST_RIGHT;\
ACC_DEF_KEY( KEY_R, FALSE, TRUE, FALSE ) \
ACC_KEY( de , KEY_R, FALSE, TRUE, FALSE ) \
ACC_KEY( en-US , KEY_R, FALSE, TRUE, FALSE ) \
ACC_KEY( it , KEY_R, FALSE, TRUE, FALSE ) \
ACC_KEY( es , KEY_D, FALSE, TRUE, FALSE ) \
ACC_KEY( fr , KEY_D, TRUE, TRUE, FALSE ) \
ACC_KEY( nl , KEY_R, FALSE, TRUE, FALSE ) };
#define AI_SET_SUB_SCRIPT AcceleratorItem { Identifier = SID_SET_SUB_SCRIPT;\
ACC_DEF_KEY( KEY_B, TRUE, TRUE, FALSE ) \
ACC_KEY( de , KEY_T, FALSE, TRUE, FALSE ) \
ACC_KEY( en-US , KEY_B, TRUE, TRUE, FALSE ) \
ACC_KEY( it , KEY_B, TRUE, TRUE, FALSE ) \
ACC_KEY( es , KEY_T, FALSE, TRUE, FALSE ) \
ACC_KEY( fr , KEY_T, FALSE, TRUE, FALSE ) \
ACC_KEY( nl , KEY_P, TRUE, TRUE, FALSE ) };
#define AI_ATTR_CHAR_UNDERLINE AcceleratorItem { Identifier = SID_ATTR_CHAR_UNDERLINE;\
ACC_DEF_KEY( KEY_U, FALSE, TRUE, FALSE ) \
ACC_KEY( de , KEY_U, FALSE, TRUE, FALSE ) \
ACC_KEY( en-US , KEY_U, FALSE, TRUE, FALSE ) \
ACC_KEY( it , KEY_U, FALSE, TRUE, FALSE ) \
ACC_KEY( es , KEY_U, FALSE, TRUE, FALSE ) \
ACC_KEY( fr , KEY_U, FALSE, TRUE, FALSE ) \
ACC_KEY( nl , KEY_U, FALSE, TRUE, FALSE ) \
ACC_KEY( da, KEY_U, FALSE, TRUE, FALSE ) \
ACC_KEY( pl, KEY_U, FALSE, TRUE, FALSE ) \
ACC_KEY( ru , KEY_U, FALSE, TRUE, FALSE ) };
#define AI_STYLE_CATALOG ACC_CODE( SID_STYLE_CATALOG, KEY_F11, FALSE, TRUE, FALSE )
#define AI_WIN_FULLSCREEN ACC_CODE( SID_WIN_FULLSCREEN, KEY_J, TRUE, TRUE, FALSE )
#define AI_FOCUSURLBOX ACC_CODE( SID_FOCUSURLBOX, KEY_O, TRUE, TRUE, FALSE )
#define AI_SELECTALL ACC_CODE( SID_SELECTALL, KEY_A, FALSE, TRUE, FALSE )
// Anordnung
#define AI_FRAME_TO_TOP ACC_CODE( SID_FRAME_TO_TOP, KEY_ADD, TRUE, TRUE, FALSE )
#define AI_MOREFRONT ACC_CODE( SID_MOREFRONT, KEY_ADD, FALSE, TRUE, FALSE )
#define AI_FRAME_TO_BOTTOM ACC_CODE( SID_FRAME_TO_BOTTOM, KEY_SUBTRACT, TRUE, TRUE, FALSE )
#define AI_MOREBACK ACC_CODE( SID_MOREBACK, KEY_SUBTRACT, FALSE, TRUE, FALSE )
// sonstige Acceleratoren
#define AI_NEWDOC ACC_CODE( SID_NEWDOC, KEY_N, TRUE, TRUE, FALSE )
#define AI_NEWDOCDIRECT ACC_CODE( SID_NEWDOCDIRECT, KEY_N, FALSE, TRUE, FALSE )
#define AI_OPENDOC ACC_CODE( SID_OPENDOC, KEY_O, FALSE, TRUE, FALSE ) \
ACC_CODE( SID_OPENDOC, KEY_OPEN, FALSE, FALSE, FALSE )
#define AI_CLOSEWIN ACC_CODE( SID_CLOSEWIN, KEY_W, FALSE, TRUE, FALSE ) \
ACC_CODE( SID_CLOSEWIN, KEY_F4, FALSE, TRUE, FALSE )
#define AI_SAVEDOC ACC_CODE( SID_SAVEDOC, KEY_S, FALSE, TRUE, FALSE )
#define AI_PRINTDOC ACC_CODE( SID_PRINTDOC, KEY_P, FALSE, TRUE, FALSE )
#define AI_QUITAPP ACC_CODE( SID_QUITAPP, KEY_Q, FALSE, TRUE, FALSE )
#define AI_CUT ACC_CODE( SID_CUT, KEY_X, FALSE, TRUE, FALSE ) \
ACC_CODE( SID_CUT, KEY_DELETE, TRUE, FALSE, FALSE ) \
ACC_CODE( SID_CUT, KEY_CUT, FALSE, FALSE, FALSE )
#define AI_COPY ACC_CODE( SID_COPY, KEY_C, FALSE, TRUE, FALSE ) \
ACC_CODE( SID_COPY, KEY_INSERT, FALSE, TRUE, FALSE ) \
ACC_CODE( SID_COPY, KEY_COPY, FALSE, FALSE, FALSE )
#define AI_PASTE ACC_CODE( SID_PASTE, KEY_V, FALSE, TRUE, FALSE ) \
ACC_CODE( SID_PASTE, KEY_INSERT, TRUE, FALSE, FALSE ) \
ACC_CODE( SID_PASTE, KEY_PASTE, FALSE, FALSE, FALSE )
#define AI_UNDO ACC_CODE( SID_UNDO, KEY_Z, FALSE, TRUE, FALSE ) \
ACC_CODE( SID_UNDO, KEY_BACKSPACE, FALSE, FALSE, TRUE ) \
ACC_CODE( SID_UNDO, KEY_UNDO, FALSE, FALSE, FALSE )
#define AI_REDO ACC_CODE( SID_REDO, KEY_Y, FALSE, TRUE, FALSE )
#define AI_REPEAT ACC_CODE( SID_REPEAT, KEY_REPEAT, FALSE, FALSE, FALSE )
#define AI_DELETE ACC_CODE( SID_DELETE, KEY_DELETE, FALSE, FALSE, FALSE )
// Non Product
#define AI_PIXELMODE ACC_CODE( SID_PIXELMODE, KEY_P, TRUE, TRUE, TRUE )
#define AI_ANIMATIONMODE ACC_CODE( SID_ANIMATIONMODE, KEY_A, TRUE, TRUE, TRUE )
#endif // _GLOBLACC_SRC
|