Skip to content

Commit

Permalink
[win] iss: add association with .fods, .fodt, htm, xlsm
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Nov 18, 2024
1 parent 592c344 commit 94bfd10
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
4 changes: 4 additions & 0 deletions win-linux/extras/projicons/src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions win-linux/extras/projicons/version.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <windows.h>
#include "src/version.h"
Expand Down
23 changes: 19 additions & 4 deletions win-linux/package/windows/associate_page.iss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 94bfd10

Please sign in to comment.