Files
core/ASCOfficeDocxFile2/DocWrapper/FontProcessor.h
Oleg.Korshul 49b45c145b (2.0.0.155) ASC version (full & opensource)
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52616 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 22:30:02 +03:00

41 lines
790 B
C++

#pragma once
#include "../stdafx.h"
#include <map>
//#include "DocWrapper/Base.h"
namespace DocWrapper {
class FontProcessor {
ASCGraphics::IASCFontManager* fontManager;
std::map<CString, CString> fontMap;
CString fontDir;
public:
static bool useSystemFonts;
public:
FontProcessor();
~FontProcessor();
void setFontDir(const CString& fontDir);
void setFontTable(OOX::CFontTable* fontTable);
CString getFont(const CString& name);
void getFonts(CAtlArray<CString>& fonts);
ASCGraphics::IASCFontManager* getFontManager() {
return fontManager;
}
private:
void initFontManager();
void addToFontMap(OOX::CFont& font);
bool checkRange(OOX::CFont& font);
void ToXmlString(CString& strVal);
};
}