mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
fix bug #67876
This commit is contained in:
@ -74,8 +74,10 @@ public:
|
||||
void SetThemesDir (std::wstring bsDir);
|
||||
void SetUseSystemFonts (bool useSystemFonts);
|
||||
|
||||
void SetIsNoBase64 (bool val);
|
||||
void SetMacroEnabled (bool val);
|
||||
void SetIsNoBase64 (bool val);
|
||||
|
||||
void SetMacroEnabled (bool val);
|
||||
bool GetMacroEnabled ();
|
||||
|
||||
_UINT32 OpenFileToPPTY (std::wstring bsInput, std::wstring bsOutput);
|
||||
_UINT32 OpenDirectoryToPPTY (std::wstring bsInput, std::wstring bsOutput);
|
||||
|
||||
@ -176,6 +176,10 @@ void CPPTXFile::SetMacroEnabled(bool val)
|
||||
{
|
||||
m_bIsMacro = val;
|
||||
}
|
||||
bool CPPTXFile::GetMacroEnabled()
|
||||
{
|
||||
return m_bIsMacro;
|
||||
}
|
||||
_UINT32 CPPTXFile::OpenFileToPPTY(std::wstring bsInput, std::wstring bsOutput)
|
||||
{
|
||||
if (m_strTempDir.empty()) m_strTempDir = NSDirectory::GetTempPath();
|
||||
@ -261,7 +265,7 @@ _UINT32 CPPTXFile::ConvertPPTYToPPTX(std::wstring bsInput, std::wstring bsOutput
|
||||
BYTE* pSrcBuffer = new BYTE[lFileSize];
|
||||
oFileBinary.ReadFile(pSrcBuffer, (DWORD)lFileSize);
|
||||
oFileBinary.CloseFile();
|
||||
|
||||
|
||||
std::wstring strBsInput = bsInput;
|
||||
std::wstring srcFolder = NSDirectory::GetFolderPath(strBsInput);
|
||||
|
||||
@ -275,8 +279,8 @@ _UINT32 CPPTXFile::ConvertPPTYToPPTX(std::wstring bsInput, std::wstring bsOutput
|
||||
{
|
||||
hRes = S_FALSE;
|
||||
}
|
||||
|
||||
RELEASEARRAYOBJECTS(pSrcBuffer);
|
||||
|
||||
m_bIsMacro = oWriter.GetMacroEnabled();
|
||||
return hRes;
|
||||
}
|
||||
|
||||
@ -371,8 +371,9 @@ namespace PPTX
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pReader->Seek(_end_pos);
|
||||
|
||||
m_bMacroEnabled = m_pVbaProject.IsInit();
|
||||
}
|
||||
|
||||
void Presentation::toXmlWriter(NSBinPptxRW::CXmlWriter* pWriter) const
|
||||
|
||||
Reference in New Issue
Block a user