[Libreoffice-commits] core.git: sw/source
Tamás Zolnai (via logerrit)
logerrit at kemper.freedesktop.org
Sun Dec 1 17:45:28 UTC 2019
sw/source/uibase/lingu/olmenu.cxx | 12 ------------
1 file changed, 12 deletions(-)
New commits:
commit 2f75a2cc6915f85321f848e6ede38fe40b13bf98
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Fri Nov 29 15:00:22 2019 +0100
Commit: Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Sun Dec 1 18:44:40 2019 +0100
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 at collabora.com>
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);
}
More information about the Libreoffice-commits
mailing list