27 #ifndef _CEGUIFalXMLEnumHelper_h_
28 #define _CEGUIFalXMLEnumHelper_h_
30 #include "../String.h"
31 #include "../Window.h"
32 #include "CEGUI/falagard/Enums.h"
69 if (str == CentreAligned)
72 else if (str == BottomAligned)
75 else if (str == Tiled)
78 else if (str == Stretched)
108 return CentreAligned;
123 if (str == CentreAligned)
126 else if (str == RightAligned)
129 else if (str == Tiled)
132 else if (str == Stretched)
159 return BottomAligned;
162 return CentreAligned;
171 if (str == CentreAligned)
174 else if (str == BottomAligned)
202 return CentreAligned;
211 if (str == CentreAligned)
214 else if (str == RightAligned)
278 else if (str == XPosition)
281 else if (str == TopEdge)
284 else if (str == YPosition)
287 else if (str == RightEdge)
290 else if (str == BottomEdge)
293 else if (str == Width)
296 else if (str == Height)
299 else if (str == XOffset)
302 else if (str == YOffset)
335 return BottomAligned;
338 return CentreAligned;
347 if (str == CentreAligned)
350 else if (str == BottomAligned)
378 return CentreAligned;
384 return WordWrapLeftAligned;
387 return WordWrapRightAligned;
390 return WordWrapCentreAligned;
393 return WordWrapJustified;
402 if (str == CentreAligned)
405 else if (str == RightAligned)
408 else if (str == Justified)
411 else if (str == WordWrapLeftAligned)
414 else if (str == WordWrapCentreAligned)
417 else if (str == WordWrapRightAligned)
420 else if (str == WordWrapJustified)
462 if (str == LineSpacing)
465 else if (str == Baseline)
510 else if (str == Subtract)
513 else if (str == Multiply)
516 else if (str == Divide)
542 return TopLeftCorner;
545 return TopRightCorner;
548 return BottomLeftCorner;
551 return BottomRightCorner;
572 if (str == TopLeftCorner)
575 if (str == TopRightCorner)
578 if (str == BottomLeftCorner)
581 if (str == BottomRightCorner)
587 if (str == RightEdge)
593 if (str == BottomEdge)
630 "Invalid enumeration value given."));
644 "' does not represent a ChildEventAction enumerated value."));
668 static const String& getDataTypeName()
670 static String type(
"VerticalFormatting");
695 static const String& getDataTypeName()
697 static String type(
"HorizontalFormatting");
722 static const String& getDataTypeName()
724 static String type(
"VerticalTextFormatting");
749 static const String& getDataTypeName()
751 static String type(
"HorizontalTextFormatting");