Don't import ogdf namespace
[TortoiseGit.git] / ext / OGDF / src / fileformats / Ogml.cpp
blob1d724c3e333316712b0170d49f4a9949b32decc2
1 /*
2 * $Revision: 2597 $
4 * last checkin:
5 * $Author: gutwenger $
6 * $Date: 2012-07-15 19:26:11 +0200 (So, 15. Jul 2012) $
7 ***************************************************************/
9 /** \file
10 * \brief Contains diverse enumerations and string constants.
12 * \author Christian Wolf, Carsten Gutwenger
14 * \par License:
15 * This file is part of the Open Graph Drawing Framework (OGDF).
17 * \par
18 * Copyright (C)<br>
19 * See README.txt in the root directory of the OGDF installation for details.
21 * \par
22 * This program is free software; you can redistribute it and/or
23 * modify it under the terms of the GNU General Public License
24 * Version 2 or 3 as published by the Free Software Foundation;
25 * see the file LICENSE.txt included in the packaging of this file
26 * for details.
28 * \par
29 * This program is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU General Public License for more details.
34 * \par
35 * You should have received a copy of the GNU General Public
36 * License along with this program; if not, write to the Free
37 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
38 * Boston, MA 02110-1301, USA.
40 * \see http://www.gnu.org/copyleft/gpl.html
41 ***************************************************************/
44 #include <ogdf/fileformats/Ogml.h>
47 namespace ogdf
50 /// This vector contains the real names of all OGML tags
51 const String Ogml::s_tagNames[TAG_NUM] =
53 //"none"
54 "bool",
55 "composed",
56 "constraint",
57 "constraints",
58 "content",
59 "data",
60 "default",
61 "edge",
62 "edgeRef",
63 "edgeStyle",
64 "edgeStyleTemplate",
65 "template",
66 "endpoint",
67 "fill",
68 "font",
69 "graph",
70 "graphStyle",
71 "int",
72 "label",
73 "labelRef",
74 "labelStyle",
75 "labelStyleTemplate",
76 "template",
77 "layout",
78 "line",
79 "location",
80 "node",
81 "nodeRef",
82 "nodeStyle",
83 "nodeStyleTemplate",
84 "template",
85 "num",
86 "ogml",
87 "point",
88 "port",
89 "segment",
90 "shape",
91 "source",
92 "sourceStyle",
93 "string",
94 "structure",
95 "styles",
96 "styleTemplates",
97 "target",
98 "targetStyle",
99 "text",
100 "image"
104 // This vector contains the real names of all OGML attributes.
105 const String Ogml::s_attributeNames[ATT_NUM] =
107 "alignment",
108 "angle",
109 "color",
110 "decoration",
111 "defaultEdgeTemplate",
112 "defaultLabelTemplate",
113 "defaultNodeTemplate",
114 "family",
115 "height",
116 "id", // id attribute
117 "idRef", // attribute idRef of elements source, target, nodeRef, nodeStyle
118 "idRef", // attribute idRef of elements edgeRef, edgeStyle
119 "idRef", // attribute idRef of elements edgeRef, edgeStyle
120 "idRef", // attribute idRef of element endpoint
121 "idRef", // attribute idRef of element endpoint
122 "idRef", // attribute idRef of subelement template of element nodeStyle
123 "idRef", // attribute idRef of subelement template of element edgeStyle
124 "idRef", // attribute idRef of subelement template of element labelStyle
125 "idRef", // attribute idRef of subelement endpoint of element segment
126 "name",
127 "type", // attribute type of subelement line of tag nodeStyleTemplate
128 "type", // attribute type of subelement shape of tag nodeStyleTemplate
129 "pattern",
130 "patternColor",
131 "rotation",
132 "size",
133 "stretch",
134 "style",
135 "transform",
136 "type", // attribute type of subelements source-/targetStyle of tag edgeStyleTemplate
137 "uri",
138 "value",
139 "value",
140 "value",
141 "variant",
142 "weight",
143 "width",
144 "x",
145 "y",
146 "z",
147 "uri",
148 "style",
149 "alignment",
150 "drawLine",
151 "width",
152 "height",
153 "type",
154 "disabled"
158 // This vector contains the real names of all OGML values of attributes.
159 const String Ogml::s_attributeValueNames[ATT_VAL_NUM] = {
160 "any", // for any attributeValue
161 "blink",
162 "bold",
163 "bolder",
164 "bool",
165 "box",
166 "capitalize",
167 "center",
168 "checked",
169 "circle",
170 "condensed",
171 "cursive",
172 "dashed",
173 "esNoPen", // values for line style
174 "esSolid",
175 "esDash",
176 "esDot",
177 "esDashdot",
178 "esDashdotdot",
179 "diamond",
180 "dotted",
181 "double",
182 "doubleSlash",
183 "ellipse",
184 "expanded",
185 "extraCondensed",
186 "extraExpanded",
187 "fantasy",
188 "filledBox",
189 "filledCircle",
190 "filledDiamond",
191 "filledHalfBox",
192 "filledHalfCircle",
193 "filledHalfDiamond",
194 "filledHalfRhomb",
195 "filledRhomb",
196 "smurf",
197 "arrow",
198 "groove",
199 "halfBox",
200 "halfCircle",
201 "halfDiamond",
202 "halfRhomb",
203 "hexagon",
204 "hex",
205 "id",
206 "nodeId", // attribute idRef of elements source, target, nodeRef, nodeStyle
207 "edgeId", // attribute idRef of elements edgeRef, edgeStyle
208 "labelId", // attribute idRef of elements edgeRef, edgeStyle
209 "sourceId", // attribute idRef of element endpoint
210 "targetId", // attribute idRef of element endpoint
211 "nodeStyleTemplateId", // attribute idRef of subelement template of element nodeStyle
212 "edgeStyleTemplateId", // attribute idRef of subelement template of element edgeStyle
213 "labelStyleTemplateId", // attribute idRef of subelement template of element labelStyle
214 "pointId", // attribute idRef of subelement endpoint of element segment
215 "image",
216 "inset",
217 "int",
218 "italic",
219 "justify",
220 "left",
221 "lighter",
222 "line",
223 "lineThrough",
224 "lowercase",
225 "lParallelogram",
226 "monospace",
227 "narrower",
228 "none",
229 "normal",
230 "num",
231 "oblique",
232 "oct",
233 "octagon",
234 "outset",
235 "overline",
236 "pentagon",
237 "rect",
238 "rectSimple",
239 "rhomb",
240 "ridge",
241 "right",
242 "rParallelogram",
243 "sansSerif",
244 "semiCondensed",
245 "semiExpanded",
246 "serif",
247 "slash",
248 "smallCaps",
249 "solid",
250 "bpNone", // values for node patterns
251 "bpSolid",
252 "bpDense1",
253 "bpDense2",
254 "bpDense3",
255 "bpDense4",
256 "bpDense5",
257 "bpDense6",
258 "bpDense7",
259 "bpHorizontal",
260 "bpVertical",
261 "bpCross",
262 "bpBackwardDiagonal",
263 "bpForwardDiagonal",
264 "bpDiagonalCross",
265 "string",
266 "striped",
267 "trapeze",
268 "triangle",
269 "triple",
270 "ultraCondensed",
271 "ultraExpanded",
272 "umlClass",
273 "underline",
274 "uppercase",
275 "upTrapeze",
276 "uri",
277 "wider",
278 "freeScale", // image-style
279 "fixScale", // image-style
280 "topLeft", // image-alignemnt
281 "topCenter", // image-alignemnt
282 "topRight", // image-alignemnt
283 "centerLeft", // image-alignemnt
284 // "center", // just defined // image-alignemnt
285 "centerRight", // image-alignemnt
286 "bottomLeft", // image-alignemnt
287 "bottomCenter", // image-alignemnt
288 "bottomRight", // image-alignemnt
289 "Alignment",
290 "Anchor",
291 "Sequence"
295 static const String s_graphTypeS[] =
297 "graph",
298 "clusterGraph",
299 "compoundGraph",
300 "corruptCompoundGraph"
303 }; //namspace ogdf