diff options
author | Henry Castro <hcastro@collabora.com> | 2022-08-18 11:02:29 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2022-10-03 15:43:09 +0200 |
commit | 161e8c63a5175a634b3ddaea4314e335b290a298 (patch) | |
tree | bcb579fd10346b797efe7233c705684861fc1a7a /framework | |
parent | bd84c33f4247219a2888f68edfa7b704ba320787 (diff) |
tdf#127856: sc: Status bar "languages" when you click...
the popup "More.." button it will show the format cells dialog.
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: Idb60decf1c582c906d24d10fc248cfd20f8f4cbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138499
Tested-by: Jenkins
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/langselectionstatusbarcontroller.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/source/uielement/langselectionstatusbarcontroller.cxx b/framework/source/uielement/langselectionstatusbarcontroller.cxx index 807806364f34..b0f71f3e3f33 100644 --- a/framework/source/uielement/langselectionstatusbarcontroller.cxx +++ b/framework/source/uielement/langselectionstatusbarcontroller.cxx @@ -120,6 +120,7 @@ void LangSelectionStatusbarController::LangMenu( return; const Reference<XServiceInfo> xService(m_xFrame->getController()->getModel(), UNO_QUERY); + bool bCalc = xService.is() && xService->supportsService("com.sun.star.sheet.SpreadsheetDocument"); bool bWriter = xService.is() && xService->supportsService("com.sun.star.text.GenericTextDocument"); //add context menu Reference< awt::XPopupMenu > xPopupMenu( awt::PopupMenu::create( m_xContext ) ); @@ -243,7 +244,10 @@ void LangSelectionStatusbarController::LangMenu( } else if (nId == MID_LANG_DEF_MORE) { - aBuff.append( ".uno:LanguageStatus?Language:string=*" ); + if (bCalc) + aBuff.append( ".uno:FormatCellDialog" ); + else + aBuff.append( ".uno:LanguageStatus?Language:string=*" ); } else if (MID_LANG_PARA_1 <= nId && nId <= MID_LANG_PARA_9) { |