00001 /* -*- mode: c++ -*- */ 00002 00014 #ifndef _FontXML_H_ 00015 #define _FontXML_H_ 00016 00017 #include "BaseXML.h" 00018 00019 #include "axes/AxesType.h" 00020 00021 class FontBase; 00022 00028 class MDL_HIPPOPLOT_API FontXML : virtual public BaseXML 00029 { 00030 00031 private: 00032 00034 static FontXML * s_instance; 00035 00038 std::string m_family; 00039 00042 std::string m_italic; 00043 00046 std::string m_size;; 00047 00050 std::string m_weight; 00051 00053 FontXML ( const FontXML & ); 00054 00055 00056 public: 00057 00060 FontXML ( XmlController * controller ); 00061 00064 void setAttributes ( XmlElement &, const FontBase & ); 00065 00068 hippodraw::Axes::Type getAxis ( const XmlElement * element, 00069 const std::string & tagname ); 00070 00074 void setAttributes ( const XmlElement * element, FontBase * font ); 00075 00076 }; 00077 00078 #endif // _FontXML_H_