Crazy Eddie's GUI System  0.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGUI::GUILayout_xmlHandler Class Reference

Handler class used to parse the GUILayout XML files using SAX2. More...

+ Inheritance diagram for CEGUI::GUILayout_xmlHandler:
+ Collaboration diagram for CEGUI::GUILayout_xmlHandler:

Public Member Functions

 GUILayout_xmlHandler (PropertyCallback *callback=0, void *userdata=0)
 Constructor for GUILayout_xmlHandler objects.
 
virtual ~GUILayout_xmlHandler (void)
 Destructor for GUILayout_xmlHandler objects.
 
virtual const StringgetSchemaName () const
 Retrieves the schema file name to use with resources handled by this handler.
 
virtual const StringgetDefaultResourceGroup () const
 Retrieves the default resource group to be used when handling files.
 
virtual void elementStart (const String &element, const XMLAttributes &attributes)
 document processing (only care about elements, schema validates format)
 
virtual void elementEnd (const String &element)
 Method called to notify the handler at the end of each XML element encountered. More...
 
virtual void text (const String &text)
 Method called to notify text node, several successiv text node are agregated. More...
 
void cleanupLoadedWindows (void)
 Destroy all windows created so far.
 
WindowgetLayoutRootWindow (void) const
 Return a pointer to the 'root' window created.
 
- Public Member Functions inherited from CEGUI::XMLHandler
 XMLHandler (void)
 XMLHandler base class constructor.
 
virtual ~XMLHandler (void)
 XMLHandler base class destructor.
 
void handleContainer (const RawDataContainer &source)
 Takes given RawDataContainer containing XML and handles it. More...
 
void handleFile (const String &fileName, const String &resourceGroup)
 Takes given file containing XML and handles it. More...
 
void handleString (const String &source)
 Takes given string containing XML source and handles it. More...
 

Static Public Attributes

static const String NativeVersion
 The only version that we will allow to load.
 
static const String GUILayoutElement
 Tag name for GUILayout elements.
 
static const String LayoutImportElement
 Tag name for LayoutImport elements.
 
static const String EventElement
 Tag name for Event elements.
 
static const String LayoutImportFilenameAttribute
 Attribute name that stores the file name of the layout to import.
 
static const String LayoutImportResourceGroupAttribute
 Attribute name that stores the resource group identifier used when loading imported file.
 
static const String EventNameAttribute
 Attribute name that stores the event name to be subscribed.
 
static const String EventFunctionAttribute
 Attribute name that stores the name of the scripted function to be bound.
 
static const String GUILayoutVersionAttribute
 Attribute name that stores the xml file version.
 

Detailed Description

Handler class used to parse the GUILayout XML files using SAX2.

Member Function Documentation

virtual void CEGUI::GUILayout_xmlHandler::elementEnd ( const String element)
virtual

Method called to notify the handler at the end of each XML element encountered.

Parameters
elementString object holding the name of the element that is ending.
Returns
Nothing.

Reimplemented from CEGUI::XMLHandler.

virtual void CEGUI::GUILayout_xmlHandler::text ( const String text)
virtual

Method called to notify text node, several successiv text node are agregated.

Parameters
textString object holding the content of the text node.
Returns
Nothing.

Reimplemented from CEGUI::XMLHandler.