Files
core/XlsxSerializerCom/Common/Common.h
Elen.Subbotina bc7a0692be X2t добавлен Txt File Converter
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62352 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 23:59:41 +03:00

54 lines
1.2 KiB
C++

#ifndef SERIALIZER_COMMON
#define SERIALIZER_COMMON
#if defined(_WIN32) || defined (_WIN64)
#include <atlbase.h>
#include <atlstr.h>
#else
#include "../../Common/DocxFormat/Source/Base/ASCString.h"
#endif
#include "../../DesktopEditor/common/File.h"
#include <string>
#include <vector>
#define BUFFER_GROW_SIZE 1 * 1024 * 1024 //1mb
namespace SerializeCommon
{
CString DownloadImage(const CString& strFile);
VOID convertBase64ToImage (NSFile::CFileBinary& oFile, CString &pBase64);
long Round(double val);
CString changeExtention(const CString& sSourcePath, const 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(const CString& sXMLOptions, BYTE& result, UINT& nCodePage, WCHAR& wcDelimiter, BYTE& saveFileType);
}
#endif //SERIALIZER_COMMON