mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 06:22:44 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62279 954022d7-b5bf-4e40-9824-e11837661b57
28 lines
762 B
C++
28 lines
762 B
C++
#ifndef CSV_WRITER
|
|
#define CSV_WRITER
|
|
|
|
#define CP_UTF16 1200
|
|
#define CP_unicodeFFFE 1201
|
|
|
|
#ifndef CP_UTF8
|
|
#define CP_UTF8 65001
|
|
#endif
|
|
|
|
#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 "../../Common/DocxFormat/Source/XlsxFormat/Xlsx.h"
|
|
|
|
namespace CSVWriter
|
|
{
|
|
void WriteFile(NSFile::CFileBinary *pFile, WCHAR **pWriteBuffer, INT &nCurrentIndex, CString &sWriteString, UINT &nCodePage, bool bIsEnd = false);
|
|
void WriteFromXlsxToCsv(const CString &sFileDst, OOX::Spreadsheet::CXlsx &oXlsx, UINT nCodePage, const WCHAR wcDelimiter, bool bJSON);
|
|
}
|
|
|
|
#endif //CSV_WRITER
|