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 _CEGUIImageset_xmlHandler_h_
00029 #define _CEGUIImageset_xmlHandler_h_
00030
00031 #include "CEGUIXMLHandler.h"
00032 #include "CEGUIString.h"
00033
00034
00035 namespace CEGUI
00036 {
00038 class CEGUIEXPORT Imageset_xmlHandler : public XMLHandler
00039 {
00040 public:
00042 Imageset_xmlHandler(const String& filename, const String& resource_group);
00043
00045 ~Imageset_xmlHandler();
00046
00048 const String& getObjectName() const;
00049
00051 Imageset& getObject() const;
00052
00053
00054 void elementStart(const String& element, const XMLAttributes& attributes);
00055 void elementEnd(const String& element);
00056
00057 private:
00059 void elementImagesetStart(const XMLAttributes& attributes);
00061 void elementImageStart(const XMLAttributes& attributes);
00063 void elementImagesetEnd();
00064
00066 static const String ImagesetSchemaName;
00068 static const String ImagesetElement;
00070 static const String ImageElement;
00072 static const String ImagesetNameAttribute;
00074 static const String ImagesetImageFileAttribute;
00076 static const String ImagesetResourceGroupAttribute;
00078 static const String ImagesetNativeHorzResAttribute;
00080 static const String ImagesetNativeVertResAttribute;
00082 static const String ImagesetAutoScaledAttribute;
00084 static const String ImageNameAttribute;
00086 static const String ImageXPosAttribute;
00088 static const String ImageYPosAttribute;
00090 static const String ImageWidthAttribute;
00092 static const String ImageHeightAttribute;
00094 static const String ImageXOffsetAttribute;
00096 static const String ImageYOffsetAttribute;
00097
00099 Imageset* d_imageset;
00101 mutable bool d_objectRead;
00102 };
00103
00104 }
00105
00106 #endif // end of guard _CEGUIImageset_xmlHandler_h_