x2t - разрешение на поддержку xls версии 5.0

This commit is contained in:
ElenaSubbotina
2016-03-29 15:09:00 +03:00
committed by Alexander Trofimov
parent 9f3f79f554
commit d0a0d896fa

View File

@ -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)