mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-14 00:22:28 +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
61 lines
1.9 KiB
C++
61 lines
1.9 KiB
C++
#ifndef FILE_WRITER
|
|
#define FILE_WRITER
|
|
|
|
#include "NumberingWriter.h"
|
|
#include "fontTableWriter.h"
|
|
#include "HeaderFooterWriter.h"
|
|
#include "DocumentWriter.h"
|
|
#include "MediaWriter.h"
|
|
#include "StylesWriter.h"
|
|
#include "SettingWriter.h"
|
|
#include "CommentsWriter.h"
|
|
#include "ChartWriter.h"
|
|
|
|
namespace BinDocxRW {
|
|
class CComments;
|
|
}
|
|
namespace Writers
|
|
{
|
|
class FileWriter
|
|
{
|
|
public:
|
|
NSBinPptxRW::CDrawingConverter* m_pDrawingConverter;
|
|
CString m_sThemePath;
|
|
bool m_bSaveChartAsImg;
|
|
ContentTypesWriter m_oContentTypesWriter;
|
|
FontTableWriter m_oFontTableWriter;
|
|
DocumentWriter m_oDocumentWriter;
|
|
MediaWriter m_oMediaWriter;
|
|
StylesWriter m_oStylesWriter;
|
|
NumberingWriter m_oNumberingWriter;
|
|
HeaderFooterWriter m_oHeaderFooterWriter;
|
|
SettingWriter m_oSettingWriter;
|
|
CommentsWriter m_oCommentsWriter;
|
|
ChartWriter m_oChartWriter;
|
|
int m_nDocPrIndex;
|
|
BinDocxRW::CComments* m_pComments;
|
|
public:
|
|
FileWriter(CString sDirOutput,CString sFontDir, int nVersion, bool bSaveChartAsImg, NSBinPptxRW::CDrawingConverter* pDrawingConverter, CString sThemePath):
|
|
m_pDrawingConverter(pDrawingConverter),m_sThemePath(sThemePath),m_bSaveChartAsImg(bSaveChartAsImg),
|
|
m_oContentTypesWriter(sDirOutput), m_oFontTableWriter(sDirOutput, sFontDir),
|
|
m_oHeaderFooterWriter(sDirOutput, m_oContentTypesWriter),
|
|
m_oMediaWriter(sDirOutput),
|
|
m_oStylesWriter(sDirOutput, nVersion),
|
|
m_oNumberingWriter(sDirOutput, m_oContentTypesWriter),
|
|
m_oDocumentWriter(sDirOutput, m_oHeaderFooterWriter),
|
|
m_oSettingWriter(sDirOutput, m_oHeaderFooterWriter),
|
|
m_oCommentsWriter(sDirOutput, m_oContentTypesWriter),
|
|
m_oChartWriter(sDirOutput, m_oContentTypesWriter),
|
|
m_nDocPrIndex(0),
|
|
m_pComments(NULL)
|
|
{
|
|
}
|
|
public: int getNextDocPr()
|
|
{
|
|
m_nDocPrIndex++;
|
|
return m_nDocPrIndex;
|
|
}
|
|
};
|
|
}
|
|
#endif // #ifndef FILE_WRITER
|