include/svl/hint.hxx              |    2 --
 sc/source/ui/app/inputwin.cxx     |    3 +--
 sc/source/ui/docshell/docfunc.cxx |    2 +-
 sc/source/ui/undo/undotab.cxx     |    2 +-
 4 files changed, 3 insertions(+), 6 deletions(-)

New commits:
commit 540a312af2f02108ea90f5d2a9f3bf573db622e5
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Mon Sep 5 20:31:05 2022 +0200
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Tue Sep 6 01:20:14 2022 +0200

    Related: tdf#150307 Use SfxHintId::ScAreasChanged, tdf#137577 follow-up
    
    ... instead of ScTablesRenamed, as ScAreasChanged (confusingly
    named) was meant exactly for this and also updates the Navigator.
    
    Change-Id: I6d90b82e6d5121e69c1a40af369be36544ad1b3b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139453
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Jenkins

diff --git a/include/svl/hint.hxx b/include/svl/hint.hxx
index f7be42e8160d..0009a2b3b080 100644
--- a/include/svl/hint.hxx
+++ b/include/svl/hint.hxx
@@ -75,7 +75,6 @@ enum class SfxHintId {
     ScAreaChanged,
     ScAreasChanged,
     ScTablesChanged,
-    ScTablesRenamed,
     ScDrawChanged,
     ScDocNameChanged,
     ScAreaLinksChanged,
@@ -190,7 +189,6 @@ inline std::basic_ostream<charT, traits> & operator <<(
     case SfxHintId::ScAreaChanged: return stream << "ScAreaChanged";
     case SfxHintId::ScAreasChanged: return stream << "ScAreasChanged";
     case SfxHintId::ScTablesChanged: return stream << "ScTablesChanged";
-    case SfxHintId::ScTablesRenamed: return stream << "ScTablesRenamed";
     case SfxHintId::ScDrawChanged: return stream << "ScDrawChanged";
     case SfxHintId::ScDocNameChanged: return stream << "ScDocNameChanged";
     case SfxHintId::ScAreaLinksChanged: return stream << "ScAreaLinksChanged";
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 6b695c05bebb..14ef498976ba 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -2399,8 +2399,7 @@ void ScPosWnd::Notify( SfxBroadcaster&, const SfxHint& 
rHint )
     else
     {
         const SfxHintId nHintId = rHint.GetId();
-        if (nHintId == SfxHintId::ScAreasChanged || nHintId == 
SfxHintId::ScNavigatorUpdateAll
-                || nHintId == SfxHintId::ScTablesRenamed)
+        if (nHintId == SfxHintId::ScAreasChanged || nHintId == 
SfxHintId::ScNavigatorUpdateAll)
             FillRangeNames();
     }
 }
diff --git a/sc/source/ui/docshell/docfunc.cxx 
b/sc/source/ui/docshell/docfunc.cxx
index 9b7c64eabc79..1e00b82d2cf4 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -3523,7 +3523,7 @@ bool ScDocFunc::RenameTable( SCTAB nTab, const OUString& 
rName, bool bRecord, bo
         rDocShell.PostPaintExtras();
         aModificator.SetDocumentModified();
         SfxGetpApp()->Broadcast( SfxHint( SfxHintId::ScTablesChanged ) );
-        SfxGetpApp()->Broadcast( SfxHint( SfxHintId::ScTablesRenamed ) );
+        SfxGetpApp()->Broadcast( SfxHint( SfxHintId::ScAreasChanged ) );
 
         bSuccess = true;
     }
diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index 161b900d8d3f..04778626db68 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -436,7 +436,7 @@ void ScUndoRenameTab::DoChange( SCTAB nTabP, const 
OUString& rName ) const
     rDoc.RenameTab( nTabP, rName );
 
     SfxGetpApp()->Broadcast( SfxHint( SfxHintId::ScTablesChanged ) );    // 
Navigator
-    SfxGetpApp()->Broadcast( SfxHint( SfxHintId::ScTablesRenamed ) );    // 
Name Box
+    SfxGetpApp()->Broadcast( SfxHint( SfxHintId::ScAreasChanged ) );     // 
Also Name Box
 
     pDocShell->PostPaintGridAll();
     pDocShell->PostPaintExtras();

Reply via email to