Files
odfstudio/sc/source/ui/unoobj
Caolán McNamara 137b0f47b7 sc: export ModifyPasswordHash as sal_Int32 so it round-trips through ODF
the ODF settings exporter has no unsigned long type and silently drops it:

    warn:xmloff:xmloff/source/core/SettingsExportHelper.cxx:163: this type (unsigned long) is not implemented now

so the hash never reached the file and the modify-protection was lost on
save. import already reads it back as sal_Int32.

it was originally exported with that cast in:

commit 3295b3c835
Date:   Tue Mar 30 16:34:51 2010 +0200

    tl78: #i110383# support password to modify

the cast was then lost when the export was removed and re-added, a problem
since:

commit c082158018
Date:   Tue Aug 31 12:08:39 2021 +0200

    tdf#118938 XLSX import/export: fix permission for editing

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I04ed75b6c84114c7f00c4269c04e5f7afad35c77
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/7610
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 5a4a201556594bae6351c45e9da7395f28051a83)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208705
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-28 11:19:39 +02:00
..