diff options
author | Patrick Luby <plubius@neooffice.org> | 2023-07-13 13:41:17 -0400 |
---|---|---|
committer | Patrick Luby <plubius@neooffice.org> | 2023-07-13 22:35:30 +0200 |
commit | 3c7b230910c95838d644d1d3971f2a656b64f635 (patch) | |
tree | 04a65ba50bc7ee0c8f39613fc4b8ff7aea3d0758 /fpicker | |
parent | bfa25258d21430560584e3265cdd4629ee47a1b8 (diff) |
tdf#155125 add "Encrypt with GPG key" checkbox in macOS native save dialog
Change-Id: I85cdf71c1beaef51e8c66e30aa5b0c7de5f4b72c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154396
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@neooffice.org>
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/aqua/ControlHelper.hxx | 1 | ||||
-rw-r--r-- | fpicker/source/aqua/ControlHelper.mm | 4 | ||||
-rw-r--r-- | fpicker/source/aqua/resourceprovider.mm | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/fpicker/source/aqua/ControlHelper.hxx b/fpicker/source/aqua/ControlHelper.hxx index 5da540df61ec..ede5d0b0d574 100644 --- a/fpicker/source/aqua/ControlHelper.hxx +++ b/fpicker/source/aqua/ControlHelper.hxx @@ -69,6 +69,7 @@ public: enum ToggleType { AUTOEXTENSION, //but autoextension is handled differently on MacOSX PASSWORD, + GPGENCRYPTION, FILTEROPTIONS, READONLY, LINK, diff --git a/fpicker/source/aqua/ControlHelper.mm b/fpicker/source/aqua/ControlHelper.mm index 88f0b655cb58..46c8c549035f 100644 --- a/fpicker/source/aqua/ControlHelper.mm +++ b/fpicker/source/aqua/ControlHelper.mm @@ -184,10 +184,12 @@ void ControlHelper::initialize( sal_Int16 nTemplateId ) case FILESAVE_AUTOEXTENSION_PASSWORD: m_bToggleVisibility[AUTOEXTENSION] = true; m_bToggleVisibility[PASSWORD] = true; + m_bToggleVisibility[GPGENCRYPTION] = true; break; case FILESAVE_AUTOEXTENSION_PASSWORD_FILTEROPTIONS: m_bToggleVisibility[AUTOEXTENSION] = true; m_bToggleVisibility[PASSWORD] = true; + m_bToggleVisibility[GPGENCRYPTION] = true; m_bToggleVisibility[FILTEROPTIONS] = true; break; case FILESAVE_AUTOEXTENSION_SELECTION: @@ -602,6 +604,7 @@ int ControlHelper::getControlElementName(const Class aClazz, const int nControlI switch (nControlId) { TOGGLE_ELEMENT( AUTOEXTENSION ); TOGGLE_ELEMENT( PASSWORD ); + TOGGLE_ELEMENT( GPGENCRYPTION ); TOGGLE_ELEMENT( FILTEROPTIONS ); TOGGLE_ELEMENT( READONLY ); TOGGLE_ELEMENT( LINK ); @@ -725,6 +728,7 @@ case ExtendedFilePickerElementIds::LISTBOX_##elem##_LABEL: \ { MAP_TOGGLE( AUTOEXTENSION ); MAP_TOGGLE( PASSWORD ); + MAP_TOGGLE( GPGENCRYPTION ); MAP_TOGGLE( FILTEROPTIONS ); MAP_TOGGLE( READONLY ); MAP_TOGGLE( LINK ); diff --git a/fpicker/source/aqua/resourceprovider.mm b/fpicker/source/aqua/resourceprovider.mm index 951833ae2714..e3aa23a6f64e 100644 --- a/fpicker/source/aqua/resourceprovider.mm +++ b/fpicker/source/aqua/resourceprovider.mm @@ -50,6 +50,7 @@ struct Entry Entry const CtrlIdToResIdTable[] = { { CHECKBOX_AUTOEXTENSION, STR_SVT_FILEPICKER_AUTO_EXTENSION }, { CHECKBOX_PASSWORD, STR_SVT_FILEPICKER_PASSWORD }, + { CHECKBOX_GPGENCRYPTION, STR_SVT_FILEPICKER_GPGENCRYPT }, { CHECKBOX_FILTEROPTIONS, STR_SVT_FILEPICKER_FILTER_OPTIONS }, { CHECKBOX_READONLY, STR_SVT_FILEPICKER_READONLY }, { CHECKBOX_LINK, STR_SVT_FILEPICKER_INSERT_AS_LINK }, |