diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-11-15 18:11:40 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-11-23 18:29:30 +0100 |
commit | 2f815d3092e8ba15c7f03f789b962569944f1d8a (patch) | |
tree | 0d9b7ec69f01d465617787610695ab84faf61d06 /sw/source/uibase/lingu/olmenu.cxx | |
parent | c9c19fed241d678671c485247a34c399ff212228 (diff) |
SpellingPopup: Convert char dialog related items to use slot id
After this change we can make sw_CharDialog() a local function.
Change-Id: I34b15fccaed07b5d89f63a69da8c870fff0e9b14
Reviewed-on: https://gerrit.libreoffice.org/83571
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw/source/uibase/lingu/olmenu.cxx')
-rw-r--r-- | sw/source/uibase/lingu/olmenu.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx index 8cc000318df0..e4dbe6ed9b76 100644 --- a/sw/source/uibase/lingu/olmenu.cxx +++ b/sw/source/uibase/lingu/olmenu.cxx @@ -843,8 +843,8 @@ void SwSpellPopup::Execute( sal_uInt16 nId ) } else if (nId == MN_SET_SELECTION_MORE) { - //Open Format/Character Dialog - sw_CharDialog( *m_pSh, true, SID_ATTR_CHAR_FONT, nullptr, nullptr ); + SfxStringItem aDlgString(FN_PARAM_1, "font"); + m_pSh->GetView().GetViewFrame()->GetDispatcher()->ExecuteList(SID_CHAR_DLG, SfxCallMode::SYNCHRON, { &aDlgString }); } else if (MN_SET_LANGUAGE_PARAGRAPH_START <= nId && nId <= MN_SET_LANGUAGE_PARAGRAPH_END) { @@ -873,11 +873,7 @@ void SwSpellPopup::Execute( sal_uInt16 nId ) } else if (nId == MN_SET_PARA_MORE) { - m_pSh->Push(); // save cursor - SwLangHelper::SelectCurrentPara( *m_pSh ); - //Open Format/Character Dialog - sw_CharDialog( *m_pSh, true, SID_ATTR_CHAR_FONT, nullptr, nullptr ); - m_pSh->Pop(SwCursorShell::PopMode::DeleteCurrent); // restore cursor + m_pSh->GetView().GetViewFrame()->GetDispatcher()->Execute( SID_CHAR_DLG_FOR_PARAGRAPH ); } } |