summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc/olmenu.hxx
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2019-11-18 14:36:51 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2019-11-24 12:17:30 +0100
commit3616bb68f247735c46c1a4cd9568775e77be6441 (patch)
tree1790525de36fff123145a908600915ea032593d3 /sw/source/uibase/inc/olmenu.hxx
parent100b98edcc571ff81ff90d04f3f3bd804eb49a1f (diff)
SpellingPopup: lok: Replace the tunneled context menu.
Send the menu structure instead using LOK_CALLBACK_CONTEXT_MENU. We need to set commands for menu items to make fillPopupMenu() method work. We also need to check whether there is any selection during execution of menu items. In case of LO core execution the suspicious text is selected, however in case of LO online, there is no selection. Change-Id: Id696ee9976d11f6b57e23a3bcc5b483a1d486639 Reviewed-on: https://gerrit.libreoffice.org/83598 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw/source/uibase/inc/olmenu.hxx')
-rw-r--r--sw/source/uibase/inc/olmenu.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/inc/olmenu.hxx b/sw/source/uibase/inc/olmenu.hxx
index 984dfb759872..4b67c9090bce 100644
--- a/sw/source/uibase/inc/olmenu.hxx
+++ b/sw/source/uibase/inc/olmenu.hxx
@@ -126,6 +126,8 @@ public:
~SwSpellPopup();
+ void InitItemCommands(const css::uno::Sequence< OUString >& aSuggestions);
+
PopupMenu& GetMenu()
{
return *m_xPopupMenu.get();
@@ -133,7 +135,6 @@ public:
void Execute( const tools::Rectangle& rPopupPos, vcl::Window* pWin );
void Execute( sal_uInt16 nId );
-
};
#endif