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