[win] iss: add association with .fods, .fodt, .vsdx, .xlsm

This commit is contained in:
SimplestStudio
2024-11-28 15:52:24 +02:00
parent b5beda7fea
commit 9d60a2bda7
3 changed files with 27 additions and 4 deletions

View File

@ -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

View File

@ -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/vsdx.ico"
IDI_ICON38 ICON DISCARDABLE "./res/icons/xlsm.ico"
#include <windows.h>
#include "src/version.h"

View File

@ -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.extVSDX =Visio Drawing
;======================================================================================================
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] := 'VSDX';
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 + 'Vsdx:' + ExpandConstant('{cm:extVSDX}') + ':' + '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;