Files
core/ASCOfficeDocxFile2/DocWrapper/FontProcessor.h
Sergey.Konovalov ad3bad4592 общий FontProcessor, CFontManager из DesktopEditor/font_engine
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58487 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 23:16:28 +03:00

57 lines
1.3 KiB
C++

#pragma once
#include "../stdafx.h"
#include <map>
#include "../../DesktopEditor/fontengine/ApplicationFonts.h"
//#include "DocWrapper/Base.h"
namespace NSCommon{
template<class Type> class nullable;
}
namespace OOX
{
class CFont;
class CFontTable;
class CTheme;
namespace Spreadsheet
{
class CFont;
class CFontTable;
class CFontScheme;
class CString_;
class CCharset;
class CFontFamily;
}
}
namespace DocWrapper {
class FontProcessor {
CApplicationFonts m_oApplicationFonts;
CFontManager* m_pFontManager;
ASCGraphics::IASCFontManager* fontManager;
std::map<CString, CString> fontMap;
CString fontDir;
public:
FontProcessor();
~FontProcessor();
void setFontDir(const CString& fontDir);
void setFontTable(OOX::CFontTable* fontTable);
CString getFont(const CString& name);
CString getFont(const NSCommon::nullable<OOX::Spreadsheet::CFontScheme>& oScheme, const NSCommon::nullable<ComplexTypes::Spreadsheet::CString_>& oRFont, const NSCommon::nullable<OOX::Spreadsheet::CCharset>& oCharset, const NSCommon::nullable<OOX::Spreadsheet::CFontFamily >& oFamily, OOX::CTheme* pTheme);
ASCGraphics::IASCFontManager* getFontManager() {
return fontManager;
}
private:
void initFontManager();
void addToFontMap(OOX::CFont& font);
};
}