framework/source/uielement/langselectionstatusbarcontroller.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 161e8c63a5175a634b3ddaea4314e335b290a298
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Thu Aug 18 11:02:29 2022 -0400
Commit:     Henry Castro <hcas...@collabora.com>
CommitDate: Mon Oct 3 15:43:09 2022 +0200

    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 <hcas...@collabora.com>
    Change-Id: Idb60decf1c582c906d24d10fc248cfd20f8f4cbf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138499
    Tested-by: Jenkins

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)
     {

Reply via email to