mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
добавлены rtf, doc git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62346 954022d7-b5bf-4e40-9824-e11837661b57
48 lines
845 B
C++
48 lines
845 B
C++
#ifndef DOC_FORMAT_LIB
|
|
#define DOC_FORMAT_LIB
|
|
|
|
#include <string>
|
|
|
|
#if !defined(_WIN32) && !defined(_WIN64)
|
|
#include "../../DesktopEditor/common/ASCVariant.h"
|
|
#endif
|
|
|
|
struct ProgressCallback;
|
|
|
|
class COfficeDocFile
|
|
{
|
|
public:
|
|
COfficeDocFile()
|
|
{
|
|
m_strTempDirectory = L"";
|
|
|
|
}
|
|
|
|
virtual ~COfficeDocFile()
|
|
{
|
|
}
|
|
|
|
private:
|
|
|
|
std::wstring m_strTempDirectory;
|
|
|
|
public:
|
|
|
|
HRESULT put_TempDirectory(std::wstring sDir)
|
|
{
|
|
m_strTempDirectory = sDir;
|
|
return S_OK;
|
|
}
|
|
|
|
std::wstring get_TempDirectory()
|
|
{
|
|
return m_strTempDirectory;
|
|
}
|
|
|
|
HRESULT LoadFromFile(std::wstring sSrcFileName, std::wstring sDstFileName, ProgressCallback *ffCallBack);
|
|
HRESULT SaveToFile(std::wstring sDstFileName, std::wstring sSrcFileName, ProgressCallback *ffCallBack);
|
|
|
|
};
|
|
|
|
#endif //DOC_FORMAT_LIB
|