Update ooo320-m1
[ooovba.git] / framework / inc / acceleratorconst.h
blobd32a7752e780d5a2de2dad82bebcbd0e63fe79c6
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.h,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_ACCELERATORCONST_H_
32 #define _FRAMEWORK_ACCELERATORCONST_H_
34 //_______________________________________________
35 // own includes
37 #include <general.h>
39 //_______________________________________________
40 // interface includes
42 //_______________________________________________
43 // other includes
45 namespace framework{
47 #define DOCTYPE_ACCELERATORS DECLARE_ASCII("<!DOCTYPE accel:acceleratorlist PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"accelerator.dtd\">")
49 #define ATTRIBUTE_TYPE_CDATA DECLARE_ASCII("CDATA")
51 // items without any namespace value!
52 #define ELEMENT_ACCELERATORLIS DECLARE_ASCII("acceleratorlist")
53 #define ELEMENT_ITEM DECLARE_ASCII("item" )
55 #define XMLNS_ACCEL DECLARE_ASCII("accel")
56 #define XMLNS_XLINK DECLARE_ASCII("xlink")
58 #define ATTRIBUTE_URL DECLARE_ASCII("href" )
59 #define ATTRIBUTE_KEYCODE DECLARE_ASCII("code" )
60 #define ATTRIBUTE_MOD_SHIFT DECLARE_ASCII("shift")
61 #define ATTRIBUTE_MOD_MOD1 DECLARE_ASCII("mod1" )
62 #define ATTRIBUTE_MOD_MOD2 DECLARE_ASCII("mod2" )
63 #define ATTRIBUTE_MOD_MOD3 DECLARE_ASCII("mod3" )
65 // same items with a name space alias
66 #define AL_ELEMENT_ACCELERATORLIST DECLARE_ASCII("accel:acceleratorlist")
67 #define AL_ELEMENT_ITEM DECLARE_ASCII("accel:item" )
69 #define AL_XMLNS_ACCEL DECLARE_ASCII("xmlns:accel")
70 #define AL_XMLNS_XLINK DECLARE_ASCII("xmlns:xlink")
72 #define AL_ATTRIBUTE_URL DECLARE_ASCII("xlink:href" )
73 #define AL_ATTRIBUTE_KEYCODE DECLARE_ASCII("accel:code" )
74 #define AL_ATTRIBUTE_MOD_SHIFT DECLARE_ASCII("accel:shift")
75 #define AL_ATTRIBUTE_MOD_MOD1 DECLARE_ASCII("accel:mod1" )
76 #define AL_ATTRIBUTE_MOD_MOD2 DECLARE_ASCII("accel:mod2" )
77 #define AL_ATTRIBUTE_MOD_MOD3 DECLARE_ASCII("accel:mod3" )
79 // same items with full qualified name space
80 #define NS_ELEMENT_ACCELERATORLIST DECLARE_ASCII("http://openoffice.org/2001/accel^acceleratorlist")
81 #define NS_ELEMENT_ITEM DECLARE_ASCII("http://openoffice.org/2001/accel^item" )
83 #define NS_XMLNS_ACCEL DECLARE_ASCII("http://openoffice.org/2001/accel")
84 #define NS_XMLNS_XLINK DECLARE_ASCII("http://www.w3.org/1999/xlink" )
86 #define NS_ATTRIBUTE_URL DECLARE_ASCII("http://www.w3.org/1999/xlink^href" )
87 #define NS_ATTRIBUTE_KEYCODE DECLARE_ASCII("http://openoffice.org/2001/accel^code" )
88 #define NS_ATTRIBUTE_MOD_SHIFT DECLARE_ASCII("http://openoffice.org/2001/accel^shift")
89 #define NS_ATTRIBUTE_MOD_MOD1 DECLARE_ASCII("http://openoffice.org/2001/accel^mod1" )
90 #define NS_ATTRIBUTE_MOD_MOD2 DECLARE_ASCII("http://openoffice.org/2001/accel^mod2" )
91 #define NS_ATTRIBUTE_MOD_MOD3 DECLARE_ASCII("http://openoffice.org/2001/accel^mod3" )
93 // some storage related values (pathes, names of sub storages etcpp).
94 #define PRESET_DEFAULT_XML DECLARE_ASCII("default.xml")
95 #define PRESET_CURRENT_XML DECLARE_ASCII("current.xml")
97 } // namespace framework
99 #endif // _FRAMEWORK_ACCELERATORCONST_H_