xref: /AOO41X/main/framework/inc/acceleratorconst.h (revision 228b45800f37c48ec026e4a769b73318d789ec60)
1*228b4580SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*228b4580SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*228b4580SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*228b4580SAndrew Rist  * distributed with this work for additional information
6*228b4580SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*228b4580SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*228b4580SAndrew Rist  * "License"); you may not use this file except in compliance
9*228b4580SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*228b4580SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*228b4580SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*228b4580SAndrew Rist  * software distributed under the License is distributed on an
15*228b4580SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*228b4580SAndrew Rist  * KIND, either express or implied.  See the License for the
17*228b4580SAndrew Rist  * specific language governing permissions and limitations
18*228b4580SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*228b4580SAndrew Rist  *************************************************************/
21*228b4580SAndrew Rist 
22*228b4580SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _FRAMEWORK_ACCELERATORCONST_H_
25cdf0e10cSrcweir #define _FRAMEWORK_ACCELERATORCONST_H_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir //_______________________________________________
28cdf0e10cSrcweir // own includes
29cdf0e10cSrcweir 
30cdf0e10cSrcweir #include <general.h>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir //_______________________________________________
33cdf0e10cSrcweir // interface includes
34cdf0e10cSrcweir 
35cdf0e10cSrcweir //_______________________________________________
36cdf0e10cSrcweir // other includes
37cdf0e10cSrcweir 
38cdf0e10cSrcweir namespace framework{
39cdf0e10cSrcweir 
40cdf0e10cSrcweir #define DOCTYPE_ACCELERATORS            DECLARE_ASCII("<!DOCTYPE accel:acceleratorlist PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"accelerator.dtd\">")
41cdf0e10cSrcweir 
42cdf0e10cSrcweir #define ATTRIBUTE_TYPE_CDATA		    DECLARE_ASCII("CDATA")
43cdf0e10cSrcweir 
44cdf0e10cSrcweir #define XMLNS_ACCEL                     DECLARE_ASCII("accel")
45cdf0e10cSrcweir #define XMLNS_XLINK	                    DECLARE_ASCII("xlink")
46cdf0e10cSrcweir 
47cdf0e10cSrcweir #define ATTRIBUTE_URL                   DECLARE_ASCII("href" )
48cdf0e10cSrcweir #define ATTRIBUTE_KEYCODE               DECLARE_ASCII("code" )
49cdf0e10cSrcweir #define ATTRIBUTE_MOD_SHIFT             DECLARE_ASCII("shift")
50cdf0e10cSrcweir #define ATTRIBUTE_MOD_MOD1              DECLARE_ASCII("mod1" )
51cdf0e10cSrcweir #define ATTRIBUTE_MOD_MOD2              DECLARE_ASCII("mod2" )
52cdf0e10cSrcweir #define ATTRIBUTE_MOD_MOD3              DECLARE_ASCII("mod3" )
53cdf0e10cSrcweir 
54cdf0e10cSrcweir // same items with a name space alias
55cdf0e10cSrcweir #define AL_ELEMENT_ACCELERATORLIST      DECLARE_ASCII("accel:acceleratorlist")
56cdf0e10cSrcweir #define AL_ELEMENT_ITEM				    DECLARE_ASCII("accel:item"           )
57cdf0e10cSrcweir 
58cdf0e10cSrcweir #define AL_XMLNS_ACCEL                  DECLARE_ASCII("xmlns:accel")
59cdf0e10cSrcweir #define AL_XMLNS_XLINK	                DECLARE_ASCII("xmlns:xlink")
60cdf0e10cSrcweir 
61cdf0e10cSrcweir #define AL_ATTRIBUTE_URL                DECLARE_ASCII("xlink:href" )
62cdf0e10cSrcweir #define AL_ATTRIBUTE_KEYCODE            DECLARE_ASCII("accel:code" )
63cdf0e10cSrcweir #define AL_ATTRIBUTE_MOD_SHIFT          DECLARE_ASCII("accel:shift")
64cdf0e10cSrcweir #define AL_ATTRIBUTE_MOD_MOD1           DECLARE_ASCII("accel:mod1" )
65cdf0e10cSrcweir #define AL_ATTRIBUTE_MOD_MOD2           DECLARE_ASCII("accel:mod2" )
66cdf0e10cSrcweir #define AL_ATTRIBUTE_MOD_MOD3           DECLARE_ASCII("accel:mod3" )
67cdf0e10cSrcweir 
68cdf0e10cSrcweir // same items with full qualified name space
69cdf0e10cSrcweir #define NS_ELEMENT_ACCELERATORLIST      DECLARE_ASCII("http://openoffice.org/2001/accel^acceleratorlist")
70cdf0e10cSrcweir #define NS_ELEMENT_ITEM                 DECLARE_ASCII("http://openoffice.org/2001/accel^item"           )
71cdf0e10cSrcweir 
72cdf0e10cSrcweir #define NS_XMLNS_ACCEL					DECLARE_ASCII("http://openoffice.org/2001/accel")
73cdf0e10cSrcweir #define NS_XMLNS_XLINK					DECLARE_ASCII("http://www.w3.org/1999/xlink"    )
74cdf0e10cSrcweir 
75cdf0e10cSrcweir #define NS_ATTRIBUTE_URL                DECLARE_ASCII("http://www.w3.org/1999/xlink^href"     )
76cdf0e10cSrcweir #define NS_ATTRIBUTE_KEYCODE            DECLARE_ASCII("http://openoffice.org/2001/accel^code" )
77cdf0e10cSrcweir #define NS_ATTRIBUTE_MOD_SHIFT          DECLARE_ASCII("http://openoffice.org/2001/accel^shift")
78cdf0e10cSrcweir #define NS_ATTRIBUTE_MOD_MOD1           DECLARE_ASCII("http://openoffice.org/2001/accel^mod1" )
79cdf0e10cSrcweir #define NS_ATTRIBUTE_MOD_MOD2           DECLARE_ASCII("http://openoffice.org/2001/accel^mod2" )
80cdf0e10cSrcweir #define NS_ATTRIBUTE_MOD_MOD3           DECLARE_ASCII("http://openoffice.org/2001/accel^mod3" )
81cdf0e10cSrcweir 
82cdf0e10cSrcweir } // namespace framework
83cdf0e10cSrcweir 
84cdf0e10cSrcweir #endif // _FRAMEWORK_ACCELERATORCONST_H_
85