mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 03:42:47 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63783 954022d7-b5bf-4e40-9824-e11837661b57
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
#ifndef XLSX_SERIALIZER
|
|
#define XLSX_SERIALIZER
|
|
|
|
#if defined(_WIN32) || defined (_WIN64)
|
|
#include <atlbase.h>
|
|
#include <atlstr.h>
|
|
#else
|
|
#include "../../Common/DocxFormat/Source/Base/ASCString.h"
|
|
#endif
|
|
|
|
namespace NSBinPptxRW{
|
|
class CDrawingConverter;
|
|
}
|
|
namespace NSBinPptxRW{
|
|
class CBinaryFileReader;
|
|
class CBinaryFileWriter;
|
|
}
|
|
namespace BinXlsxRW {
|
|
|
|
class CXlsxSerializer{
|
|
private:
|
|
CString m_sFontDir;
|
|
CString m_sEmbeddedFontsDir;
|
|
NSBinPptxRW::CDrawingConverter* m_pExternalDrawingConverter;
|
|
public:
|
|
CXlsxSerializer();
|
|
~CXlsxSerializer();
|
|
|
|
void CreateXlsxFolders(CString& sXmlOptions, CString sDstPath, CString& sMediaPath, CString& sEmbedPath);
|
|
|
|
bool loadFromFile(const CString& sSrcFileName, const CString& sDstPath, const CString& sXMLOptions, const CString& sMediaDir, const CString& sEmbedPath);
|
|
bool saveToFile(const CString& sSrcFileName, const CString& sDstPath, const CString& sXMLOptions);
|
|
|
|
bool loadChart(CString& sChartPath, NSBinPptxRW::CBinaryFileWriter& oBufferedStream, long& lDataSize);
|
|
bool saveChart(NSBinPptxRW::CBinaryFileReader& oBufferedStream, long lLength, CString& sFilename, CString& sContentTypePath, CString** sContentTypeElement);
|
|
|
|
void setFontDir(CString& sFontDir);
|
|
void setEmbeddedFontsDir(CString& sEmbeddedFontsDir);
|
|
void setDrawingConverter(NSBinPptxRW::CDrawingConverter* pDrawingConverter);
|
|
};
|
|
}
|
|
#endif // #ifndef XLSX_SERIALIZER
|