mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 07:38:47 +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
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
#ifndef XLSX_SERIALIZER
|
|
#define XLSX_SERIALIZER
|
|
|
|
#ifdef _WIN32
|
|
#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();
|
|
bool loadFromFile(CString& sSrcFileName, CString& sDstPath, CString& sXMLOptions, CString& sMediaDir);
|
|
bool saveToFile(CString& sSrcFileName, CString& sDstPath, 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
|