30 #ifndef _CEGUIGUILayout_xmlHandler_h_
31 #define _CEGUIGUILayout_xmlHandler_h_
33 #include "CEGUIWindowManager.h"
34 #include "CEGUIWindow.h"
35 #include "CEGUIXMLHandler.h"
59 d_namingPrefix(name_prefix),
60 d_propertyCallback(callback),
101 static const String GUILayoutElement;
102 static const String WindowElement;
103 static const String AutoWindowElement;
104 static const String PropertyElement;
105 static const String LayoutImportElement;
106 static const String EventElement;
107 static const String WindowTypeAttribute;
108 static const String WindowNameAttribute;
109 static const String AutoWindowNameSuffixAttribute;
110 static const String PropertyNameAttribute;
111 static const String PropertyValueAttribute;
112 static const String LayoutParentAttribute;
113 static const String LayoutImportFilenameAttribute;
114 static const String LayoutImportPrefixAttribute;
115 static const String LayoutImportResourceGroupAttribute;
116 static const String EventNameAttribute;
117 static const String EventFunctionAttribute;
135 void elementAutoWindowStart(
const XMLAttributes& attributes);
147 void elementLayoutImportStart(
const XMLAttributes& attributes);
159 void elementGUILayoutEnd();
165 void elementWindowEnd();
171 void elementAutoWindowEnd();
177 void elementPropertyEnd();
184 typedef std::pair<Window*,bool> WindowStackEntry;
185 typedef std::vector<WindowStackEntry> WindowStack;
188 String d_layoutParent;
189 const String& d_namingPrefix;
190 PropertyCallback* d_propertyCallback;
192 String d_propertyName;
193 String d_propertyValue;
200 #endif // end of guard _CEGUIGUILayout_xmlHandler_h_
virtual void elementEnd(const String &element)
Method called to notify the handler at the end of each XML element encountered.
GUILayout_xmlHandler(const String &name_prefix, PropertyCallback *callback=0, void *userdata=0)
Constructor for GUILayout_xmlHandler objects.
Definition: CEGUIGUILayout_xmlHandler.h:57
Handler class used to parse the GUILayout XML files using SAX2.
Definition: CEGUIGUILayout_xmlHandler.h:46
Definition: CEGUIXMLHandler.h:37
virtual void text(const String &text)
Method called to notify text node, several successiv text node are agregated.
Class representing a block of attributes associated with an XML element.
Definition: CEGUIXMLAttributes.h:47
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
virtual void elementStart(const String &element, const XMLAttributes &attributes)
document processing (only care about elements, schema validates format)
void cleanupLoadedWindows(void)
Destroy all windows created so far.
Window * getLayoutRootWindow(void) const
Return a pointer to the 'root' window created.
bool PropertyCallback(Window *window, String &propname, String &propvalue, void *userdata)
Function type that is used as a callback when loading layouts from XML; the function is called for ea...
Definition: CEGUIWindowManager.h:103
virtual ~GUILayout_xmlHandler(void)
Destructor for GUILayout_xmlHandler objects.
Definition: CEGUIGUILayout_xmlHandler.h:68
String class used within the GUI system.
Definition: CEGUIString.h:57