summaryrefslogtreecommitdiff
path: root/svx/inc/globlac.hrc
blob: b51334d0f801dbb1f5148f0e3bc91b28809f2468 (plain)
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
/*************************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * 
 * Copyright 2000, 2010 Oracle and/or its affiliates.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org 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 version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************/

#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 )

#endif // _GLOBLACC_SRC