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>
This commit is contained in:
Patrick Luby 2023-07-13 13:41:17 -04:00
parent bfa25258d2
commit 3c7b230910
3 changed files with 6 additions and 0 deletions

View file

@ -69,6 +69,7 @@ public:
enum ToggleType {
AUTOEXTENSION, //but autoextension is handled differently on MacOSX
PASSWORD,
GPGENCRYPTION,
FILTEROPTIONS,
READONLY,
LINK,

View file

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

View file

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