mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-13 22:20:45 +08:00
revert revisions 59572, 59565, 59564, 59563, 59556, 59550, 59548, 59547, 59546, 59545, 59544, 59543, 59542, 59541, 59533, 59531, 59523, 59519, 59503, 59499, 59490. git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59588 954022d7-b5bf-4e40-9824-e11837661b57
52 lines
1.1 KiB
C++
52 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 "../../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(CString& sXMLOptions, BYTE& result, UINT& nCodePage, WCHAR& wcDelimiter);
|
|
}
|
|
|
|
#endif //SERIALIZER_COMMON
|