#pragma once #include #include "../styles/FontStyle.h" namespace NSDocxRenderer { class CFontStyleManager { public: CFontStyleManager(); ~CFontStyleManager(); void Clear(); void ToXml(NSStringUtils::CStringBuilder& oWriter); std::shared_ptr GetOrAddFontStyle(const CFontStyle& oFontStyle); std::shared_ptr GetOrAddFontStyle(const NSStructures::CBrush& oBrush, const std::wstring& wsFontName, double dFontSize, bool bItalic, bool bBold); private: std::list> m_arFontStyles; }; }