mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58310 954022d7-b5bf-4e40-9824-e11837661b57
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
#pragma once
|
|
#ifndef PPTX_IFILE_CONTAINER_INCLUDE_H_
|
|
#define PPTX_IFILE_CONTAINER_INCLUDE_H_
|
|
|
|
#include "DocxFormat/IFileContainer.h"
|
|
#include "FileMap.h"
|
|
#include "PPTXEvent.h"
|
|
|
|
namespace PPTX
|
|
{
|
|
class FileContainer : public PPTX::IFileContainer
|
|
{
|
|
public:
|
|
FileContainer()
|
|
{
|
|
m_lPercent = 0;
|
|
m_bCancelled = false;
|
|
}
|
|
virtual ~FileContainer()
|
|
{
|
|
}
|
|
protected:
|
|
void read(const OOX::CPath& filename);
|
|
void read(const PPTX::Rels::File& rels, const OOX::CPath& path);
|
|
|
|
void read(const OOX::CPath& filename, FileMap& map, IPPTXEvent* Event);
|
|
void read(const PPTX::Rels::File& rels, const OOX::CPath& path, FileMap& map, IPPTXEvent* Event);
|
|
void write(const OOX::CPath& filename, const OOX::CPath& directory, PPTX::ContentTypes::File& content) const;
|
|
void write(PPTX::Rels::File& rels, const OOX::CPath& current, const OOX::CPath& directory, PPTX::ContentTypes::File& content) const;
|
|
|
|
void WrittenSetFalse();
|
|
|
|
long m_lPercent;
|
|
bool m_bCancelled;
|
|
};
|
|
|
|
class CCommonRels : public PPTX::FileContainer
|
|
{
|
|
public:
|
|
CCommonRels() : PPTX::FileContainer()
|
|
{
|
|
}
|
|
|
|
void _read(const OOX::CPath& filename);
|
|
void _read(const PPTX::Rels::File& rels, const OOX::CPath& path);
|
|
};
|
|
} // namespace PPTX
|
|
|
|
#endif // PPTX_IFILE_CONTAINER_INCLUDE_H_
|