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

new version

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@61493 954022d7-b5bf-4e40-9824-e11837661b57
parent 7599a9da
...@@ -2184,6 +2184,15 @@ namespace NSEditorApi ...@@ -2184,6 +2184,15 @@ namespace NSEditorApi
virtual ~CAscStyleImages() virtual ~CAscStyleImages()
{ {
} }
public:
void SetReleaseAll()
{
for (std::vector<CAscStyleImage>::iterator iter = m_arStyles.begin(); iter != m_arStyles.end(); iter++)
{
iter->Image.Release = true;
}
}
}; };
} }
......
...@@ -704,6 +704,14 @@ std::vector<std::wstring> CApplicationFontsWorker::CheckApplication(bool bIsNeed ...@@ -704,6 +704,14 @@ std::vector<std::wstring> CApplicationFontsWorker::CheckApplication(bool bIsNeed
oStream.WriteStringA2(sTmp.c_str(), (int)sTmp.length()); oStream.WriteStringA2(sTmp.c_str(), (int)sTmp.length());
} }
nCountF = (int)arrNames.size();
oStream.WriteLONG((LONG)nCountF);
for (std::vector<std::wstring>::iterator iter = arrNames.begin(); iter != arrNames.end(); ++iter)
{
std::string sTmp = NSFile::CUtf8Converter::GetUtf8StringFromUnicode(*iter);
oStream.WriteStringA2(sTmp.c_str(), (int)sTmp.length());
}
nLenDst = (unsigned int)oStream.GetSize(); nLenDst = (unsigned int)oStream.GetSize();
pDataDst = new unsigned char[nLenDst]; pDataDst = new unsigned char[nLenDst];
memcpy(pDataDst, oStream.GetData(), (size_t)nLenDst); memcpy(pDataDst, oStream.GetData(), (size_t)nLenDst);
......
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