summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2019-11-29 15:00:22 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2019-12-01 18:44:40 +0100
commit2f75a2cc6915f85321f848e6ede38fe40b13bf98 (patch)
tree9b60ec0d3fc2d43de634219560c648adc7b1dcaf
parent65d3285536e3342c2b1b669d0dc8c134bc7254c6 (diff)
SpellingPopup: lok: we don't need to disable menu items for online.
Now, that we generate the conext menu in JS code, we can control the visibility of items. Change-Id: I09112619a9669e6ebf1a8d468e0329b8914db0ff Reviewed-on: https://gerrit.libreoffice.org/84153 Tested-by: Jenkins Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r--sw/source/uibase/lingu/olmenu.cxx12
1 files changed, 0 insertions, 12 deletions
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx
index 16e068d20372..48c538a75a6a 100644
--- a/sw/source/uibase/lingu/olmenu.cxx
+++ b/sw/source/uibase/lingu/olmenu.cxx
@@ -304,13 +304,6 @@ SwSpellPopup::SwSpellPopup(
vcl::CommandInfoProvider::GetPopupLabelForCommand(aProperties));
}
- if (comphelper::LibreOfficeKit::isActive())
- {
- m_xPopupMenu->HideItem(m_nCorrectDialogId);
- m_xPopupMenu->HideItem(m_nAddId);
- m_xPopupMenu->HideItem(m_nAddMenuId);
- m_xPopupMenu->HideItem(m_nCorrectMenuId);
- }
sal_uInt16 nItemPos = m_xPopupMenu->GetItemPos(m_nIgnoreWordId);
OUString aIgnoreSelection( SwResId( STR_IGNORE_SELECTION ) );
m_xPopupMenu->InsertItem(MN_IGNORE_SELECTION, aIgnoreSelection, MenuItemBits::NONE, OString(), nItemPos);
@@ -592,11 +585,6 @@ SwSpellPopup::SwSpellPopup(
SvtLinguConfig().SetProperty( UPN_IS_GRAMMAR_INTERACTIVE, uno::makeAny( true ));
- if (comphelper::LibreOfficeKit::isActive())
- {
- m_xPopupMenu->HideItem(MN_EXPLANATION_LINK);
- }
-
InitItemCommands(rSuggestions);
}