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

правки под ревизию 63369

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63372 954022d7-b5bf-4e40-9824-e11837661b57
parent 06c18fa1
...@@ -682,7 +682,7 @@ namespace DocFileFormat ...@@ -682,7 +682,7 @@ namespace DocFileFormat
case gtextUNICODE: case gtextUNICODE:
{ {
std::wstring text = NSString::CConverter::GetUnicodeFromUTF16((unsigned short*)iter->opComplex, (iter->op-2)/2); std::wstring text = NSStringExt::CConverter::GetUnicodeFromUTF16((unsigned short*)iter->opComplex, (iter->op-2)/2);
text = FormatUtils::XmlEncode(text); text = FormatUtils::XmlEncode(text);
text = ReplaceString(text, _T("\n"), _T("
")); text = ReplaceString(text, _T("\n"), _T("
"));
...@@ -691,7 +691,7 @@ namespace DocFileFormat ...@@ -691,7 +691,7 @@ namespace DocFileFormat
case gtextFont: case gtextFont:
{ {
std::wstring font = NSString::CConverter::GetUnicodeFromUTF16((unsigned short*)iter->opComplex, (iter->op-8)/2); std::wstring font = NSStringExt::CConverter::GetUnicodeFromUTF16((unsigned short*)iter->opComplex, (iter->op-8)/2);
font = std::wstring(_T("\"")) + font + std::wstring(_T("\"")); font = std::wstring(_T("\"")) + font + std::wstring(_T("\""));
appendStyleProperty(&m_textPathStyle, L"font-family", font); appendStyleProperty(&m_textPathStyle, L"font-family", font);
}break; }break;
......
...@@ -3057,7 +3057,7 @@ void CPdfWriterLib::OnlineWordToPdfInternal(BYTE* dstArray, LONG len, const std: ...@@ -3057,7 +3057,7 @@ void CPdfWriterLib::OnlineWordToPdfInternal(BYTE* dstArray, LONG len, const std:
std::wstring wsTempString = NSCommonReader::ReadString16(current, curindex, _sLen); std::wstring wsTempString = NSCommonReader::ReadString16(current, curindex, _sLen);
CString base64TempFile; std::wstring base64TempFile;
if (0 == wsTempString.find(_T("data:"))) if (0 == wsTempString.find(_T("data:")))
{ {
try try
...@@ -3076,8 +3076,8 @@ void CPdfWriterLib::OnlineWordToPdfInternal(BYTE* dstArray, LONG len, const std: ...@@ -3076,8 +3076,8 @@ void CPdfWriterLib::OnlineWordToPdfInternal(BYTE* dstArray, LONG len, const std:
if (Base64::Base64Decode(sBase64MultyByte.c_str(), sBase64MultyByte.length(), if (Base64::Base64Decode(sBase64MultyByte.c_str(), sBase64MultyByte.length(),
byteIm, &nBuffLen)) byteIm, &nBuffLen))
{ {
WriteFile_ (base64TempFile, byteIm, nBuffLen); WriteFile_ (std_string2string(base64TempFile), byteIm, nBuffLen);
wsTempString = string2std_string(base64TempFile); wsTempString = base64TempFile;
} }
else throw; else throw;
} }
...@@ -3320,7 +3320,7 @@ void CPdfWriterLib::OnlineWordToPdfInternal(BYTE* dstArray, LONG len, const std: ...@@ -3320,7 +3320,7 @@ void CPdfWriterLib::OnlineWordToPdfInternal(BYTE* dstArray, LONG len, const std:
_sLen = NSCommonReader::ReadInt(current, curindex); _sLen = NSCommonReader::ReadInt(current, curindex);
std::wstring wsTempString = NSCommonReader::ReadString16(current, curindex, _sLen); std::wstring wsTempString = NSCommonReader::ReadString16(current, curindex, _sLen);
CString base64TempFile; std::wstring base64TempFile;
if (0 == wsTempString.find(_T("data:"))) if (0 == wsTempString.find(_T("data:")))
{ {
try try
...@@ -3338,8 +3338,8 @@ void CPdfWriterLib::OnlineWordToPdfInternal(BYTE* dstArray, LONG len, const std: ...@@ -3338,8 +3338,8 @@ void CPdfWriterLib::OnlineWordToPdfInternal(BYTE* dstArray, LONG len, const std:
if (Base64::Base64Decode(sBase64MultyByte.c_str(), sBase64MultyByte.length(), byteIm, &nBuffLen)) if (Base64::Base64Decode(sBase64MultyByte.c_str(), sBase64MultyByte.length(), byteIm, &nBuffLen))
{ {
WriteFile_ (base64TempFile, byteIm,nBuffLen); WriteFile_ (std_string2string(base64TempFile), byteIm,nBuffLen);
wsTempString = string2std_string(base64TempFile); wsTempString = base64TempFile;
} }
else throw; else throw;
} }
......
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