1 /*! 2 @file 3 @author Albert Semenov 4 @date 07/2012 5 */ 6 7 #ifndef _97897e95_12da_4017_9946_9422c79f905f_ 8 #define _97897e95_12da_4017_9946_9422c79f905f_ 9 10 #include "IExportSerializer.h" 11 #include "pugixml.hpp" 12 #include "Data.h" 13 14 namespace tools 15 { 16 17 class FontExportSerializer : 18 public IExportSerializer 19 { 20 public: 21 virtual void serialization(pugi::xml_document& _doc); 22 virtual bool deserialization(pugi::xml_document& _doc); 23 24 static bool exportData(const MyGUI::UString& _folderName, const MyGUI::UString& _fileName); 25 static void generateFont(DataPtr _font); 26 27 private: 28 void parseFont(pugi::xml_node _node); 29 void writeFont(pugi::xml_node _parent, DataPtr _data); 30 31 static void generateFontManualXml(MyGUI::xml::ElementPtr _root, const MyGUI::UString& _folderName, DataPtr _data); 32 static void removeFont(const std::string& _fontName); 33 //static void generateFontTTFXml(MyGUI::xml::ElementPtr _root, const std::string& _fontName, DataPtr _data); 34 }; 35 36 } 37 38 #endif 39