From 94bfd10caa0e76c5bcdf20b037edacd2b9e24f0d Mon Sep 17 00:00:00 2001 From: SimplestStudio Date: Mon, 18 Nov 2024 17:44:33 +0200 Subject: [PATCH] [win] iss: add association with .fods, .fodt, htm, xlsm --- win-linux/extras/projicons/src/resource.h | 4 ++++ win-linux/extras/projicons/version.rc | 4 ++++ win-linux/package/windows/associate_page.iss | 23 ++++++++++++++++---- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/win-linux/extras/projicons/src/resource.h b/win-linux/extras/projicons/src/resource.h index bb568e2b4..cbd924fc2 100644 --- a/win-linux/extras/projicons/src/resource.h +++ b/win-linux/extras/projicons/src/resource.h @@ -32,6 +32,10 @@ #define IDI_ICON32 132 #define IDI_ICON33 133 #define IDI_ICON34 134 +#define IDI_ICON35 135 +#define IDI_ICON36 136 +#define IDI_ICON37 137 +#define IDI_ICON38 138 #define IDS_DOCX 1000 #define IDS_XLSX 1001 diff --git a/win-linux/extras/projicons/version.rc b/win-linux/extras/projicons/version.rc index e98a7afa2..d2e739b9d 100644 --- a/win-linux/extras/projicons/version.rc +++ b/win-linux/extras/projicons/version.rc @@ -35,6 +35,10 @@ IDI_ICON31 ICON DISCARDABLE "./res/icons/dotx.ico" IDI_ICON32 ICON DISCARDABLE "./res/icons/oxps.ico" IDI_ICON33 ICON DISCARDABLE "./res/icons/xlsb.ico" IDI_ICON34 ICON DISCARDABLE "./res/icons/menu.ico" +IDI_ICON35 ICON DISCARDABLE "./res/icons/fods.ico" +IDI_ICON36 ICON DISCARDABLE "./res/icons/fodt.ico" +IDI_ICON37 ICON DISCARDABLE "./res/icons/htm.ico" +IDI_ICON38 ICON DISCARDABLE "./res/icons/xlsm.ico" #include #include "src/version.h" diff --git a/win-linux/package/windows/associate_page.iss b/win-linux/package/windows/associate_page.iss index 79b80487d..1c0f210c6 100644 --- a/win-linux/package/windows/associate_page.iss +++ b/win-linux/package/windows/associate_page.iss @@ -1432,6 +1432,13 @@ sr_Cyrl_RS.extXLSB =Excel бинарни формат датотеке sr_Latn_RS.extXLSB =Excel binarni format datoteke he.extXLSB =פורמט קובץ בינארי של Excel +en.extXLSM =Microsoft Excel Macro-Enabled Workbook + +en.extFODS =OpenDocument Flat XML Spreadsheet + +en.extFODT =OpenDocument Flat XML Document + +en.extHTM =HyperText Markup Language ;====================================================================================================== en.jumpDOCX =New document @@ -1862,9 +1869,9 @@ var prefix: string; begin #ifdef _ONLYOFFICE - SetArrayLength(AudioExts, 24); + SetArrayLength(AudioExts, 28); #else - SetArrayLength(AudioExts, 23); + SetArrayLength(AudioExts, 27); #endif SetArrayLength(AudioExtEnabled, GetArrayLength(AudioExts)); @@ -1892,8 +1899,12 @@ begin AudioExts[20] := 'DOTX'; AudioExts[21] := 'OXPS'; AudioExts[22] := 'XLSB'; + AudioExts[23] := 'FODS'; + AudioExts[24] := 'FODT'; + AudioExts[25] := 'HTM'; + AudioExts[26] := 'XLSM'; #ifdef _ONLYOFFICE - AudioExts[23] := 'DOCXF'; + AudioExts[27] := 'DOCXF'; #endif SetArrayLength(ExtensionRegistryInfo, GetArrayLength(AudioExts)); @@ -1924,8 +1935,12 @@ begin ExtensionRegistryInfo[20] := prefix + 'Dotx:' + ExpandConstant('{cm:extDOTX}') + ':' + '30'; ExtensionRegistryInfo[21] := prefix + 'Oxps:' + ExpandConstant('{cm:extOXPS}') + ':' + '31'; ExtensionRegistryInfo[22] := prefix + 'Xlsb:' + ExpandConstant('{cm:extXLSB}') + ':' + '32'; + ExtensionRegistryInfo[23] := prefix + 'Fods:' + ExpandConstant('{cm:extFODS}') + ':' + '34'; + ExtensionRegistryInfo[24] := prefix + 'Fodt:' + ExpandConstant('{cm:extFODT}') + ':' + '35'; + ExtensionRegistryInfo[25] := prefix + 'Htm:' + ExpandConstant('{cm:extHTM}') + ':' + '36'; + ExtensionRegistryInfo[26] := prefix + 'Xlsm:' + ExpandConstant('{cm:extXLSM}') + ':' + '37'; #ifdef _ONLYOFFICE - ExtensionRegistryInfo[23] := prefix + 'Docxf:' + ExpandConstant('{cm:extDOCXF}') + ':' + '13'; + ExtensionRegistryInfo[27] := prefix + 'Docxf:' + ExpandConstant('{cm:extDOCXF}') + ':' + '13'; #endif end;