mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-14 03:46:15 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@61935 954022d7-b5bf-4e40-9824-e11837661b57
62 lines
1.0 KiB
C++
62 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#if defined(_WIN32) || defined (_WIN64)
|
|
#include <atlbase.h>
|
|
#include <atlstr.h>
|
|
#else
|
|
#include "../../../DesktopEditor/common/ASCVariant.h"
|
|
#include "../../../Common/DocxFormat/Source/Base/ASCString.h"
|
|
#endif
|
|
|
|
#include <vector>
|
|
|
|
class COfficePPTFile
|
|
{
|
|
public:
|
|
COfficePPTFile()
|
|
{
|
|
m_strTempDirectory = L"";
|
|
m_pReader = NULL;
|
|
m_Status = 0;
|
|
|
|
}
|
|
|
|
~COfficePPTFile();
|
|
|
|
private:
|
|
|
|
LONG m_Status;
|
|
|
|
void* m_pReader;
|
|
|
|
std::vector<CString> m_arUserSources;
|
|
CString m_strEditorXml;
|
|
|
|
CString m_strTempDirectory;
|
|
|
|
public:
|
|
|
|
HRESULT put_TempDirectory(CString sDir)
|
|
{
|
|
m_strTempDirectory = sDir;
|
|
return S_OK;
|
|
}
|
|
|
|
CString get_TempDirectory()
|
|
{
|
|
return m_strTempDirectory;
|
|
}
|
|
|
|
HRESULT LoadFromFile(CString sSrcFileName, CString sDstPath, CString sXMLOptions);
|
|
|
|
|
|
HRESULT GetAdditionalParam (CString sParamName, VARIANT* ParamValue);
|
|
private:
|
|
BOOL OpenFile(CString sFileName);
|
|
|
|
BOOL CloseFile();
|
|
|
|
CString GetDirectory(CString strFileName);
|
|
};
|
|
|