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
00029
00030 #ifndef _CEGUIScheme_xmlHandler_h_
00031 #define _CEGUIScheme_xmlHandler_h_
00032
00033 #include "CEGUIScheme.h"
00034 #include "CEGUIXMLHandler.h"
00035
00036
00037 namespace CEGUI
00038 {
00039
00044 class Scheme_xmlHandler : public XMLHandler
00045 {
00046 public:
00047
00048
00049
00057 Scheme_xmlHandler(Scheme* scheme) : d_scheme(scheme)
00058 {}
00059
00064 virtual ~Scheme_xmlHandler(void)
00065 {}
00066
00067
00068
00069
00074 virtual void elementStart(const String& element, const XMLAttributes& attributes);
00075 virtual void elementEnd(const String& element);
00076
00077 private:
00078
00079
00080
00081
00082 static const String GUISchemeElement;
00083 static const String ImagesetElement;
00084 static const String ImagesetFromImageElement;
00085 static const String FontElement;
00086 static const String WindowSetElement;
00087 static const String WindowFactoryElement;
00088 static const String WindowAliasElement;
00089 static const String FalagardMappingElement;
00090 static const String LookNFeelElement;
00091 static const String NameAttribute;
00092 static const String FilenameAttribute;
00093 static const String AliasAttribute;
00094 static const String TargetAttribute;
00095 static const String ResourceGroupAttribute;
00096 static const String WindowTypeAttribute;
00097 static const String TargetTypeAttribute;
00098 static const String LookNFeelAttribute;
00099 static const String WindowRendererSetElement;
00100 static const String WindowRendererFactoryElement;
00101 static const String WindowRendererAttribute;
00102
00107 void elementGUISchemeStart(const XMLAttributes& attributes);
00108
00113 void elementImagesetStart(const XMLAttributes& attributes);
00114
00119 void elementImagesetFromImageStart(const XMLAttributes& attributes);
00120
00125 void elementFontStart(const XMLAttributes& attributes);
00126
00131 void elementWindowSetStart(const XMLAttributes& attributes);
00132
00137 void elementWindowFactoryStart(const XMLAttributes& attributes);
00138
00143 void elementWindowRendererSetStart(const XMLAttributes& attributes);
00144
00149 void elementWindowRendererFactoryStart(const XMLAttributes& attributes);
00150
00155 void elementWindowAliasStart(const XMLAttributes& attributes);
00156
00161 void elementFalagardMappingStart(const XMLAttributes& attributes);
00162
00167 void elementLookNFeelStart(const XMLAttributes& attributes);
00168
00173 void elementGUISchemeEnd();
00174
00175
00176
00177
00178 Scheme* d_scheme;
00179 };
00180
00181 }
00182
00183 #endif // end of guard _CEGUIScheme_xmlHandler_h_