28 #ifndef _CEGUIFalagard_xmlHandler_h_
29 #define _CEGUIFalagard_xmlHandler_h_
31 #include "../CEGUIXMLHandler.h"
32 #include "../CEGUIcolour.h"
33 #include "CEGUIFalDimensions.h"
34 #include "../CEGUIWindow.h"
41 class WidgetLookManager;
43 class WidgetComponent;
46 class LayerSpecification;
47 class SectionSpecification;
48 class ImageryComponent;
89 typedef std::map<String, ElementStartHandler, String::FastLessCompare> ElementStartHandlerMap;
91 typedef std::map<String, ElementEndHandler, String::FastLessCompare> ElementEndHandlerMap;
97 static const String FalagardElement;
98 static const String WidgetLookElement;
99 static const String ChildElement;
100 static const String ImagerySectionElement;
101 static const String StateImageryElement;
102 static const String LayerElement;
103 static const String SectionElement;
104 static const String ImageryComponentElement;
105 static const String TextComponentElement;
106 static const String FrameComponentElement;
107 static const String AreaElement;
108 static const String ImageElement;
109 static const String ColoursElement;
110 static const String VertFormatElement;
111 static const String HorzFormatElement;
112 static const String VertAlignmentElement;
113 static const String HorzAlignmentElement;
114 static const String PropertyElement;
115 static const String DimElement;
116 static const String UnifiedDimElement;
117 static const String AbsoluteDimElement;
118 static const String ImageDimElement;
119 static const String WidgetDimElement;
120 static const String FontDimElement;
121 static const String PropertyDimElement;
122 static const String TextElement;
123 static const String ColourPropertyElement;
124 static const String ColourRectPropertyElement;
125 static const String NamedAreaElement;
126 static const String PropertyDefinitionElement;
127 static const String PropertyLinkDefinitionElement;
128 static const String DimOperatorElement;
129 static const String VertFormatPropertyElement;
130 static const String HorzFormatPropertyElement;
131 static const String AreaPropertyElement;
132 static const String ImagePropertyElement;
133 static const String TextPropertyElement;
134 static const String FontPropertyElement;
135 static const String ColourElement;
137 static const String TopLeftAttribute;
138 static const String TopRightAttribute;
139 static const String BottomLeftAttribute;
140 static const String BottomRightAttribute;
141 static const String ImagesetAttribute;
142 static const String ImageAttribute;
143 static const String TypeAttribute;
144 static const String NameAttribute;
145 static const String PriorityAttribute;
146 static const String SectionNameAttribute;
147 static const String NameSuffixAttribute;
148 static const String RendererAttribute;
149 static const String LookAttribute;
150 static const String ScaleAttribute;
151 static const String OffsetAttribute;
152 static const String ValueAttribute;
153 static const String DimensionAttribute;
154 static const String WidgetAttribute;
155 static const String StringAttribute;
156 static const String FontAttribute;
157 static const String InitialValueAttribute;
158 static const String ClippedAttribute;
159 static const String OperatorAttribute;
160 static const String PaddingAttribute;
161 static const String LayoutOnWriteAttribute;
162 static const String RedrawOnWriteAttribute;
163 static const String TargetPropertyAttribute;
164 static const String ControlPropertyAttribute;
165 static const String ColourAttribute;
175 void assignAreaDimension(
Dimension& dim);
176 void assignColours(
const ColourRect& colours);
182 void doBaseDimStart(
const BaseDim* dim);
194 void elementWidgetLookStart(
const XMLAttributes& attributes);
206 void elementImagerySectionStart(
const XMLAttributes& attributes);
212 void elementStateImageryStart(
const XMLAttributes& attributes);
230 void elementImageryComponentStart(
const XMLAttributes& attributes);
236 void elementTextComponentStart(
const XMLAttributes& attributes);
242 void elementFrameComponentStart(
const XMLAttributes& attributes);
266 void elementVertFormatStart(
const XMLAttributes& attributes);
272 void elementHorzFormatStart(
const XMLAttributes& attributes);
278 void elementVertAlignmentStart(
const XMLAttributes& attributes);
284 void elementHorzAlignmentStart(
const XMLAttributes& attributes);
302 void elementUnifiedDimStart(
const XMLAttributes& attributes);
308 void elementAbsoluteDimStart(
const XMLAttributes& attributes);
332 void elementPropertyDimStart(
const XMLAttributes& attributes);
344 void elementColourPropertyStart(
const XMLAttributes& attributes);
350 void elementColourRectPropertyStart(
const XMLAttributes& attributes);
362 void elementPropertyDefinitionStart(
const XMLAttributes& attributes);
368 void elementPropertyLinkDefinitionStart(
const XMLAttributes& attributes);
374 void elementDimOperatorStart(
const XMLAttributes& attributes);
380 void elementVertFormatPropertyStart(
const XMLAttributes& attributes);
386 void elementHorzFormatPropertyStart(
const XMLAttributes& attributes);
392 void elementAreaPropertyStart(
const XMLAttributes& attributes);
398 void elementImagePropertyStart(
const XMLAttributes& attributes);
404 void elementTextPropertyStart(
const XMLAttributes& attributes);
410 void elementFontPropertyStart(
const XMLAttributes& attributes);
422 void elementFalagardEnd();
428 void elementWidgetLookEnd();
434 void elementChildEnd();
440 void elementImagerySectionEnd();
446 void elementStateImageryEnd();
452 void elementLayerEnd();
458 void elementSectionEnd();
464 void elementImageryComponentEnd();
470 void elementTextComponentEnd();
476 void elementFrameComponentEnd();
482 void elementAreaEnd();
488 void elementNamedAreaEnd();
494 void elementAnyDimEnd();
500 void registerElementStartHandler(
const String& element, ElementStartHandler handler);
506 void registerElementEndHandler(
const String& element, ElementEndHandler handler);
517 ElementStartHandlerMap d_startHandlersMap;
518 ElementEndHandlerMap d_endHandlersMap;
534 std::vector<BaseDim*> d_dimStack;
540 #endif // end of guard _CEGUIFalagard_xmlHandler_h_