1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _FRAMEWORK_ACCELERATORCONST_H_
21 #define _FRAMEWORK_ACCELERATORCONST_H_
28 #define DOCTYPE_ACCELERATORS DECLARE_ASCII("<!DOCTYPE accel:acceleratorlist PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"accelerator.dtd\">")
30 #define ATTRIBUTE_TYPE_CDATA DECLARE_ASCII("CDATA")
32 #define XMLNS_XLINK DECLARE_ASCII("xlink")
34 // same items with a name space alias
35 #define AL_ELEMENT_ACCELERATORLIST DECLARE_ASCII("accel:acceleratorlist")
36 #define AL_ELEMENT_ITEM DECLARE_ASCII("accel:item" )
38 #define AL_XMLNS_ACCEL DECLARE_ASCII("xmlns:accel")
39 #define AL_XMLNS_XLINK DECLARE_ASCII("xmlns:xlink")
41 #define AL_ATTRIBUTE_URL DECLARE_ASCII("xlink:href" )
42 #define AL_ATTRIBUTE_KEYCODE DECLARE_ASCII("accel:code" )
43 #define AL_ATTRIBUTE_MOD_SHIFT DECLARE_ASCII("accel:shift")
44 #define AL_ATTRIBUTE_MOD_MOD1 DECLARE_ASCII("accel:mod1" )
45 #define AL_ATTRIBUTE_MOD_MOD2 DECLARE_ASCII("accel:mod2" )
46 #define AL_ATTRIBUTE_MOD_MOD3 DECLARE_ASCII("accel:mod3" )
48 // same items with full qualified name space
49 #define NS_ELEMENT_ACCELERATORLIST DECLARE_ASCII("http://openoffice.org/2001/accel^acceleratorlist")
50 #define NS_ELEMENT_ITEM DECLARE_ASCII("http://openoffice.org/2001/accel^item" )
52 #define NS_XMLNS_ACCEL DECLARE_ASCII("http://openoffice.org/2001/accel")
53 #define NS_XMLNS_XLINK DECLARE_ASCII("http://www.w3.org/1999/xlink" )
55 #define NS_ATTRIBUTE_URL DECLARE_ASCII("http://www.w3.org/1999/xlink^href" )
56 #define NS_ATTRIBUTE_KEYCODE DECLARE_ASCII("http://openoffice.org/2001/accel^code" )
57 #define NS_ATTRIBUTE_MOD_SHIFT DECLARE_ASCII("http://openoffice.org/2001/accel^shift")
58 #define NS_ATTRIBUTE_MOD_MOD1 DECLARE_ASCII("http://openoffice.org/2001/accel^mod1" )
59 #define NS_ATTRIBUTE_MOD_MOD2 DECLARE_ASCII("http://openoffice.org/2001/accel^mod2" )
60 #define NS_ATTRIBUTE_MOD_MOD3 DECLARE_ASCII("http://openoffice.org/2001/accel^mod3" )
62 } // namespace framework
64 #endif // _FRAMEWORK_ACCELERATORCONST_H_
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */