| 80d08768 | 27-Sep-2026 |
Pedro Giffuni <pfg@apache.org> |
Port Symphony VBA FileDialog, FileSearch, QueryTable, FormatCondition, Workbook.SaveAs, and Application enhancements
Port IBM Lotus Symphony VBA compatibility features into Apache OpenOffice's Calc
Port Symphony VBA FileDialog, FileSearch, QueryTable, FormatCondition, Workbook.SaveAs, and Application enhancements
Port IBM Lotus Symphony VBA compatibility features into Apache OpenOffice's Calc VBA compatibility layer:
New IDL interfaces (main/oovbaapi/ooo/vba/): - XFileDialog: MsoFileDialogType, Title, AllowMultiSelect, Show() - XFileDialogSelectedItems: extends XCollection - XFileSearch: FileName, LookIn, SearchSubFolders, MatchTextExactly, Execute() - XFoundFiles: extends XCollection, File(Index) - XQueryTable: Refresh(any), Delete()
New C++ implementations (main/sc/source/ui/vba/): - ScVbaFileDialog using com.sun.star.ui.dialogs.FilePicker - ScVbaFileSearch using com.sun.star.ucb.SimpleFileAccess - VbaFoundFiles collection with XIndexAccess/XEnumeration - ScVbaQueryTable using sfx2::LinkManager and ScAreaLink
Modified XApplication.idl: - FileDialog() method + FileSearch attribute - CountA, MenuBars, International, Undo, InchesToPoints - setSheetsInNewWorkbook, getSheetsInNewWorkbook - Intersect, Union (already present)
Modified XRange.idl: - Added FormatConditions and QueryTable attributes
Modified XWorkbook.idl: - Added SaveAs method
Implemented getFormatConditions() in vbarange.cxx: - Returns ScVbaFormatConditions using ConditionalFormat property
Implemented Application methods in vbaapplication.cxx: - CountA delegates to WorksheetFunction::CountA - getSheetsInNewWorkbook/setSheetsInNewWorkbook use ScAppOptions - FileDialog() creates ScVbaFileDialog with model - getFileSearch() creates ScVbaFileSearch
Added missing Formula1()/Formula2() to XFormatCondition: - Required by IDL interface, returns formula from XSheetCondition
Registered services in service.cxx: - filedialog, filesearch, foundfiles, querytable - formatconditions, formatcondition
Build configuration: - UnoApi_oovbaapi.mk: 5 new IDL files added - Library_vbaobj.mk: 5 new .cxx files added
Import Symphony VBA: FileDialog, FileSearch, QueryTable, FormatCondition, Workbook.SaveAs, Application enhancements
Ports from IBM Symphony VBA implementation, combined with GCC 15 compilation fixes and VBA documentation comments. These changes cannot be cherry-picked independently of the VBA feature work:
- Add FileDialog, FileSearch, QueryTable, FormatCondition VBA objects - Enhance Application with SheetsInNewWorkbook, MenuBars stub, International stub - Add ScAppOptions GetTabCountInNewSpreadsheet/SetTabCountInNewSpreadsheet - Fix Workbook.SaveAs with proper XStorable property mapping - Add factory constructors for with_args<true> service declarations - Fix namespace/visibility issues for GCC 15: - helperdecl.hxx: vba_detail -> detail, add include guard - vbaquerytable.cxx: scrange.hxx -> address.hxx, SvBaseLinks -> sfx2:: - vbafilesearch.cxx: getInitPath exception specifier - vbafiledialog.cxx: GetAllFileFilterName -> hardcoded string - vbasheetobject.hxx: documentation comments - Add MS Excel VBA API documentation to all VBA headers
show more ...
|