merge the formfield patch from ooo-build
[ooovba.git] / framework / inc / xml / acceleratorconst.hxx
blob8714573e367b46f782e21c760c1613ac3a894fd4
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: acceleratorconst.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _FRAMEWORK_XML_ACCELERATORCONST_HXX_
32 #define _FRAMEWORK_XML_ACCELERATORCONST_HXX_
34 //_______________________________________________
35 // own includes
37 #include <general.h>
39 //_______________________________________________
40 // interface includes
42 //_______________________________________________
43 // other includes
44 #include <rtl/ustring.hxx>
46 namespace framework{
48 #define DOCTYPE_ACCELERATORS DECLARE_ASCII("<!DOCTYPE accel:acceleratorlist PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"accelerator.dtd\">")
50 #define ATTRIBUTE_TYPE_CDATA DECLARE_ASCII("CDATA")
52 // items without any namespace value!
53 #define ELEMENT_ACCELERATORLIS DECLARE_ASCII("acceleratorlist")
54 #define ELEMENT_ITEM DECLARE_ASCII("item" )
56 #define XMLNS_ACCEL DECLARE_ASCII("accel")
57 #define XMLNS_XLINK DECLARE_ASCII("xlink")
59 #define ATTRIBUTE_URL DECLARE_ASCII("href" )
60 #define ATTRIBUTE_KEYCODE DECLARE_ASCII("code" )
61 #define ATTRIBUTE_MOD_SHIFT DECLARE_ASCII("shift")
62 #define ATTRIBUTE_MOD_MOD1 DECLARE_ASCII("mod1" )
63 #define ATTRIBUTE_MOD_MOD2 DECLARE_ASCII("mod2" )
64 #define ATTRIBUTE_MOD_MOD3 DECLARE_ASCII("mod3" )
66 // same items with a name space alias
67 #define AL_ELEMENT_ACCELERATORLIST DECLARE_ASCII("accel:acceleratorlist")
68 #define AL_ELEMENT_ITEM DECLARE_ASCII("accel:item" )
70 #define AL_XMLNS_ACCEL DECLARE_ASCII("xmlns:accel")
71 #define AL_XMLNS_XLINK DECLARE_ASCII("xmlns:xlink")
73 #define AL_ATTRIBUTE_URL DECLARE_ASCII("xlink^href" )
74 #define AL_ATTRIBUTE_KEYCODE DECLARE_ASCII("accel^code" )
75 #define AL_ATTRIBUTE_MOD_SHIFT DECLARE_ASCII("accel^shift")
76 #define AL_ATTRIBUTE_MOD_MOD1 DECLARE_ASCII("accel^mod1" )
77 #define AL_ATTRIBUTE_MOD_MOD2 DECLARE_ASCII("accel^mod2" )
78 #define AL_ATTRIBUTE_MOD_MOD3 DECLARE_ASCII("accel^mod3" )
80 // same items with full qualified name space
81 #define NS_ELEMENT_ACCELERATORLIST DECLARE_ASCII("http://openoffice.org/2001/accel^acceleratorlist")
82 #define NS_ELEMENT_ITEM DECLARE_ASCII("http://openoffice.org/2001/accel^item" )
84 #define NS_XMLNS_ACCEL DECLARE_ASCII("http://openoffice.org/2001/accel")
85 #define NS_XMLNS_XLINK DECLARE_ASCII("http://www.w3.org/1999/xlink" )
87 #define NS_ATTRIBUTE_URL DECLARE_ASCII("http://www.w3.org/1999/xlink^href" )
88 #define NS_ATTRIBUTE_KEYCODE DECLARE_ASCII("http://openoffice.org/2001/accel^code" )
89 #define NS_ATTRIBUTE_MOD_SHIFT DECLARE_ASCII("http://openoffice.org/2001/accel^shift")
90 #define NS_ATTRIBUTE_MOD_MOD1 DECLARE_ASCII("http://openoffice.org/2001/accel^mod1" )
91 #define NS_ATTRIBUTE_MOD_MOD2 DECLARE_ASCII("http://openoffice.org/2001/accel^mod2" )
93 } // namespace framework
95 #endif // _FRAMEWORK_XML_ACCELERATORCONST_HXX_