00001
00002
00014 #ifndef _FontXML_H_
00015 #define _FontXML_H_
00016
00017 #include "BaseXML.h"
00018
00019 #include "axes/AxesType.h"
00020
00021 namespace hippodraw {
00022
00023 class FontBase;
00024
00030 class MDL_HIPPOPLOT_API FontXML : virtual public BaseXML
00031 {
00032
00033 private:
00034
00036 static FontXML * s_instance;
00037
00040 std::string m_family;
00041
00044 std::string m_italic;
00045
00048 std::string m_size;
00049
00052 std::string m_weight;
00053
00055 FontXML ( const FontXML & );
00056
00057
00058 public:
00059
00062 FontXML ( XmlController * controller );
00063
00066 void setAttributes ( XmlElement &, const FontBase & );
00067
00070 hippodraw::Axes::Type getAxis ( const XmlElement * element,
00071 const std::string & tagname );
00072
00076 void setAttributes ( const XmlElement * element, FontBase * font );
00077
00078 };
00079
00080 }
00081
00082 #endif // _FontXML_H_