https://bugs.documentfoundation.org/show_bug.cgi?id=161574

--- Comment #5 from Kira Tubo <kira.t...@gmail.com> ---
If the ask is to create strings that would ONLY affect the labels displayed in
the context menu items (I assume this means multiple labels can apply to one
.uno command), then I'm not certain how to approach this. 

However, I can kind of see how to fix the issue by creating new .uno commands
for each of the new strings, then utilizing the disableItem() method (found in
sw/source/uibase/shells/textidx.cxx and sw/source/uibase/uiview/viewstat.cxx)
to remove the item from the context menu if the TOXTypes do not match.
Something along the lines of: 

if (TOXType != TOX_TABLES)
{
   //3 new UNO commands for update/edit/remove index of tables
   disableItem(FN_UPDATE_CUR_TOX_TABLES)
   disableItem(FN_EDIT_CURRENT_TOX_TABLES)
   disableItem(FN_REMOVE_CUR_TOX_TABLES)
}

...etc... but not sure if this is what you're looking for :)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to