officecfg/registry/data/org/openoffice/Office/Accelerators.xcu | 12 ++-- officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu | 2 sw/inc/docufld.hxx | 4 + sw/sdi/swriter.sdi | 2 sw/source/core/fields/docufld.cxx | 9 +++ sw/source/core/fields/fldbas.cxx | 3 - sw/source/core/unocore/unofield.cxx | 2 sw/source/core/unocore/unomap.cxx | 1 sw/source/uibase/shells/basesh.cxx | 25 ++++++++++ sw/source/uibase/shells/textfld.cxx | 8 ++- sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx | 13 +++-- sw/uiconfig/sglobal/menubar/menubar.xml | 2 sw/uiconfig/sweb/menubar/menubar.xml | 2 sw/uiconfig/swform/menubar/menubar.xml | 2 sw/uiconfig/swreport/menubar/menubar.xml | 2 sw/uiconfig/swriter/menubar/menubar.xml | 2 sw/uiconfig/swriter/ui/navigatorpanel.ui | 2 sw/uiconfig/swriter/ui/notebookbar.ui | 2 sw/uiconfig/swriter/ui/notebookbar_compact.ui | 2 sw/uiconfig/swriter/ui/notebookbar_groupedbar_compact.ui | 2 sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui | 2 sw/uiconfig/swxform/menubar/menubar.xml | 2 22 files changed, 77 insertions(+), 26 deletions(-)
New commits: commit c4189d97fb78fa3687febbb9260b4c6477068182 Author: Moritz Duge <[email protected]> AuthorDate: Sun Feb 8 02:32:30 2026 +0100 Commit: Moritz Duge <[email protected]> CommitDate: Mon Mar 2 13:19:57 2026 +0100 tdf#156499 new SoftFixed to complement Fixed field state Use instead of Fixed when importing DOCX and RTF DocProperty fields whose text does not match the File - Properties - Custom variable's content. SoftFixed allows users to trigger updates via UI (Update All, F9, ...). But fields won't update automatically, matching the MSO behaviour. see also tdf#147861 and commit c4cb1d1dd581a5f120d9cf8b1d4274ec38f3eabe Change-Id: Iaeecfd48a58abf0827f07be5522f3cb03e25ac8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198894 Tested-by: Jenkins Reviewed-by: Moritz Duge <[email protected]> Reviewed-by: Justin Luth <[email protected]> diff --git a/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu b/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu index fae92d2d866f..83d682637b80 100644 --- a/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu +++ b/officecfg/registry/data/org/openoffice/Office/Accelerators.xcu @@ -2541,7 +2541,7 @@ Ctrl+Shift+u aka U_SHIFT_MOD1 under GTK/IBUS is for unicode key input <node oor:name="F9" oor:op="replace"> <prop oor:name="Command"> <value xml:lang="x-no-translate">L10N SHORTCUTS - NO TRANSLATE</value> - <value xml:lang="en-US">.uno:UpdateFields</value> + <value xml:lang="en-US">.uno:UpdateFields?UnlockSoftFixed:bool=1</value> </prop> </node> <node oor:name="F9_MOD1" oor:op="replace"> @@ -4085,7 +4085,7 @@ Ctrl+Shift+u aka U_SHIFT_MOD1 under GTK/IBUS is for unicode key input <node oor:name="F9" oor:op="replace"> <prop oor:name="Command"> <value xml:lang="x-no-translate">L10N SHORTCUTS - NO TRANSLATE</value> - <value xml:lang="en-US">.uno:UpdateFields</value> + <value xml:lang="en-US">.uno:UpdateFields?UnlockSoftFixed:bool=1</value> </prop> </node> <node oor:name="F9_MOD1" oor:op="replace"> @@ -4882,7 +4882,7 @@ Ctrl+Shift+u aka U_SHIFT_MOD1 under GTK/IBUS is for unicode key input <node oor:name="F9" oor:op="replace"> <prop oor:name="Command"> <value xml:lang="x-no-translate">L10N SHORTCUTS - NO TRANSLATE</value> - <value xml:lang="en-US">.uno:UpdateFields</value> + <value xml:lang="en-US">.uno:UpdateFields?UnlockSoftFixed:bool=1</value> </prop> </node> <node oor:name="F9_MOD1" oor:op="replace"> @@ -5684,7 +5684,7 @@ Ctrl+Shift+u aka U_SHIFT_MOD1 under GTK/IBUS is for unicode key input <node oor:name="F9" oor:op="replace"> <prop oor:name="Command"> <value xml:lang="x-no-translate">L10N SHORTCUTS - NO TRANSLATE</value> - <value xml:lang="en-US">.uno:UpdateFields</value> + <value xml:lang="en-US">.uno:UpdateFields?UnlockSoftFixed:bool=1</value> </prop> </node> <node oor:name="F9_MOD1" oor:op="replace"> @@ -6630,7 +6630,7 @@ Ctrl+Shift+u aka U_SHIFT_MOD1 under GTK/IBUS is for unicode key input <node oor:name="F9" oor:op="replace"> <prop oor:name="Command"> <value xml:lang="x-no-translate">L10N SHORTCUTS - NO TRANSLATE</value> - <value xml:lang="en-US">.uno:UpdateFields</value> + <value xml:lang="en-US">.uno:UpdateFields?UnlockSoftFixed:bool=1</value> </prop> </node> <node oor:name="F9_MOD1" oor:op="replace"> @@ -7501,7 +7501,7 @@ Ctrl+Shift+u aka U_SHIFT_MOD1 under GTK/IBUS is for unicode key input <node oor:name="F9" oor:op="replace"> <prop oor:name="Command"> <value xml:lang="x-no-translate">L10N SHORTCUTS - NO TRANSLATE</value> - <value xml:lang="en-US">.uno:UpdateFields</value> + <value xml:lang="en-US">.uno:UpdateFields?UnlockSoftFixed:bool=1</value> </prop> </node> <node oor:name="F9_MOD1" oor:op="replace"> diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu index 8e8bd514810f..60eacde2cc73 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu @@ -2120,7 +2120,7 @@ <value>1</value> </prop> </node> - <node oor:name=".uno:UpdateFields" oor:op="replace"> + <node oor:name=".uno:UpdateFields?UnlockSoftFixed:bool=1" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">~Fields</value> </prop> diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx index 59b07e80c728..e662b8c11986 100644 --- a/sw/inc/docufld.hxx +++ b/sw/inc/docufld.hxx @@ -97,6 +97,10 @@ enum class SwDocInfoSubType : sal_uInt16 SubTime = 0x0200, SubDate = 0x0300, SubFixed = 0x1000, + // SubSoftFixed: not saved to file (ephemeral / transient), + // prevents automatic updates (especially import time updates), + // unset when user explicitly triggers update (e.g. via UI button) + SubSoftFixed = 0x2000, SubMask = 0x0f00, Max = 0xffff // used as a flag by SwFieldDokInfPage diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi index e4a5b523ad0a..a8126fb7564e 100644 --- a/sw/sdi/swriter.sdi +++ b/sw/sdi/swriter.sdi @@ -6861,7 +6861,7 @@ SfxVoidItem UpdateCurIndex FN_UPDATE_CUR_TOX ] SfxVoidItem UpdateFields FN_UPDATE_FIELDS -(SfxStringItem TypeName FN_PARAM_1, SfxStringItem NamePrefix FN_PARAM_2, SfxUnoAnyItem Fields FN_PARAM_3, SfxBoolItem NeverExpand FN_PARAM_6) +(SfxStringItem TypeName FN_PARAM_1, SfxStringItem NamePrefix FN_PARAM_2, SfxUnoAnyItem Fields FN_PARAM_3, SfxBoolItem NeverExpand FN_PARAM_6, SfxBoolItem UnlockSoftFixed FN_PARAM_7) [ AutoUpdate = FALSE, FastCall = TRUE, diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx index 7504f7059733..c64391579aea 100644 --- a/sw/source/core/fields/docufld.cxx +++ b/sw/source/core/fields/docufld.cxx @@ -1248,6 +1248,9 @@ bool SwDocInfoField::QueryValue( uno::Any& rAny, sal_uInt16 nWhichId ) const case FIELD_PROP_BOOL1: rAny <<= bool(m_nSubType & SwDocInfoSubType::SubFixed); break; + case FIELD_PROP_BOOL3: + rAny <<= bool(m_nSubType & SwDocInfoSubType::SubSoftFixed); + break; case FIELD_PROP_FORMAT: rAny <<= static_cast<sal_Int32>(GetFormat()); @@ -1298,6 +1301,12 @@ bool SwDocInfoField::PutValue( const uno::Any& rAny, sal_uInt16 nWhichId ) else m_nSubType &= ~SwDocInfoSubType::SubFixed; break; + case FIELD_PROP_BOOL3: + if(*o3tl::doAccess<bool>(rAny)) + m_nSubType |= SwDocInfoSubType::SubSoftFixed; + else + m_nSubType &= ~SwDocInfoSubType::SubSoftFixed; + break; case FIELD_PROP_FORMAT: { rAny >>= nValue; diff --git a/sw/source/core/fields/fldbas.cxx b/sw/source/core/fields/fldbas.cxx index 6b5f0ca90165..f8e1def68d8d 100644 --- a/sw/source/core/fields/fldbas.cxx +++ b/sw/source/core/fields/fldbas.cxx @@ -672,7 +672,8 @@ bool SwField::IsFixed() const break; case SwFieldIds::DocInfo: - bRet = bool(static_cast<const SwDocInfoField*>(this)->GetSubType() & SwDocInfoSubType::SubFixed); + bRet = bool(static_cast<const SwDocInfoField*>(this)->GetSubType() & + (SwDocInfoSubType::SubFixed | SwDocInfoSubType::SubSoftFixed)); break; default: break; } diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx index 722e52e6295f..b1285f6b7716 100644 --- a/sw/source/core/unocore/unofield.cxx +++ b/sw/source/core/unocore/unofield.cxx @@ -1584,6 +1584,8 @@ void SAL_CALL SwXTextField::attach( } if (m_pImpl->m_pProps->bBool1) nSubType |= SwDocInfoSubType::SubFixed; + if (m_pImpl->m_pProps->bBool3) + nSubType |= SwDocInfoSubType::SubSoftFixed; xField.reset(new SwDocInfoField( static_cast<SwDocInfoFieldType*>(pFieldType), nSubType, m_pImpl->m_pProps->sPar4, m_pImpl->m_pProps->nFormat)); diff --git a/sw/source/core/unocore/unomap.cxx b/sw/source/core/unocore/unomap.cxx index 39c952b4019d..c03dd72cdc21 100644 --- a/sw/source/core/unocore/unomap.cxx +++ b/sw/source/core/unocore/unomap.cxx @@ -1213,6 +1213,7 @@ std::span<const SfxItemPropertyMapEntry> SwUnoPropertyMapProvider::GetPropertyMa {UNO_NAME_NAME, FIELD_PROP_PAR4, cppu::UnoType<OUString>::get(), PROPERTY_NONE, 0}, {UNO_NAME_CURRENT_PRESENTATION, FIELD_PROP_PAR3, cppu::UnoType<OUString>::get(), PROPERTY_NONE, 0}, {UNO_NAME_IS_FIXED, FIELD_PROP_BOOL1, cppu::UnoType<bool>::get() , PROPERTY_NONE,0}, + {"IsSoftFixed", FIELD_PROP_BOOL3, cppu::UnoType<bool>::get() , PROPERTY_NONE,0}, {UNO_NAME_NUMBER_FORMAT, FIELD_PROP_FORMAT, cppu::UnoType<sal_Int32>::get(), PROPERTY_NONE, 0}, {UNO_NAME_IS_FIXED_LANGUAGE, FIELD_PROP_BOOL4, cppu::UnoType<bool>::get(), PROPERTY_NONE, 0}, COMMON_FLDTYP_PROPERTIES diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index 4af93e87f983..6c59a6656df2 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -84,9 +84,11 @@ #include <strings.hrc> #include <unotxdoc.hxx> #include <doc.hxx> +#include <docufld.hxx> #include <drawdoc.hxx> #include <IDocumentSettingAccess.hxx> #include <IDocumentDrawModelAccess.hxx> +#include <IDocumentFieldsAccess.hxx> #include <IDocumentUndoRedo.hxx> #include <ThemeColorChanger.hxx> #include <swabstdlg.hxx> @@ -209,6 +211,20 @@ static bool lcl_UpdateContourDlg( SwWrtShell &rSh, SelectionType nSel ) return bRet; } +/// See SubSoftFixed definition. +/// It may only be unlocked on explicit user action (e.g. "Update All" button click). +static void lcl_UnlockSoftFixed( SwWrtShell &rSh ) +{ + SwFieldType* pType = rSh.GetDoc()->getIDocumentFieldsAccess().GetSysFieldType(SwFieldIds::DocInfo); + std::vector<SwFormatField*> vFields; + pType->GatherFields(vFields); + for (auto pFormatField : vFields) + { + SwDocInfoField* pDocInfoField = static_cast<SwDocInfoField*>(pFormatField->GetField()); + pDocInfoField->SetSubType(pDocInfoField->GetSubType() & ~SwDocInfoSubType::SubSoftFixed); + } +} + void SwBaseShell::ExecDelete(SfxRequest &rReq) { SwWrtShell &rSh = GetShell(); @@ -962,6 +978,14 @@ void SwBaseShell::Execute(SfxRequest &rReq) break; } + if (pArgs) + { + // FN_UPDATE_FIELDS may be triggered automatically. + // That's why SubSoftFix unlock must not happen implicitly here. + const SfxBoolItem* pUnlockSoftFixed = rReq.GetArg<SfxBoolItem>(FN_PARAM_7); + if (pUnlockSoftFixed && pUnlockSoftFixed->GetValue()) + lcl_UnlockSoftFixed(rSh); + } rSh.UpdateDocStat(); rSh.EndAllTableBoxEdit(); rSh.SwViewShell::UpdateFields(true); @@ -1007,6 +1031,7 @@ void SwBaseShell::Execute(SfxRequest &rReq) rSh.EndAllAction(); } SfxDispatcher &rDis = *rTempView.GetViewFrame().GetDispatcher(); + lcl_UnlockSoftFixed(rSh); rDis.Execute( FN_UPDATE_FIELDS ); rDis.Execute( FN_UPDATE_TOX ); rDis.Execute( FN_UPDATE_CHARTS ); diff --git a/sw/source/uibase/shells/textfld.cxx b/sw/source/uibase/shells/textfld.cxx index 5046bff02b18..3eb4dc5b230d 100644 --- a/sw/source/uibase/shells/textfld.cxx +++ b/sw/source/uibase/shells/textfld.cxx @@ -225,7 +225,13 @@ void SwTextShell::ExecField(SfxRequest &rReq) if (pField) { - rSh.UpdateOneField(*pField); + if (pField->GetTypeId() == SwFieldTypesEnum::DocumentInfo) + { + // FN_UPDATE_SEL_FIELD is not called automatically. See SubSoftFixed definition. + SwDocInfoField* pDocInfo = static_cast<SwDocInfoField*>( pField ); + pDocInfo->SetSubType(~SwDocInfoSubType::SubSoftFixed & pDocInfo->GetSubType()); + } + rSh.UpdateOneField(*pField); } break; } diff --git a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx index f1d1fe765b98..e12251e86e15 100644 --- a/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx +++ b/sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx @@ -9048,8 +9048,8 @@ void DomainMapper_Impl::SetFieldResult(OUString const& rResult) // LO always automatically updates a DocInfo field from the File-Properties-Custom Prop // while MS Word requires the user to manually refresh the field (with F9). // In other words, Word lets the field to be out of sync with the controlling variable. - // Marking as FIXEDFLD solves the automatic replacement problem, but of course prevents - // Writer from making any changes, even on an F9 refresh. + // Marking as SoftFixed solves the automatic replacement problem and lets the user + // manually update the field (e.g. F9 refresh). OUString sVariable = pContext->GetVariableValue(); if (rResult.getLength() != sVariable.getLength()) { @@ -9057,10 +9057,13 @@ void DomainMapper_Impl::SetFieldResult(OUString const& rResult) if (nLen >= 0) sVariable = sVariable.copy(0, nLen); } - bool bCustomFixedField = rResult != sVariable && - xServiceInfo->supportsService(u"com.sun.star.text.TextField.DocInfo.Custom"_ustr); + if (rResult != sVariable && + xServiceInfo->supportsService(u"com.sun.star.text.TextField.DocInfo.Custom"_ustr)) + { + xFieldProperties->setPropertyValue(u"IsSoftFixed"_ustr, uno::Any(true)); + } - if (bCustomFixedField || xServiceInfo->supportsService( + if (xServiceInfo->supportsService( u"com.sun.star.text.TextField.DocInfo.CreateDateTime"_ustr)) { // Creation time is const, don't try to update it. diff --git a/sw/uiconfig/sglobal/menubar/menubar.xml b/sw/uiconfig/sglobal/menubar/menubar.xml index d8cd4226a3a1..2d573f761125 100644 --- a/sw/uiconfig/sglobal/menubar/menubar.xml +++ b/sw/uiconfig/sglobal/menubar/menubar.xml @@ -752,7 +752,7 @@ <menu:menuitem menu:id=".uno:UpdateAll"/> <menu:menuseparator/> <menu:menuitem menu:id=".uno:Repaginate"/> - <menu:menuitem menu:id=".uno:UpdateFields"/> + <menu:menuitem menu:id=".uno:UpdateFields?UnlockSoftFixed:bool=1"/> <menu:menuitem menu:id=".uno:UpdateAllIndexes"/> <menu:menuitem menu:id=".uno:UpdateCurIndex"/> <menu:menuitem menu:id=".uno:UpdateAllLinks"/> diff --git a/sw/uiconfig/sweb/menubar/menubar.xml b/sw/uiconfig/sweb/menubar/menubar.xml index ad0d973e896e..332cb78242a8 100644 --- a/sw/uiconfig/sweb/menubar/menubar.xml +++ b/sw/uiconfig/sweb/menubar/menubar.xml @@ -615,7 +615,7 @@ <menu:menuitem menu:id=".uno:UpdateAll"/> <menu:menuseparator/> <menu:menuitem menu:id=".uno:Repaginate"/> - <menu:menuitem menu:id=".uno:UpdateFields"/> + <menu:menuitem menu:id=".uno:UpdateFields?UnlockSoftFixed:bool=1"/> <menu:menuitem menu:id=".uno:UpdateAllIndexes"/> <menu:menuitem menu:id=".uno:UpdateCurIndex"/> <menu:menuitem menu:id=".uno:UpdateAllLinks"/> diff --git a/sw/uiconfig/swform/menubar/menubar.xml b/sw/uiconfig/swform/menubar/menubar.xml index 8ac876b1e24a..eb7c8294678d 100644 --- a/sw/uiconfig/swform/menubar/menubar.xml +++ b/sw/uiconfig/swform/menubar/menubar.xml @@ -695,7 +695,7 @@ <menu:menuitem menu:id=".uno:UpdateAll"/> <menu:menuseparator/> <menu:menuitem menu:id=".uno:Repaginate"/> - <menu:menuitem menu:id=".uno:UpdateFields"/> + <menu:menuitem menu:id=".uno:UpdateFields?UnlockSoftFixed:bool=1"/> <menu:menuitem menu:id=".uno:UpdateAllIndexes"/> <menu:menuitem menu:id=".uno:UpdateCurIndex"/> <menu:menuitem menu:id=".uno:UpdateAllLinks"/> diff --git a/sw/uiconfig/swreport/menubar/menubar.xml b/sw/uiconfig/swreport/menubar/menubar.xml index 2296639f88b7..8cc8aa89dd03 100644 --- a/sw/uiconfig/swreport/menubar/menubar.xml +++ b/sw/uiconfig/swreport/menubar/menubar.xml @@ -649,7 +649,7 @@ <menu:menuitem menu:id=".uno:UpdateAll"/> <menu:menuseparator/> <menu:menuitem menu:id=".uno:Repaginate"/> - <menu:menuitem menu:id=".uno:UpdateFields"/> + <menu:menuitem menu:id=".uno:UpdateFields?UnlockSoftFixed:bool=1"/> <menu:menuitem menu:id=".uno:UpdateAllIndexes"/> <menu:menuitem menu:id=".uno:UpdateCurIndex"/> <menu:menuitem menu:id=".uno:UpdateAllLinks"/> diff --git a/sw/uiconfig/swriter/menubar/menubar.xml b/sw/uiconfig/swriter/menubar/menubar.xml index cbe39b64072a..07131e57f1d2 100644 --- a/sw/uiconfig/swriter/menubar/menubar.xml +++ b/sw/uiconfig/swriter/menubar/menubar.xml @@ -800,7 +800,7 @@ <menu:menuitem menu:id=".uno:Repaginate"/> <menu:menuitem menu:id=".uno:UpdateSelectedField" menu:style="text"/> <menu:menuitem menu:id=".uno:ConvertSelectedField" menu:style="text"/> - <menu:menuitem menu:id=".uno:UpdateFields"/> + <menu:menuitem menu:id=".uno:UpdateFields?UnlockSoftFixed:bool=1"/> <menu:menuitem menu:id=".uno:UpdateAllIndexes"/> <menu:menuitem menu:id=".uno:UpdateCurIndex"/> <menu:menuitem menu:id=".uno:UpdateAllLinks"/> diff --git a/sw/uiconfig/swriter/ui/navigatorpanel.ui b/sw/uiconfig/swriter/ui/navigatorpanel.ui index 8ce53c218713..81bcdc3ccab4 100644 --- a/sw/uiconfig/swriter/ui/navigatorpanel.ui +++ b/sw/uiconfig/swriter/ui/navigatorpanel.ui @@ -1222,7 +1222,7 @@ <property name="toolbar-style">icons</property> <property name="show-arrow">False</property> <child> - <object class="GtkToolButton" id=".uno:UpdateFields"> + <object class="GtkToolButton" id=".uno:UpdateFields?UnlockSoftFixed:bool=1"> <property name="visible">True</property> <property name="halign">start</property> <property name="valign">start</property> diff --git a/sw/uiconfig/swriter/ui/notebookbar.ui b/sw/uiconfig/swriter/ui/notebookbar.ui index 478370bbc788..94174185193b 100644 --- a/sw/uiconfig/swriter/ui/notebookbar.ui +++ b/sw/uiconfig/swriter/ui/notebookbar.ui @@ -1566,7 +1566,7 @@ <object class="GtkMenuItem" id="UpdateFieldsD"> <property name="visible">True</property> <property name="can-focus">False</property> - <property name="action-name">.uno:UpdateFields</property> + <property name="action-name">.uno:UpdateFields?UnlockSoftFixed:bool=1</property> </object> </child> <child> diff --git a/sw/uiconfig/swriter/ui/notebookbar_compact.ui b/sw/uiconfig/swriter/ui/notebookbar_compact.ui index 013aa0e88aff..81ca53b55595 100644 --- a/sw/uiconfig/swriter/ui/notebookbar_compact.ui +++ b/sw/uiconfig/swriter/ui/notebookbar_compact.ui @@ -1730,7 +1730,7 @@ <object class="GtkMenuItem" id="UpdateFieldsD"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="action_name">.uno:UpdateFields</property> + <property name="action_name">.uno:UpdateFields?UnlockSoftFixed:bool=1</property> </object> </child> <child> diff --git a/sw/uiconfig/swriter/ui/notebookbar_groupedbar_compact.ui b/sw/uiconfig/swriter/ui/notebookbar_groupedbar_compact.ui index e586b93960aa..ffdc48935275 100644 --- a/sw/uiconfig/swriter/ui/notebookbar_groupedbar_compact.ui +++ b/sw/uiconfig/swriter/ui/notebookbar_groupedbar_compact.ui @@ -2567,7 +2567,7 @@ <object class="GtkMenuItem" id="MenuReference-UpdateFields"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="action_name">.uno:UpdateFields</property> + <property name="action_name">.uno:UpdateFields?UnlockSoftFixed:bool=1</property> </object> </child> <child> diff --git a/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui b/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui index 769c9b33e9eb..0c807e1ec826 100644 --- a/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui +++ b/sw/uiconfig/swriter/ui/notebookbar_groupedbar_full.ui @@ -2689,7 +2689,7 @@ <object class="GtkMenuItem" id="MenuReference-UpdateFields"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="action_name">.uno:UpdateFields</property> + <property name="action_name">.uno:UpdateFields?UnlockSoftFixed:bool=1</property> </object> </child> <child> diff --git a/sw/uiconfig/swxform/menubar/menubar.xml b/sw/uiconfig/swxform/menubar/menubar.xml index c004a9593410..1ac5d68b367a 100644 --- a/sw/uiconfig/swxform/menubar/menubar.xml +++ b/sw/uiconfig/swxform/menubar/menubar.xml @@ -741,7 +741,7 @@ <menu:menuitem menu:id=".uno:UpdateAll"/> <menu:menuseparator/> <menu:menuitem menu:id=".uno:Repaginate"/> - <menu:menuitem menu:id=".uno:UpdateFields"/> + <menu:menuitem menu:id=".uno:UpdateFields?UnlockSoftFixed:bool=1"/> <menu:menuitem menu:id=".uno:UpdateAllIndexes"/> <menu:menuitem menu:id=".uno:UpdateCurIndex"/> <menu:menuitem menu:id=".uno:UpdateAllLinks"/>
