mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-14 14:53:29 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58421 954022d7-b5bf-4e40-9824-e11837661b57
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
#ifndef DOCX_SERIALIZER
|
|
#define DOCX_SERIALIZER
|
|
|
|
#ifdef _WIN32
|
|
#include <atlbase.h>
|
|
#include <atlstr.h>
|
|
#else
|
|
#include "../../Common/DocxFormat/Source/Base/ASCString.h"
|
|
#endif
|
|
|
|
namespace Writers{
|
|
class FileWriter;
|
|
}
|
|
namespace NSBinPptxRW{
|
|
class CBinaryFileReader;
|
|
class CBinaryFileWriter;
|
|
}
|
|
namespace BinDocxRW {
|
|
class BinaryFileWriter;
|
|
class CDocxSerializer{
|
|
private:
|
|
CString m_sFontDir;
|
|
CString m_sEmbeddedFontsDir;
|
|
bool m_bIsNoBase64Save;
|
|
bool m_bSaveChartAsImg;
|
|
BinaryFileWriter* m_oBinaryFileWriter;
|
|
Writers::FileWriter* m_pCurFileWriter;
|
|
public:
|
|
CDocxSerializer();
|
|
bool loadFromFile(CString& sSrcFileName, CString& sDstPath, CString& sXMLOptions, CString& sThemePath, CString& sMediaPath);
|
|
bool saveToFile(CString& sSrcFileName, CString& sDstPath, CString& sXMLOptions);
|
|
bool getXmlContent(NSBinPptxRW::CBinaryFileReader& oBufferedStream, long lLength, CString& sOutputXml);
|
|
bool getBinaryContent(CString& bsTxContent, NSBinPptxRW::CBinaryFileWriter& oBufferedStream, long& lDataSize);
|
|
void setFontDir(CString& sFontDir);
|
|
void setEmbeddedFontsDir(CString& sEmbeddedFontsDir);
|
|
void setIsNoBase64Save(bool bIsNoBase64Save);
|
|
void setSaveChartAsImg(bool bSaveChartAsImg);
|
|
};
|
|
}
|
|
#endif // #ifndef DOCX_SERIALIZER
|