xref: /AOO41X/main/sd/source/ui/app/accelids_tmpl.src (revision e33492276f639ebe26fc2b5c7b0b687b13d47e4b)
1*66220049SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*66220049SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*66220049SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*66220049SAndrew Rist * distributed with this work for additional information
6*66220049SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*66220049SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*66220049SAndrew Rist * "License"); you may not use this file except in compliance
9*66220049SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*66220049SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*66220049SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*66220049SAndrew Rist * software distributed under the License is distributed on an
15*66220049SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*66220049SAndrew Rist * KIND, either express or implied.  See the License for the
17*66220049SAndrew Rist * specific language governing permissions and limitations
18*66220049SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*66220049SAndrew Rist *************************************************************/
21*66220049SAndrew Rist
22*66220049SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef _ACCELIDS_SRC
27cdf0e10cSrcweir#define _ACCELIDS_SRC
28cdf0e10cSrcweir
29cdf0e10cSrcweir#define AI( Id, c, bSh, bM1, bM2 ) \
30cdf0e10cSrcweir                AcceleratorItem { Identifier = Id; \
31cdf0e10cSrcweir                    Key = KeyCode { Code = c ; \
32cdf0e10cSrcweir                                Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; }; };
33cdf0e10cSrcweir
34cdf0e10cSrcweir#define AIF( Id, f ) \
35cdf0e10cSrcweir                AcceleratorItem { Identifier = Id; \
36cdf0e10cSrcweir                    Key = KeyCode { Function = f ; }; };
37cdf0e10cSrcweir
38cdf0e10cSrcweir#define KC( language, c, bSh, bM1, bM2 ) \
39cdf0e10cSrcweir                    Key[ language ] = KeyCode { Code = c ; \
40cdf0e10cSrcweir                                Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; };
41cdf0e10cSrcweir
42cdf0e10cSrcweir#define KCD( c, bSh, bM1, bM2 ) \
43cdf0e10cSrcweir                    Key = KeyCode { Code = c ; \
44cdf0e10cSrcweir                                Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; };
45cdf0e10cSrcweir
46cdf0e10cSrcweir#endif // _ACCELIDS_SRC
47cdf0e10cSrcweir
48cdf0e10cSrcweir
49cdf0e10cSrcweir
50cdf0e10cSrcweir
51