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