office-gobmx/svx/inc/globlac.hrc
Ivo Hinkelmann 5c2bd551f8 INTEGRATION: CWS impress99 (1.13.448); FILE MERGED
2006/07/06 14:58:45 cl 1.13.448.1: #i66670# removed unused code
2006-08-01 08:27:07 +00:00

231 lines
15 KiB
Text

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: globlac.hrc,v $
*
* $Revision: 1.14 $
*
* last change: $Author: ihi $ $Date: 2006-08-01 09:27:07 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 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
*
************************************************************************/
#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