From 4dcdd82ec2639486b4eb18bdfd6b7f03207d82b3 Mon Sep 17 00:00:00 2001 From: John McNamara Date: Thu, 15 Feb 2024 19:19:21 +0000 Subject: [PATCH] worksheet: add support for IMAGE() future function Issue #293 --- lib/Excel/Writer/XLSX.pm | 13 +++++++++++++ lib/Excel/Writer/XLSX/Worksheet.pm | 1 + 2 files changed, 14 insertions(+) diff --git a/lib/Excel/Writer/XLSX.pm b/lib/Excel/Writer/XLSX.pm index 11fd11b7..f1829fed 100644 --- a/lib/Excel/Writer/XLSX.pm +++ b/lib/Excel/Writer/XLSX.pm @@ -6624,6 +6624,7 @@ The following list is taken from the MS XLSX extensions documentation on future _xlfn.ACOTH _xlfn.AGGREGATE _xlfn.ARABIC + _xlfn.ARRAYTOTEXT _xlfn.BASE _xlfn.BETA.DIST _xlfn.BETA.INV @@ -6643,6 +6644,7 @@ The following list is taken from the MS XLSX extensions documentation on future _xlfn.CHISQ.INV.RT _xlfn.CHISQ.TEST _xlfn.COMBINA + _xlfn.CONCAT _xlfn.CONFIDENCE.NORM _xlfn.CONFIDENCE.T _xlfn.COT @@ -6678,6 +6680,8 @@ The following list is taken from the MS XLSX extensions documentation on future _xlfn.GAUSS _xlfn.HYPGEOM.DIST _xlfn.IFNA + _xlfn.IFS + _xlfn.IMAGE _xlfn.IMCOSH _xlfn.IMCOT _xlfn.IMCSC @@ -6688,9 +6692,13 @@ The following list is taken from the MS XLSX extensions documentation on future _xlfn.IMTAN _xlfn.ISFORMULA ISO.CEILING + _xlfn.ISOMITTED _xlfn.ISOWEEKNUM + _xlfn.LET _xlfn.LOGNORM.DIST _xlfn.LOGNORM.INV + _xlfn.MAXIFS + _xlfn.MINIFS _xlfn.MODE.MULT _xlfn.MODE.SNGL _xlfn.MUNIT @@ -6728,13 +6736,18 @@ The following list is taken from the MS XLSX extensions documentation on future _xlfn.T.INV _xlfn.T.INV.2T _xlfn.T.TEST + _xlfn.TEXTAFTER + _xlfn.TEXTBEFORE + _xlfn.TEXTJOIN _xlfn.UNICHAR _xlfn.UNICODE + _xlfn.VALUETOTEXT _xlfn.VAR.P _xlfn.VAR.S _xlfn.WEBSERVICE _xlfn.WEIBULL.DIST WORKDAY.INTL + _xlfn.XMATCH _xlfn.XOR _xlfn.Z.TEST diff --git a/lib/Excel/Writer/XLSX/Worksheet.pm b/lib/Excel/Writer/XLSX/Worksheet.pm index 7dac6d50..6f02ac37 100644 --- a/lib/Excel/Writer/XLSX/Worksheet.pm +++ b/lib/Excel/Writer/XLSX/Worksheet.pm @@ -2940,6 +2940,7 @@ sub _prepare_formula { $formula =~ s/\b(HYPGEOM.DIST\()/_xlfn.$1/g; $formula =~ s/\b(IFNA\()/_xlfn.$1/g; $formula =~ s/\b(IFS\()/_xlfn.$1/g; + $formula =~ s/\b(IMAGE\()/_xlfn.$1/g; $formula =~ s/\b(IMCOSH\()/_xlfn.$1/g; $formula =~ s/\b(IMCOT\()/_xlfn.$1/g; $formula =~ s/\b(IMCSCH\()/_xlfn.$1/g;