27 #ifndef _CEGUIFalagard_xmlHandler_h_ 28 #define _CEGUIFalagard_xmlHandler_h_ 30 #include "../ChainedXMLHandler.h" 31 #include "./Dimensions.h" 32 #include "../Window.h" 36 # pragma warning(push) 37 # pragma warning(disable : 4251) 44 class WidgetLookManager;
46 class WidgetComponent;
49 class LayerSpecification;
50 class SectionSpecification;
51 class ImageryComponent;
57 class PropertyDefinitionBase;
58 class EventLinkDefinition;
64 class CEGUIEXPORT Falagard_xmlHandler :
public ChainedXMLHandler
71 Falagard_xmlHandler(WidgetLookManager* mgr);
77 ~Falagard_xmlHandler();
80 static const String NativeVersion;
83 static const String PropertyDefinitionHelpDefaultValue;
86 static const String PropertyLinkDefinitionHelpDefaultValue;
89 static const String GenericDataType;
93 static const String ParentIdentifier;
99 static const String FalagardElement;
100 static const String WidgetLookElement;
101 static const String ChildElement;
102 static const String ImagerySectionElement;
103 static const String StateImageryElement;
104 static const String LayerElement;
105 static const String SectionElement;
106 static const String ImageryComponentElement;
107 static const String TextComponentElement;
108 static const String FrameComponentElement;
109 static const String AreaElement;
110 static const String ImageElement;
111 static const String ColoursElement;
112 static const String VertFormatElement;
113 static const String HorzFormatElement;
114 static const String VertAlignmentElement;
115 static const String HorzAlignmentElement;
116 static const String PropertyElement;
117 static const String DimElement;
118 static const String UnifiedDimElement;
119 static const String AbsoluteDimElement;
120 static const String ImageDimElement;
121 static const String ImagePropertyDimElement;
122 static const String WidgetDimElement;
123 static const String FontDimElement;
124 static const String PropertyDimElement;
125 static const String TextElement;
126 static const String ColourPropertyElement;
127 static const String ColourRectPropertyElement;
128 static const String NamedAreaElement;
129 static const String PropertyDefinitionElement;
130 static const String PropertyLinkDefinitionElement;
131 static const String PropertyLinkTargetElement;
132 static const String OperatorDimElement;
133 static const String VertFormatPropertyElement;
134 static const String HorzFormatPropertyElement;
135 static const String AreaPropertyElement;
136 static const String ImagePropertyElement;
137 static const String TextPropertyElement;
138 static const String FontPropertyElement;
139 static const String ColourElement;
140 static const String EventLinkDefinitionElement;
141 static const String EventLinkTargetElement;
142 static const String NamedAreaSourceElement;
145 static const String EventActionElement;
147 static const String VersionAttribute;
148 static const String TopLeftAttribute;
149 static const String TopRightAttribute;
150 static const String BottomLeftAttribute;
151 static const String BottomRightAttribute;
152 static const String TypeAttribute;
153 static const String NameAttribute;
154 static const String PriorityAttribute;
155 static const String SectionNameAttribute;
156 static const String NameSuffixAttribute;
157 static const String RendererAttribute;
158 static const String LookAttribute;
159 static const String ScaleAttribute;
160 static const String OffsetAttribute;
161 static const String ValueAttribute;
162 static const String DimensionAttribute;
163 static const String WidgetAttribute;
164 static const String StringAttribute;
165 static const String FontAttribute;
166 static const String InitialValueAttribute;
167 static const String ClippedAttribute;
168 static const String OperatorAttribute;
169 static const String PaddingAttribute;
170 static const String LayoutOnWriteAttribute;
171 static const String RedrawOnWriteAttribute;
172 static const String TargetPropertyAttribute;
173 static const String ControlPropertyAttribute;
174 static const String ColourAttribute;
175 static const String PropertyAttribute;
176 static const String ControlValueAttribute;
177 static const String ControlWidgetAttribute;
178 static const String HelpStringAttribute;
181 static const String EventAttribute;
183 static const String InheritsAttribute;
185 static const String AutoWindowAttribute;
187 static const String FireEventAttribute;
189 static const String ActionAttribute;
191 static const String ComponentAttribute;
197 void elementStartLocal(
const String& element,
198 const XMLAttributes& attributes);
199 void elementEndLocal(
const String& element);
206 typedef void (Falagard_xmlHandler::*ElementStartHandler)(
const XMLAttributes& attributes);
208 typedef void (Falagard_xmlHandler::*ElementEndHandler)();
210 typedef std::map<String, ElementStartHandler, StringFastLessCompare> ElementStartHandlerMap;
212 typedef std::map<String, ElementEndHandler, StringFastLessCompare> ElementEndHandlerMap;
217 static argb_t hexStringToARGB(
const String& str);
222 void assignAreaDimension(Dimension& dim);
223 void assignColours(
const ColourRect& colours);
229 void doBaseDimStart(
const BaseDim* dim);
235 void elementFalagardStart(
const XMLAttributes& attributes);
241 void elementWidgetLookStart(
const XMLAttributes& attributes);
247 void elementChildStart(
const XMLAttributes& attributes);
253 void elementImagerySectionStart(
const XMLAttributes& attributes);
259 void elementStateImageryStart(
const XMLAttributes& attributes);
265 void elementLayerStart(
const XMLAttributes& attributes);
271 void elementSectionStart(
const XMLAttributes& attributes);
277 void elementImageryComponentStart(
const XMLAttributes& attributes);
283 void elementTextComponentStart(
const XMLAttributes& attributes);
289 void elementFrameComponentStart(
const XMLAttributes& attributes);
295 void elementAreaStart(
const XMLAttributes& attributes);
301 void elementImageStart(
const XMLAttributes& attributes);
307 void elementColoursStart(
const XMLAttributes& attributes);
313 void elementVertFormatStart(
const XMLAttributes& attributes);
319 void elementHorzFormatStart(
const XMLAttributes& attributes);
325 void elementVertAlignmentStart(
const XMLAttributes& attributes);
331 void elementHorzAlignmentStart(
const XMLAttributes& attributes);
337 void elementPropertyStart(
const XMLAttributes& attributes);
343 void elementDimStart(
const XMLAttributes& attributes);
349 void elementUnifiedDimStart(
const XMLAttributes& attributes);
355 void elementAbsoluteDimStart(
const XMLAttributes& attributes);
361 void elementImageDimStart(
const XMLAttributes& attributes);
367 void elementImagePropertyDimStart(
const XMLAttributes& attributes);
373 void elementWidgetDimStart(
const XMLAttributes& attributes);
379 void elementFontDimStart(
const XMLAttributes& attributes);
385 void elementPropertyDimStart(
const XMLAttributes& attributes);
391 void elementTextStart(
const XMLAttributes& attributes);
397 void elementColourRectPropertyStart(
const XMLAttributes& attributes);
403 void elementNamedAreaStart(
const XMLAttributes& attributes);
409 void elementPropertyDefinitionStart(
const XMLAttributes& attributes);
415 void elementPropertyLinkDefinitionStart(
const XMLAttributes& attributes);
421 void elementOperatorDimStart(
const XMLAttributes& attributes);
427 void elementVertFormatPropertyStart(
const XMLAttributes& attributes);
433 void elementHorzFormatPropertyStart(
const XMLAttributes& attributes);
439 void elementAreaPropertyStart(
const XMLAttributes& attributes);
445 void elementImagePropertyStart(
const XMLAttributes& attributes);
451 void elementTextPropertyStart(
const XMLAttributes& attributes);
457 void elementFontPropertyStart(
const XMLAttributes& attributes);
463 void elementColourStart(
const XMLAttributes& attributes);
466 void elementPropertyLinkTargetStart(
const XMLAttributes& attributes);
469 void elementAnimationDefinitionStart(
const XMLAttributes& attributes);
472 void elementEventLinkDefinitionStart(
const XMLAttributes& attributes);
475 void elementEventLinkTargetStart(
const XMLAttributes& attributes);
478 void elementNamedAreaSourceStart(
const XMLAttributes& attributes);
480 void elementEventActionStart(
const XMLAttributes& attributes);
486 void elementFalagardEnd();
492 void elementWidgetLookEnd();
498 void elementChildEnd();
504 void elementImagerySectionEnd();
510 void elementStateImageryEnd();
516 void elementLayerEnd();
522 void elementSectionEnd();
528 void elementImageryComponentEnd();
534 void elementTextComponentEnd();
540 void elementFrameComponentEnd();
546 void elementAreaEnd();
552 void elementNamedAreaEnd();
558 void elementAnyDimEnd();
561 void elementPropertyLinkDefinitionEnd();
564 void elementEventLinkDefinitionEnd();
570 void registerElementStartHandler(
const String& element, ElementStartHandler handler);
576 void registerElementEndHandler(
const String& element, ElementEndHandler handler);
579 void processEventLinkTarget(
const String& widget,
const String& event);
584 WidgetLookManager* d_manager;
590 ElementStartHandlerMap d_startHandlersMap;
591 ElementEndHandlerMap d_endHandlersMap;
594 WidgetLookFeel* d_widgetlook;
595 WidgetComponent* d_childcomponent;
596 ImagerySection* d_imagerysection;
597 StateImagery* d_stateimagery;
598 LayerSpecification* d_layer;
599 SectionSpecification* d_section;
600 ImageryComponent* d_imagerycomponent;
601 ComponentArea* d_area;
602 Dimension d_dimension;
603 TextComponent* d_textcomponent;
604 NamedArea* d_namedArea;
605 FrameComponent* d_framecomponent;
608 CEGUI_VECTOR_ALLOC(BaseDim*)> d_dimStack;
610 PropertyDefinitionBase* d_propertyLink;
611 EventLinkDefinition* d_eventLink;
617 #if defined(_MSC_VER) 618 # pragma warning(pop) 621 #endif // end of guard _CEGUIFalagard_xmlHandler_h_ Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
uint32 argb_t
32 bit ARGB representation of a colour.
Definition: cegui/include/CEGUI/Colour.h:38