mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 01:04:34 +08:00
Merge remote-tracking branch 'origin/feature/odg' into release/v8.1.0
This commit is contained in:
@ -1093,6 +1093,7 @@ bool COfficeFileFormatChecker::isOpenOfficeFormatFile(const std::wstring &fileNa
|
||||
const char *odtFormatLine = "application/vnd.oasis.opendocument.text";
|
||||
const char *odsFormatLine = "application/vnd.oasis.opendocument.spreadsheet";
|
||||
const char *odpFormatLine = "application/vnd.oasis.opendocument.presentation";
|
||||
const char* odgFormatLine = "application/vnd.oasis.opendocument.graphics";
|
||||
const char *ottFormatLine = "application/vnd.oasis.opendocument.text-template";
|
||||
const char *otsFormatLine = "application/vnd.oasis.opendocument.spreadsheet-template";
|
||||
const char *otpFormatLine = "application/vnd.oasis.opendocument.presentation-template";
|
||||
@ -1143,6 +1144,10 @@ bool COfficeFileFormatChecker::isOpenOfficeFormatFile(const std::wstring &fileNa
|
||||
{
|
||||
nFileType = AVS_OFFICESTUDIO_FILE_PRESENTATION_ODP;
|
||||
}
|
||||
else if (NULL != strstr((char*)pBuffer, odgFormatLine))
|
||||
{
|
||||
nFileType = AVS_OFFICESTUDIO_FILE_PRESENTATION_ODG;
|
||||
}
|
||||
else if (NULL != strstr((char *)pBuffer, epubFormatLine))
|
||||
{
|
||||
nFileType = AVS_OFFICESTUDIO_FILE_DOCUMENT_EPUB;
|
||||
|
||||
Reference in New Issue
Block a user