Commit 473e616e authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

constructor & destructor CFontList

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59164 954022d7-b5bf-4e40-9824-e11837661b57
parent 53b88f72
......@@ -136,6 +136,22 @@ private:
std::wstring m_sDirectory;
LONG m_lDefIndex; // Номер стандартного шрифта (-1, если не задан)
public:
CFontList()
{
m_lDefIndex = -1;
}
~CFontList()
{
int nCount = m_pList.GetCount();
for ( int nIndex = 0; nIndex < nCount; ++nIndex )
{
CFontInfo* pTemp = m_pList[nIndex];
RELEASEOBJECT(pTemp);
}
m_pList.RemoveAll();
}
private:
int GetCharsetPenalty(ULONG ulCandRanges[6], unsigned char unReqCharset);
int GetSigPenalty(ULONG ulCandRanges[6], ULONG ulReqRanges[6], double dRangeWeight = 1, bool bPenaltyForSuperflouous = false);
......
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