mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@52616 954022d7-b5bf-4e40-9824-e11837661b57
41 lines
790 B
C++
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);
|
|
};
|
|
|
|
} |