Files
core/ASCOfficePPTXFile/PPTXFormat/WrapperFile.h
Sergey.Konovalov 6847df2da0 для стыковки с docxFile2 как код: код лежащий в PPTXFile поменял namespace OOX -> PPTX; отделение com интерфейса от логики.
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58310 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 23:14:07 +03:00

64 lines
1.2 KiB
C++

#pragma once
#ifndef PPTX_WRAPPER_FILE_INCLUDE_H_
#define PPTX_WRAPPER_FILE_INCLUDE_H_
#include "DocxFormat/File.h"
#include "DocxFormat/NamespaceOwn.h"
#include "FileMap.h"
#include "../Editor/BinWriters.h"
namespace PPTX
{
class WrapperFile : public PPTX::File
{
public:
WrapperFile()
{
m_written = false;
m_WrittenFileName = _T("");
}
virtual ~WrapperFile()
{
}
public:
virtual void read(const OOX::CPath& filename)
{
return;
}
virtual void read(const OOX::CPath&, FileMap& map) = 0;
protected:
mutable bool m_written;
mutable OOX::CPath m_WrittenFileName;
public:
bool GetWrittenStatus()const
{
return m_written;
}
void WrittenSetFalse()
{
m_written = false;
m_WrittenFileName = _T("");
}
const OOX::CPath GetWrittenFileName()const
{
return m_WrittenFileName;
}
// PPTY format serialise
virtual void fromPPTY(NSBinPptxRW::CBinaryFileReader* pReader)
{
pReader->SkipRecord();
}
virtual void toPPTY(NSBinPptxRW::CBinaryFileWriter* pWriter) const
{
}
virtual void toXmlWriter(NSBinPptxRW::CXmlWriter* pWriter) const
{
}
};
} // namespace PPTX
#endif // PPTX_WRAPPER_FILE_INCLUDE_H_