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
00033
00034 namespace CEGUI
00035 {
00037 class CEGUIEXPORT Imageset_xmlHandler : public XMLHandler
00038 {
00039 public:
00041 Imageset_xmlHandler(const String& filename, const String& resource_group);
00042
00044 ~Imageset_xmlHandler();
00045
00047 const String& getObjectName() const;
00048
00050 Imageset& getObject() const;
00051
00052
00053 void elementStart(const String& element, const XMLAttributes& attributes);
00054 void elementEnd(const String& element);
00055
00056 private:
00058 void elementImagesetStart(const XMLAttributes& attributes);
00060 void elementImageStart(const XMLAttributes& attributes);
00062 void elementImagesetEnd();
00063
00065 static const String ImagesetSchemaName;
00067 static const String ImagesetElement;
00069 static const String ImageElement;
00071 static const String ImagesetNameAttribute;
00073 static const String ImagesetImageFileAttribute;
00075 static const String ImagesetResourceGroupAttribute;
00077 static const String ImagesetNativeHorzResAttribute;
00079 static const String ImagesetNativeVertResAttribute;
00081 static const String ImagesetAutoScaledAttribute;
00083 static const String ImageNameAttribute;
00085 static const String ImageXPosAttribute;
00087 static const String ImageYPosAttribute;
00089 static const String ImageWidthAttribute;
00091 static const String ImageHeightAttribute;
00093 static const String ImageXOffsetAttribute;
00095 static const String ImageYOffsetAttribute;
00096
00098 Imageset* d_imageset;
00100 mutable bool d_objectRead;
00101 };
00102
00103 }
00104
00105 #endif // end of guard _CEGUIImageset_xmlHandler_h_