Commit e0d8a4bd authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander Trofimov

(2.0.0.259): ASCOfficeDocxFile2

отключен подбор шрифтов.

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@60955 954022d7-b5bf-4e40-9824-e11837661b57
parent 8b202004
...@@ -26,12 +26,16 @@ namespace DocWrapper { ...@@ -26,12 +26,16 @@ namespace DocWrapper {
} }
void FontProcessor::setFontTable(OOX::CFontTable* fontTable) void FontProcessor::setFontTable(OOX::CFontTable* fontTable)
{ {
// js
return;
for (int i = 0; i < fontTable->m_arrFonts.size(); ++i) for (int i = 0; i < fontTable->m_arrFonts.size(); ++i)
addToFontMap(*fontTable->m_arrFonts[i]); addToFontMap(*fontTable->m_arrFonts[i]);
} }
CString FontProcessor::getFont(const CString& name) CString FontProcessor::getFont(const CString& name)
{ {
// js
return name;
CString fontName = gc_sDefaultFontName; CString fontName = gc_sDefaultFontName;
if (fontMap.find(name) != fontMap.end()) if (fontMap.find(name) != fontMap.end())
fontName = fontMap[name]; fontName = fontMap[name];
...@@ -63,6 +67,8 @@ namespace DocWrapper { ...@@ -63,6 +67,8 @@ namespace DocWrapper {
sFontName = oRFont->ToString2(); sFontName = oRFont->ToString2();
if(sFontName.IsEmpty()) if(sFontName.IsEmpty())
sFontName = CString(gc_sNoNameFont); sFontName = CString(gc_sNoNameFont);
// js
return sFontName;
oFontSelectFormat.wsName = new std::wstring; oFontSelectFormat.wsName = new std::wstring;
*oFontSelectFormat.wsName = string2std_string(sFontName); *oFontSelectFormat.wsName = string2std_string(sFontName);
if(oCharset.IsInit() && oCharset->m_oCharset.IsInit()) if(oCharset.IsInit() && oCharset->m_oCharset.IsInit())
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
//2 //2
//0 //0
//0 //0
//258 //259
#define INTVER 2,0,0,258 #define INTVER 2,0,0,259
#define STRVER "2,0,0,258\0" #define STRVER "2,0,0,259\0"
...@@ -67,6 +67,8 @@ namespace NSFontCutter ...@@ -67,6 +67,8 @@ namespace NSFontCutter
{ {
sFind = _T("Arial"); sFind = _T("Arial");
} }
// js
return sFind;
std::map<CString, CString>::iterator pPair = m_mapPicks.find(sFind); std::map<CString, CString>::iterator pPair = m_mapPicks.find(sFind);
if (pPair != m_mapPicks.end()) if (pPair != m_mapPicks.end())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment