mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 15:43:08 +08:00
x2t - разрешение на поддержку xls версии 5.0
This commit is contained in:
committed by
Alexander Trofimov
parent
9f3f79f554
commit
d0a0d896fa
@ -94,12 +94,18 @@ bool COfficeFileFormatChecker::isXlsFormatFile (POLE::Storage * storage)
|
||||
{
|
||||
if (storage == NULL) return false;
|
||||
|
||||
POLE::Stream stream(storage, "Workbook");
|
||||
unsigned char buffer[10];
|
||||
|
||||
POLE::Stream stream(storage, "Workbook");
|
||||
|
||||
unsigned char buffer[10];
|
||||
if (stream.read(buffer,10) >0)
|
||||
return true;
|
||||
|
||||
POLE::Stream stream2(storage, "Book");
|
||||
|
||||
if (stream2.read(buffer,10) >0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
bool COfficeFileFormatChecker::isPptFormatFile (POLE::Storage * storage)
|
||||
|
||||
Reference in New Issue
Block a user