tdf#165180 ScVbaWorkbooks: 'Calc Office Open XML' isSpreadSheetFile
This was introduced with
commit 18ef6682a5
Author: Vladimir Glazounov on Fri Dec 7 10:06:29 2007
INTEGRATION: CWS npower8 (1.2.4); FILE MERGED
2007/10/16 09:36:59 npower 1.2.4.4: #i77189#
2007/09/03 12:19:42 npower 1.2.4.3: #i77189# sync with oobuild
2007/07/18 13:46:48 npower 1.2.4.2: #i77189# sync ooo-build and this module
2007/05/10 11:23:11 npower 1.2.4.1: -m#i77189#
There are no clear instructions or unit tests
to know exactly how to test this,
but it seems clear enough that it should continue to work
when loaded with an Excel 2010 filter.
Change-Id: I5760438d8398c1c017f01205b36de7191cf389e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195412
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
This commit is contained in:
@@ -176,6 +176,7 @@ ScVbaWorkbooks::isSpreadSheetFile( std::u16string_view sType )
|
||||
// include calc_QPro etc. ? ( not for the moment anyway )
|
||||
return o3tl::starts_with( sType, u"calc_MS" )
|
||||
|| o3tl::starts_with( sType, u"MS Excel" )
|
||||
|| o3tl::starts_with( sType, u"Office Open XML Spreadsheet" ) // Excel 2010+
|
||||
|| o3tl::starts_with( sType, u"calc8" )
|
||||
|| o3tl::starts_with( sType, u"calc_StarOffice" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user