office-gobmx/svtools
Hossein e2b7f59c74 tdf#147868 Disable add sheet when structure is protected
Using "Tools > Protect Spreadsheet Structure...", it is possible to
protect the structure of a spreadsheet document. Without this patch in
place, the [+] (add new sheet) button is clickable but it does not work.
This is confusing for the user, so it was decided that the button should
be disabled when the structure is protected.

This patch disables the [+] button just after the structure is protected
using the above toggle menu option. The menu option becomes checked, and
the [+] button gets disabled immediately. After choosing the same toggle
menu option again, the check mark goes away, and the [+] button becomes
enabled immediately.

In this patch, GetDocument().IsDocEditable() is used to check if the
document structure is protected. The argument for this choice is that
the same function is used when renaming a sheet with
ScDocFunc::RenameTable().

Change-Id: If812d94841d3efd98d7ef898cc1f4b2f1387130b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137365
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2022-07-24 15:53:39 +02:00
..
inc clang-tidy modernize-pass-by-value in svtools 2022-07-14 12:15:07 +02:00
langsupport
qa sw HTML export: fix missing escaping for image links 2022-06-27 08:57:31 +02:00
source tdf#147868 Disable add sheet when structure is protected 2022-07-24 15:53:39 +02:00
uiconfig/ui tdf#149401 show "Restart LibreOffice" dialog changing AutoRecovery 2022-06-23 17:07:00 +02:00
util
AllLangMoTarget_svt.mk
CppunitTest_svtools_dialogs_test.mk
CppunitTest_svtools_graphic.mk
CppunitTest_svtools_html.mk
Executable_langsupport.mk
IwyuFilter_svtools.yaml Recheck modules sv* with IWYU 2022-03-03 09:50:43 +01:00
JunitTest_svtools_unoapi.mk
Library_svt.mk LanguageTool Grammar Checker implementation 2022-06-10 13:52:17 +02:00
Makefile
Module_svtools.mk
README.md Updated README.md files to represent current code / use Markdown format 2021-04-07 17:47:16 +02:00
UIConfig_svt.mk translation domain of sfx for .ui in framework doesn't look right 2021-04-06 21:28:35 +02:00

Tools on the Top of VCL

Common dialogs, file and print dialogs, wizards, vcl filters, lots of helper code.