28 #ifndef _CEGUIFalXMLEnumHelper_h_
29 #define _CEGUIFalXMLEnumHelper_h_
31 #include "../String.h"
32 #include "../Window.h"
33 #include "CEGUI/falagard/Enums.h"
38 class FalagardXMLHelper;
52 return String(
"BottomAligned");
55 return String(
"CentreAligned");
61 return String(
"Stretched");
64 return String(
"TopAligned");
70 if (str ==
"CentreAligned")
73 else if (str ==
"BottomAligned")
76 else if (str ==
"Tiled")
79 else if (str ==
"Stretched")
99 return String(
"RightAligned");
102 return String(
"CentreAligned");
108 return String(
"Stretched");
111 return String(
"LeftAligned");
117 if (str ==
"CentreAligned")
120 else if (str ==
"RightAligned")
123 else if (str ==
"Tiled")
126 else if (str ==
"Stretched")
146 return String(
"BottomAligned");
149 return String(
"CentreAligned");
152 return String(
"TopAligned");
158 if (str ==
"CentreAligned")
161 else if (str ==
"BottomAligned")
181 return String(
"RightAligned");
184 return String(
"CentreAligned");
187 return String(
"LeftAligned");
193 if (str ==
"CentreAligned")
196 else if (str ==
"RightAligned")
216 return String(
"LeftEdge");
219 return String(
"XPosition");
225 return String(
"YPosition");
228 return String(
"RightEdge");
231 return String(
"BottomEdge");
252 if (str ==
"LeftEdge")
255 else if (str ==
"XPosition")
258 else if (str ==
"TopEdge")
261 else if (str ==
"YPosition")
264 else if (str ==
"RightEdge")
267 else if (str ==
"BottomEdge")
270 else if (str ==
"Width")
273 else if (str ==
"Height")
276 else if (str ==
"XOffset")
279 else if (str ==
"YOffset")
299 return String(
"BottomAligned");
302 return String(
"CentreAligned");
305 return String(
"TopAligned");
311 if (str ==
"CentreAligned")
314 else if (str ==
"BottomAligned")
334 return String(
"RightAligned");
337 return String(
"CentreAligned");
340 return String(
"Justified");
343 return String(
"WordWrapLeftAligned");
346 return String(
"WordWrapRightAligned");
349 return String(
"WordWrapCentreAligned");
352 return String(
"WordWrapJustified");
355 return String(
"LeftAligned");
361 if (str ==
"CentreAligned")
364 else if (str ==
"RightAligned")
367 else if (str ==
"Justified")
370 else if (str ==
"WordWrapLeftAligned")
373 else if (str ==
"WordWrapCentreAligned")
376 else if (str ==
"WordWrapRightAligned")
379 else if (str ==
"WordWrapJustified")
399 return String(
"Baseline");
402 return String(
"HorzExtent");
405 return String(
"LineSpacing");
411 if (str ==
"LineSpacing")
414 else if (str ==
"Baseline")
437 return String(
"Subtract");
440 return String(
"Multiply");
455 else if (str ==
"Subtract")
458 else if (str ==
"Multiply")
461 else if (str ==
"Divide")
481 return String(
"TopLeftCorner");
484 return String(
"TopRightCorner");
487 return String(
"BottomLeftCorner");
490 return String(
"BottomRightCorner");
493 return String(
"LeftEdge");
496 return String(
"RightEdge");
502 return String(
"BottomEdge");
505 return String(
"Background");
511 if (str ==
"TopLeftCorner")
514 if (str ==
"TopRightCorner")
517 if (str ==
"BottomLeftCorner")
520 if (str ==
"BottomRightCorner")
523 if (str ==
"LeftEdge")
526 if (str ==
"RightEdge")
529 if (str ==
"TopEdge")
532 if (str ==
"BottomEdge")
559 "Invalid enumeration value given."));
573 "' does not represent a ChildEventAction enumerated value."));
594 static const String& getDataTypeName()
596 static String type(
"VerticalFormatting");
603 return FalagardXMLHelper<return_type>::fromString(str);
608 return FalagardXMLHelper<return_type>::toString(val);
621 static const String& getDataTypeName()
623 static String type(
"HorizontalFormatting");
630 return FalagardXMLHelper<return_type>::fromString(str);
635 return FalagardXMLHelper<return_type>::toString(val);
648 static const String& getDataTypeName()
650 static String type(
"VerticalTextFormatting");
657 return FalagardXMLHelper<return_type>::fromString(str);
662 return FalagardXMLHelper<return_type>::toString(val);
675 static const String& getDataTypeName()
677 static String type(
"HorizontalTextFormatting");
684 return FalagardXMLHelper<return_type>::fromString(str);
689 return FalagardXMLHelper<return_type>::toString(val);