Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/util/doxygen/src/cmdmapper.cpp

Source at commit 1322 created 9 years 5 months ago.
By meklort, Add doxygen to utils folder
1/******************************************************************************
2 *
3 *
4 *
5 *
6 * Copyright (C) 1997-2011 by Dimitri van Heesch.
7 *
8 * Permission to use, copy, modify, and distribute this software and its
9 * documentation under the terms of the GNU General Public License is hereby
10 * granted. No representations are made about the suitability of this software
11 * for any purpose. It is provided "as is" without express or implied warranty.
12 * See the GNU General Public License for more details.
13 *
14 * Documents produced by Doxygen are derivative works derived from the
15 * input used in their production; they are not affected by this license.
16 *
17 */
18
19#include "cmdmapper.h"
20
21CommandMap cmdMap[] =
22{
23 { "a", CMD_EMPHASIS },
24 { "addindex", CMD_ADDINDEX },
25 { "anchor", CMD_ANCHOR },
26 { "arg", CMD_LI },
27 { "attention", CMD_ATTENTION },
28 { "author", CMD_AUTHOR },
29 { "authors", CMD_AUTHORS },
30 { "b", CMD_BOLD },
31 { "c", CMD_CODE },
32 { "code", CMD_STARTCODE },
33 { "copydoc", CMD_COPYDOC },
34 { "copybrief", CMD_COPYBRIEF },
35 { "copydetails", CMD_COPYDETAILS },
36 { "date", CMD_DATE },
37 { "dontinclude", CMD_DONTINCLUDE },
38 { "dotfile", CMD_DOTFILE },
39 { "e", CMD_EMPHASIS },
40 { "em", CMD_EMPHASIS },
41 { "endcode", CMD_ENDCODE },
42 { "endhtmlonly", CMD_ENDHTMLONLY },
43 { "endlatexonly", CMD_ENDLATEXONLY },
44 { "endlink", CMD_ENDLINK },
45 { "endsecreflist", CMD_ENDSECREFLIST },
46 { "endverbatim", CMD_ENDVERBATIM },
47 { "endxmlonly", CMD_ENDXMLONLY },
48 { "exception", CMD_EXCEPTION },
49 { "form", CMD_FORMULA },
50 { "htmlinclude", CMD_HTMLINCLUDE },
51 { "htmlonly", CMD_HTMLONLY },
52 { "image", CMD_IMAGE },
53 { "include", CMD_INCLUDE },
54 { "internal", CMD_INTERNAL },
55 { "invariant", CMD_INVARIANT },
56 { "javalink", CMD_JAVALINK },
57 { "latexonly", CMD_LATEXONLY },
58 { "li", CMD_LI },
59 { "line", CMD_LINE },
60 { "link", CMD_LINK },
61 { "n", CMD_LINEBREAK },
62 { "note", CMD_NOTE },
63 { "p", CMD_CODE },
64 { "par", CMD_PAR },
65 { "param", CMD_PARAM },
66 { "post", CMD_POST },
67 { "pre", CMD_PRE },
68 { "ref", CMD_REF },
69 { "refitem", CMD_SECREFITEM },
70 { "remark", CMD_REMARK },
71 { "remarks", CMD_REMARK },
72 { "result", CMD_RETURN },
73 { "return", CMD_RETURN },
74 { "returns", CMD_RETURN },
75 { "retval", CMD_RETVAL },
76 { "sa", CMD_SA },
77 { "secreflist", CMD_SECREFLIST },
78 { "section", CMD_SECTION },
79 { "subpage", CMD_SUBPAGE },
80 { "subsection", CMD_SUBSECTION },
81 { "subsubsection", CMD_SUBSUBSECTION },
82 { "paragraph", CMD_PARAGRAPH },
83 { "see", CMD_SA },
84 { "since", CMD_SINCE },
85 { "skip", CMD_SKIP },
86 { "skipline", CMD_SKIPLINE },
87 { "xmlonly", CMD_XMLONLY },
88 { "xrefitem", CMD_XREFITEM },
89 { "throw", CMD_EXCEPTION },
90 { "until", CMD_UNTIL },
91 { "verbatim", CMD_VERBATIM },
92 { "verbinclude", CMD_VERBINCLUDE },
93 { "version", CMD_VERSION },
94 { "warning", CMD_WARNING },
95 { "throws", CMD_EXCEPTION },
96 { "tparam", CMD_TPARAM },
97 { "\\", CMD_BSLASH },
98 { "@", CMD_AT },
99 { "<", CMD_LESS },
100 { ">", CMD_GREATER },
101 { "&", CMD_AMP },
102 { "$", CMD_DOLLAR },
103 { "#", CMD_HASH },
104 { "%", CMD_PERCENT },
105 { "::", CMD_DCOLON },
106 { "\"", CMD_QUOTE },
107 { "_internalref", CMD_INTERNALREF },
108 { "dot", CMD_DOT },
109 { "msc", CMD_MSC },
110 { "enddot", CMD_ENDDOT },
111 { "endmsc", CMD_ENDMSC },
112 { "manonly", CMD_MANONLY },
113 { "endmanonly", CMD_ENDMANONLY },
114 { "includelineno", CMD_INCWITHLINES },
115 { "inheritdoc", CMD_INHERITDOC },
116 { "mscfile", CMD_MSCFILE },
117 { 0, 0 },
118};
119
120//----------------------------------------------------------------------------
121
122CommandMap htmlTagMap[] =
123{
124 { "strong", HTML_BOLD },
125 { "center", HTML_CENTER },
126 { "table", HTML_TABLE },
127 { "caption", HTML_CAPTION },
128 { "small", HTML_SMALL },
129 { "code", HTML_CODE },
130 { "dfn", HTML_CODE },
131 { "var", HTML_EMPHASIS },
132 { "img", HTML_IMG },
133 { "pre", HTML_PRE },
134 { "sub", HTML_SUB },
135 { "sup", HTML_SUP },
136 { "tr", HTML_TR },
137 { "td", HTML_TD },
138 { "th", HTML_TH },
139 { "ol", HTML_OL },
140 { "ul", HTML_UL },
141 { "li", HTML_LI },
142 { "tt", XML_C /*HTML_CODE*/ },
143 { "kbd", XML_C /*HTML_CODE*/ },
144 { "em", HTML_EMPHASIS },
145 { "hr", HTML_HR },
146 { "dl", HTML_DL },
147 { "dt", HTML_DT },
148 { "dd", HTML_DD },
149 { "br", HTML_BR },
150 { "i", HTML_EMPHASIS },
151 { "a", HTML_A },
152 { "b", HTML_BOLD },
153 { "p", HTML_P },
154 { "h1", HTML_H1 },
155 { "h2", HTML_H2 },
156 { "h3", HTML_H3 },
157 { "h4", HTML_H4 },
158 { "h5", HTML_H5 },
159 { "h6", HTML_H6 },
160 { "span", HTML_SPAN },
161 { "div", HTML_DIV },
162
163 { "c", XML_C },
164 // { "code", XML_CODE }, <= ambiguous <code> is also a HTML tag
165 { "description", XML_DESCRIPTION },
166 { "example", XML_EXAMPLE },
167 { "exception", XML_EXCEPTION },
168 { "include", XML_INCLUDE },
169 { "item", XML_ITEM },
170 { "list", XML_LIST }, // type="table|bullet|number"
171 { "listheader", XML_LISTHEADER },
172 { "para", XML_PARA },
173 { "param", XML_PARAM },
174 { "paramref", XML_PARAMREF },
175 { "typeparam", XML_TYPEPARAM },
176 { "typeparamref", XML_TYPEPARAMREF },
177 { "permission", XML_PERMISSION },
178 { "remarks", XML_REMARKS },
179 { "returns", XML_RETURNS },
180 { "see", XML_SEE },
181 { "seealso", XML_SEEALSO },
182 { "summary", XML_SUMMARY },
183 { "term", XML_TERM },
184 { "value", XML_VALUE },
185 { 0, 0 }
186};
187
188//----------------------------------------------------------------------------
189
190Mapper *Mappers::cmdMapper = new Mapper(cmdMap,TRUE);
191Mapper *Mappers::htmlTagMapper = new Mapper(htmlTagMap,FALSE);
192
193void Mappers::freeMappers()
194{
195 delete cmdMapper; cmdMapper = 0;
196 delete htmlTagMapper; htmlTagMapper = 0;
197}
198
199
200

Archive Download this file

Revision: 1322