1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _FRAMEWORK_ACCELERATORCONST_H_
29 #define _FRAMEWORK_ACCELERATORCONST_H_
30 
31 //_______________________________________________
32 // own includes
33 
34 #include <general.h>
35 
36 //_______________________________________________
37 // interface includes
38 
39 //_______________________________________________
40 // other includes
41 
42 namespace framework{
43 
44 #define DOCTYPE_ACCELERATORS            DECLARE_ASCII("<!DOCTYPE accel:acceleratorlist PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"accelerator.dtd\">")
45 
46 #define ATTRIBUTE_TYPE_CDATA		    DECLARE_ASCII("CDATA")
47 
48 #define XMLNS_ACCEL                     DECLARE_ASCII("accel")
49 #define XMLNS_XLINK	                    DECLARE_ASCII("xlink")
50 
51 #define ATTRIBUTE_URL                   DECLARE_ASCII("href" )
52 #define ATTRIBUTE_KEYCODE               DECLARE_ASCII("code" )
53 #define ATTRIBUTE_MOD_SHIFT             DECLARE_ASCII("shift")
54 #define ATTRIBUTE_MOD_MOD1              DECLARE_ASCII("mod1" )
55 #define ATTRIBUTE_MOD_MOD2              DECLARE_ASCII("mod2" )
56 #define ATTRIBUTE_MOD_MOD3              DECLARE_ASCII("mod3" )
57 
58 // same items with a name space alias
59 #define AL_ELEMENT_ACCELERATORLIST      DECLARE_ASCII("accel:acceleratorlist")
60 #define AL_ELEMENT_ITEM				    DECLARE_ASCII("accel:item"           )
61 
62 #define AL_XMLNS_ACCEL                  DECLARE_ASCII("xmlns:accel")
63 #define AL_XMLNS_XLINK	                DECLARE_ASCII("xmlns:xlink")
64 
65 #define AL_ATTRIBUTE_URL                DECLARE_ASCII("xlink:href" )
66 #define AL_ATTRIBUTE_KEYCODE            DECLARE_ASCII("accel:code" )
67 #define AL_ATTRIBUTE_MOD_SHIFT          DECLARE_ASCII("accel:shift")
68 #define AL_ATTRIBUTE_MOD_MOD1           DECLARE_ASCII("accel:mod1" )
69 #define AL_ATTRIBUTE_MOD_MOD2           DECLARE_ASCII("accel:mod2" )
70 #define AL_ATTRIBUTE_MOD_MOD3           DECLARE_ASCII("accel:mod3" )
71 
72 // same items with full qualified name space
73 #define NS_ELEMENT_ACCELERATORLIST      DECLARE_ASCII("http://openoffice.org/2001/accel^acceleratorlist")
74 #define NS_ELEMENT_ITEM                 DECLARE_ASCII("http://openoffice.org/2001/accel^item"           )
75 
76 #define NS_XMLNS_ACCEL					DECLARE_ASCII("http://openoffice.org/2001/accel")
77 #define NS_XMLNS_XLINK					DECLARE_ASCII("http://www.w3.org/1999/xlink"    )
78 
79 #define NS_ATTRIBUTE_URL                DECLARE_ASCII("http://www.w3.org/1999/xlink^href"     )
80 #define NS_ATTRIBUTE_KEYCODE            DECLARE_ASCII("http://openoffice.org/2001/accel^code" )
81 #define NS_ATTRIBUTE_MOD_SHIFT          DECLARE_ASCII("http://openoffice.org/2001/accel^shift")
82 #define NS_ATTRIBUTE_MOD_MOD1           DECLARE_ASCII("http://openoffice.org/2001/accel^mod1" )
83 #define NS_ATTRIBUTE_MOD_MOD2           DECLARE_ASCII("http://openoffice.org/2001/accel^mod2" )
84 #define NS_ATTRIBUTE_MOD_MOD3           DECLARE_ASCII("http://openoffice.org/2001/accel^mod3" )
85 
86 } // namespace framework
87 
88 #endif // _FRAMEWORK_ACCELERATORCONST_H_
89