sw/sdi/swriter.sdi |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit f41d42491528905594b9a36a3bf16998f309c702
Author:     Miklos Vajna <[email protected]>
AuthorDate: Mon Jan 16 09:42:25 2023 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Mon Jan 16 11:34:30 2023 +0000

    sw: disable AutoUpdate for many new recent field/book/refmark UNO commands
    
    As noted in
    
<https://gerrit.libreoffice.org/c/core/+/145470/1#message-afe4d72912e02c6bacc63392305c3f910a354c6a>,
    these only make sense for commands which have a GetState()
    implementation (AutoUpdate will call GetState() automatically for you
    after an exec), and none of these commands have an explicit GetState(),
    so AutoUpdate=TRUE doesn't make sense for them.
    
    Change-Id: I9899c297a7b0f8c447c66b50a228bc7e1896e146
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145557
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi
index 038f70125909..bc1b52b92b43 100644
--- a/sw/sdi/swriter.sdi
+++ b/sw/sdi/swriter.sdi
@@ -2603,7 +2603,7 @@ SfxVoidItem UpdateBookmarks FN_UPDATE_BOOKMARKS
 SfxVoidItem DeleteBookmarks FN_DELETE_BOOKMARKS
 (SfxStringItem BookmarkNamePrefix FN_PARAM_1)
 [
-    AutoUpdate = TRUE,
+    AutoUpdate = FALSE,
     FastCall = FALSE,
     ReadOnlyDoc = FALSE,
     Toggle = FALSE,
@@ -2617,7 +2617,7 @@ SfxVoidItem DeleteBookmarks FN_DELETE_BOOKMARKS
 SfxVoidItem DeleteFields FN_DELETE_FIELDS
 (SfxStringItem TypeName FN_PARAM_1, SfxStringItem NamePrefix FN_PARAM_2)
 [
-    AutoUpdate = TRUE,
+    AutoUpdate = FALSE,
     FastCall = FALSE,
     ReadOnlyDoc = FALSE,
     Toggle = FALSE,
@@ -8356,7 +8356,7 @@ SfxBoolItem ShowInlineTooltips FN_SHOW_INLINETOOLTIPS
 SfxVoidItem TextFormField FN_INSERT_TEXT_FORMFIELD
 (SfxStringItem FieldType FN_PARAM_1, SfxStringItem FieldCommand FN_PARAM_2, 
SfxStringItem FieldResult FN_PARAM_3)
 [
-    AutoUpdate = TRUE,
+    AutoUpdate = FALSE,
     FastCall = FALSE,
     ReadOnlyDoc = FALSE,
     Toggle = FALSE,
@@ -8374,7 +8374,7 @@ SfxVoidItem TextFormField FN_INSERT_TEXT_FORMFIELD
 SfxVoidItem TextFormFields FN_UPDATE_TEXT_FORMFIELDS
 (SfxStringItem FieldType FN_PARAM_1, SfxStringItem FieldCommandPrefix 
FN_PARAM_2, SfxUnoAnyItem Fields FN_PARAM_3)
 [
-    AutoUpdate = TRUE,
+    AutoUpdate = FALSE,
     FastCall = FALSE,
     ReadOnlyDoc = FALSE,
     Toggle = FALSE,
@@ -8389,7 +8389,7 @@ SfxVoidItem TextFormFields FN_UPDATE_TEXT_FORMFIELDS
 SfxVoidItem DeleteTextFormFields FN_DELETE_TEXT_FORMFIELDS
 (SfxStringItem FieldType FN_PARAM_1, SfxStringItem FieldCommandPrefix 
FN_PARAM_2)
 [
-    AutoUpdate = TRUE,
+    AutoUpdate = FALSE,
     FastCall = FALSE,
     ReadOnlyDoc = FALSE,
     Toggle = FALSE,
@@ -8403,7 +8403,7 @@ SfxVoidItem DeleteTextFormFields FN_DELETE_TEXT_FORMFIELDS
 SfxVoidItem UpdateTextFormField FN_UPDATE_TEXT_FORMFIELD
 (SfxStringItem FieldType FN_PARAM_1, SfxStringItem FieldCommandPrefix 
FN_PARAM_2, SfxUnoAnyItem Field FN_PARAM_3)
 [
-    AutoUpdate = TRUE,
+    AutoUpdate = FALSE,
     FastCall = FALSE,
     ReadOnlyDoc = FALSE,
     Toggle = FALSE,

Reply via email to