29 #ifndef _CEGUIGUILayout_xmlHandler_h_
30 #define _CEGUIGUILayout_xmlHandler_h_
32 #include "CEGUI/WindowManager.h"
33 #include "CEGUI/Window.h"
34 #include "CEGUI/XMLHandler.h"
60 d_propertyCallback(callback),
130 void elementAutoWindowStart(
const XMLAttributes& attributes);
136 void elementUserStringStart(
const XMLAttributes& attributes);
148 void elementLayoutImportStart(
const XMLAttributes& attributes);
160 void elementWindowEnd();
166 void elementAutoWindowEnd();
172 void elementUserStringEnd();
178 void elementPropertyEnd();
185 typedef std::pair<Window*, bool> WindowStackEntry;
186 typedef std::vector<WindowStackEntry
187 CEGUI_VECTOR_ALLOC(WindowStackEntry)> WindowStack;
190 PropertyCallback* d_propertyCallback;
Handler class used to parse the GUILayout XML files using SAX2.
Definition: GUILayout_xmlHandler.h:46
static const String LayoutImportResourceGroupAttribute
Attribute name that stores the resource group identifier used when loading imported file.
Definition: GUILayout_xmlHandler.h:104
static const String GUILayoutElement
Tag name for GUILayout elements.
Definition: GUILayout_xmlHandler.h:100
virtual ~GUILayout_xmlHandler(void)
Destructor for GUILayout_xmlHandler objects.
Definition: GUILayout_xmlHandler.h:68
virtual const String & getDefaultResourceGroup() const
Retrieves the default resource group to be used when handling files.
static const String EventNameAttribute
Attribute name that stores the event name to be subscribed.
Definition: GUILayout_xmlHandler.h:105
static const String EventElement
Tag name for Event elements.
Definition: GUILayout_xmlHandler.h:102
virtual const String & getSchemaName() const
Retrieves the schema file name to use with resources handled by this handler.
static const String EventFunctionAttribute
Attribute name that stores the name of the scripted function to be bound.
Definition: GUILayout_xmlHandler.h:106
virtual void elementEnd(const String &element)
Method called to notify the handler at the end of each XML element encountered.
virtual void elementStart(const String &element, const XMLAttributes &attributes)
document processing (only care about elements, schema validates format)
static const String LayoutImportFilenameAttribute
Attribute name that stores the file name of the layout to import.
Definition: GUILayout_xmlHandler.h:103
static const String GUILayoutVersionAttribute
Attribute name that stores the xml file version.
Definition: GUILayout_xmlHandler.h:107
static const String LayoutImportElement
Tag name for LayoutImport elements.
Definition: GUILayout_xmlHandler.h:101
GUILayout_xmlHandler(PropertyCallback *callback=0, void *userdata=0)
Constructor for GUILayout_xmlHandler objects.
Definition: GUILayout_xmlHandler.h:58
static const String NativeVersion
The only version that we will allow to load.
Definition: GUILayout_xmlHandler.h:49
virtual void text(const String &text)
Method called to notify text node, several successiv text node are agregated.
Window * getLayoutRootWindow(void) const
Return a pointer to the 'root' window created.
void cleanupLoadedWindows(void)
Destroy all windows created so far.
String class used within the GUI system.
Definition: String.h:64
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: WindowManager.h:105
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:151
Class representing a block of attributes associated with an XML element.
Definition: XMLAttributes.h:48
Definition: XMLHandler.h:37
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1