Commit 4ab3756c authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

linux build

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59084 954022d7-b5bf-4e40-9824-e11837661b57
parent 05d65ba3
......@@ -3,7 +3,7 @@
#include "../../Common/DocxFormat/Source/SystemUtility/File.h"
#include "BinReaderWriterDefines.h"
#include "FontCutter.h"
#include "FontCutter.h"
//#include "../../DesktopEditor/fontengine/FontManager.h"
......@@ -22,9 +22,8 @@ namespace NSFontCutter
BOOL m_bIsEmbeddedFonts;
#ifdef _WIN32
CEmbeddedFontsManager m_oEmbeddedFonts;
#endif
public:
CFontDstManager() : m_mapPicks()
{
......@@ -79,21 +78,22 @@ namespace NSFontCutter
{
sRes = CString(pFontInfo->m_wsFontName.c_str());
#ifdef _WIN32
if (m_bIsEmbeddedFonts)
m_oEmbeddedFonts.CheckFont(sRes, m_pFontManager);
#endif
m_mapPicks.insert(std::pair<CString,CString>(sInputSave, sRes));
m_mapPicks.insert(std::pair<CString,CString>(sInputSave, sRes));
}
return sRes;
}
template<typename TTextFont>
template<typename TTextFont>
CString GetTypefacePick(TTextFont& textFont)
{
return GetTypefacePickByName(textFont.typeface);
return GetTypefacePickByName(textFont.typeface);
}
};
}
......@@ -117,9 +117,7 @@ public:
HRESULT SetEmbeddedFontsDirectory(const CString& bsFontsDirectory)
{
#ifdef _WIN32
m_oPicker.m_oEmbeddedFonts.m_strEmbeddedFontsFolder = (CString)bsFontsDirectory;
#endif
return S_OK;
}
HRESULT SetEmbeddedFontsParam(LONG lParam)
......@@ -140,16 +138,16 @@ public:
HRESULT CheckString(const CString& bsText)
{
#ifdef _WIN32
m_oPicker.m_oEmbeddedFonts.CheckString((CString)bsText);
#endif
return S_OK;
}
HRESULT CheckFont(const CString& bsFontName)
{
#ifdef _WIN32
m_oPicker.m_oEmbeddedFonts.CheckFont((CString)bsFontName, m_oPicker.m_pFontManager);
#endif
return S_OK;
}
......@@ -175,10 +173,10 @@ public:
{
return &m_oPicker;
}
#ifdef _WIN32
NSFontCutter::CEmbeddedFontsManager* GetNativeCutter()
{
return &m_oPicker.m_oEmbeddedFonts;
}
#endif
};
......@@ -53,10 +53,10 @@ namespace PPTX
pWriter->EndRecord();
#ifdef _WIN32
if (pWriter->m_pCommon->m_pNativePicker->m_bIsEmbeddedFonts)
pWriter->m_pCommon->m_pNativePicker->m_oEmbeddedFonts.CheckString(Char);
#endif
}
public:
......
......@@ -116,10 +116,10 @@ namespace PPTX
pWriter->EndRecord();
#ifdef _WIN32
if (pWriter->m_pCommon->m_pNativePicker->m_bIsEmbeddedFonts)
pWriter->m_pCommon->m_pNativePicker->m_oEmbeddedFonts.CheckString(text);
#endif
}
void SetText(const CString& src)
......
......@@ -97,10 +97,9 @@ namespace PPTX
pWriter->EndRecord();
#ifdef _WIN32
if (pWriter->m_pCommon->m_pNativePicker->m_bIsEmbeddedFonts)
pWriter->m_pCommon->m_pNativePicker->m_oEmbeddedFonts.CheckString(text);
#endif
}
virtual CString GetText()const{return text.get_value_or(_T(""));};
......
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