00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _CEGUIScheme_xmlHandler_h_
00029 #define _CEGUIScheme_xmlHandler_h_
00030
00031 #include "CEGUIXMLHandler.h"
00032 #include "CEGUIString.h"
00033
00034
00035 namespace CEGUI
00036 {
00038 class CEGUIEXPORT Scheme_xmlHandler : public XMLHandler
00039 {
00040 public:
00042 Scheme_xmlHandler(const String& filename, const String& resource_group);
00043
00045 ~Scheme_xmlHandler();
00046
00048 const String& getObjectName() const;
00049
00051 Scheme& getObject() const;
00052
00053
00054 void elementStart(const String& element, const XMLAttributes& attributes);
00055 void elementEnd(const String& element);
00056
00057 private:
00059 static const String GUISchemeSchemaName;
00061 static const String GUISchemeElement;
00063 static const String ImagesetElement;
00065 static const String ImagesetFromImageElement;
00067 static const String FontElement;
00069 static const String WindowSetElement;
00071 static const String WindowFactoryElement;
00073 static const String WindowAliasElement;
00075 static const String FalagardMappingElement;
00077 static const String LookNFeelElement;
00079 static const String NameAttribute;
00081 static const String FilenameAttribute;
00083 static const String AliasAttribute;
00085 static const String TargetAttribute;
00087 static const String ResourceGroupAttribute;
00089 static const String WindowTypeAttribute;
00091 static const String TargetTypeAttribute;
00093 static const String LookNFeelAttribute;
00095 static const String WindowRendererSetElement;
00097 static const String WindowRendererFactoryElement;
00099 static const String WindowRendererAttribute;
00101 static const String RenderEffectAttribute;
00102
00104 void elementGUISchemeStart(const XMLAttributes& attributes);
00106 void elementImagesetStart(const XMLAttributes& attributes);
00108 void elementImagesetFromImageStart(const XMLAttributes& attributes);
00110 void elementFontStart(const XMLAttributes& attributes);
00112 void elementWindowSetStart(const XMLAttributes& attributes);
00114 void elementWindowFactoryStart(const XMLAttributes& attributes);
00116 void elementWindowRendererSetStart(const XMLAttributes& attributes);
00118 void elementWindowRendererFactoryStart(const XMLAttributes& attributes);
00120 void elementWindowAliasStart(const XMLAttributes& attributes);
00122 void elementFalagardMappingStart(const XMLAttributes& attributes);
00124 void elementLookNFeelStart(const XMLAttributes& attributes);
00126 void elementGUISchemeEnd();
00127
00129 Scheme* d_scheme;
00131 mutable bool d_objectRead;
00132 };
00133
00134 }
00135
00136 #endif // end of guard _CEGUIScheme_xmlHandler_h_