sc/source/ui/vba/vbaworkbooks.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit a4bdea66ca425ea9213412bbd19637d3956378db
Author:     Justin Luth <[email protected]>
AuthorDate: Wed Dec 10 17:15:53 2025 -0500
Commit:     Justin Luth <[email protected]>
CommitDate: Fri Dec 12 18:41:07 2025 +0100

    tdf#165180 ScVbaWorkbooks: 'Calc Office Open XML' isSpreadSheetFile
    
    This was introduced with
    commit 18ef6682a5e6ae503907755f8ba258647a550890
    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 <[email protected]>
    Tested-by: Jenkins
    Signed-off-by: Xisco Fauli <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195550

diff --git a/sc/source/ui/vba/vbaworkbooks.cxx 
b/sc/source/ui/vba/vbaworkbooks.cxx
index 509324d857f7..468124764bdf 100644
--- a/sc/source/ui/vba/vbaworkbooks.cxx
+++ b/sc/source/ui/vba/vbaworkbooks.cxx
@@ -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" );
 }

Reply via email to