tdf#169800 SwNavigator: Indexes context menu item name change
Changes the name of the Indexes context menu checkbox item "Read-only" to "Protected against manual changes" to match the name in the "Table of Contents, Index, or Bibliography" dialog. Change-Id: I8b80a8fc8a6da62ba0370be75a1a65fdf57fbe68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194806 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
This commit is contained in:
@@ -1956,7 +1956,7 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, rCEvt, bool)
|
||||
bool bRemovePostItEntries = true;
|
||||
bool bRemoveIndexEntry = true;
|
||||
bool bRemoveUpdateIndexEntry = true;
|
||||
bool bRemoveReadonlyIndexEntry = true;
|
||||
bool bRemoveProtectedAgainstManualChangesIndexEntry = true;
|
||||
bool bRemoveCopyEntry = true;
|
||||
bool bRemoveEditEntry = true;
|
||||
bool bRemoveUnprotectEntry = true;
|
||||
@@ -2214,7 +2214,7 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, rCEvt, bool)
|
||||
{
|
||||
bRemoveIndexEntry = false;
|
||||
bRemoveUpdateIndexEntry = false;
|
||||
bRemoveReadonlyIndexEntry = false;
|
||||
bRemoveProtectedAgainstManualChangesIndexEntry = false;
|
||||
const SwTOXBase* pBase = pCnt->GetTOXBase();
|
||||
xPop->set_active(OUString::number(405/*Readonly*/),
|
||||
SwEditShell::IsTOXBaseReadonly(*pBase));
|
||||
@@ -2499,7 +2499,7 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, rCEvt, bool)
|
||||
if (bRemoveUpdateIndexEntry)
|
||||
xPop->remove(OUString::number(402));
|
||||
|
||||
if (bRemoveReadonlyIndexEntry)
|
||||
if (bRemoveProtectedAgainstManualChangesIndexEntry)
|
||||
xPop->remove(OUString::number(405));
|
||||
|
||||
if (bRemoveUnprotectEntry)
|
||||
@@ -2518,8 +2518,8 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, rCEvt, bool)
|
||||
if (bRemoveGotoEntry && bRemoveCopyEntry && bRemoveSelectEntry && bRemoveDeleteEntry
|
||||
&& bRemoveMakeFootnotesEndnotesViceVersaEntry && bRemoveChapterEntries
|
||||
&& bRemovePostItEntries && bRemoveRenameEntry && bRemoveIndexEntry
|
||||
&& bRemoveUpdateIndexEntry && bRemoveReadonlyIndexEntry && bRemoveUnprotectEntry
|
||||
&& bRemoveEditEntry && bRemoveSortOutlineAlphabeticallyInDocument)
|
||||
&& bRemoveUpdateIndexEntry && bRemoveProtectedAgainstManualChangesIndexEntry
|
||||
&& bRemoveUnprotectEntry && bRemoveEditEntry && bRemoveSortOutlineAlphabeticallyInDocument)
|
||||
xPop->remove(u"separator2"_ustr);
|
||||
|
||||
if (!bOutline)
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
<object class="GtkCheckMenuItem" id="405">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes" context="navigatorcontextmenu|STR_READONLY_IDX">Read-_only</property>
|
||||
<property name="label" translatable="yes" context="navigatorcontextmenu|STR_READONLY_IDX">Protected against manual changes</property>
|
||||
<property name="use-underline">True</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
Reference in New Issue
Block a user