Files
core/XlsxSerializerCom/Common/Common.h
Sergey.Konovalov 42dceb4598 для сохранения utf-16 символов; перешел на XmlUtils::EncodeXmlString
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58551 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 23:17:12 +03:00

51 lines
1.1 KiB
C++

#ifndef SERIALIZER_COMMON
#define SERIALIZER_COMMON
#ifdef _WIN32
#include <atlbase.h>
#include <atlstr.h>
#else
#include "../../Common/DocxFormat/Source/Base/ASCString.h"
#endif
#include <string>
#include <vector>
#define BUFFER_GROW_SIZE 1 * 1024 * 1024 //1mb
namespace SerializeCommon
{
CString DownloadImage(const CString& strFile);
VOID convertBase64ToImage (CString sImage, CString &pBase64);
long Round(double val);
CString changeExtention(CString& sSourcePath, CString& sTargetExt);
class CommentData
{
public :
CString sText;
CString sTime;
CString sUserId;
CString sUserName;
CString sQuoteText;
bool Solved;
bool Document;
bool bSolved;
bool bDocument;
std::vector<CommentData*> aReplies;
CommentData()
{
bSolved = false;
bDocument = false;
}
~CommentData()
{
for(int i = 0, length = aReplies.size(); i < length; ++i)
delete aReplies[i];
aReplies.clear();
}
};
void ReadFileType(CString& sXMLOptions, BYTE& result, UINT& nCodePage, WCHAR& wcDelimiter);
}
#endif //SERIALIZER_COMMON