[Libreoffice-commits] core.git: sc/inc sc/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Mon Jul 25 06:04:45 UTC 2016


 sc/inc/hints.hxx               |   13 -------------
 sc/source/core/tool/hints.cxx  |    6 ------
 sc/source/ui/unoobj/docuno.cxx |   17 -----------------
 3 files changed, 36 deletions(-)

New commits:
commit 4d4d77a1aad1bcae18bad35dad5308d33d6b2e51
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sun Jul 24 20:43:33 2016 +0200

    sc: remove ScPointerChangedHint class
    
    nFlags is never set, ctor was removed
    in commit 716636d558e9cc9b910da6d127314d2b20cdf0b6
    
    Change-Id: Id1a608999042ff29b26162fddccaa35806a3e9e6
    Reviewed-on: https://gerrit.libreoffice.org/27488
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/sc/inc/hints.hxx b/sc/inc/hints.hxx
index 9999326..ac740bc 100644
--- a/sc/inc/hints.hxx
+++ b/sc/inc/hints.hxx
@@ -66,19 +66,6 @@ public:
     SCsTAB          GetDz() const           { return nDz; }
 };
 
-#define SC_POINTERCHANGED_NUMFMT    1
-
-class ScPointerChangedHint : public SfxHint
-{
-    sal_uInt16          nFlags;
-
-public:
-
-                    virtual ~ScPointerChangedHint();
-
-    sal_uInt16          GetFlags() const            { return nFlags; }
-};
-
 //! move ScLinkRefreshedHint to a different file?
 enum class ScLinkRefType {
     NONE, SHEET, AREA, DDE
diff --git a/sc/source/core/tool/hints.cxx b/sc/source/core/tool/hints.cxx
index 3cbd133..d48b735 100644
--- a/sc/source/core/tool/hints.cxx
+++ b/sc/source/core/tool/hints.cxx
@@ -48,12 +48,6 @@ ScUpdateRefHint::~ScUpdateRefHint()
 {
 }
 
-// ScPointerChangedHint - pointer has become invalid
-
-ScPointerChangedHint::~ScPointerChangedHint()
-{
-}
-
 //      ScLinkRefreshedHint - a link has been refreshed
 
 ScLinkRefreshedHint::ScLinkRefreshedHint() :
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 0146c20..212d701 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -1125,23 +1125,6 @@ void ScModelObj::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
             }
         }
     }
-    else if ( dynamic_cast<const ScPointerChangedHint*>(&rHint) )
-    {
-        sal_uInt16 nFlags = static_cast<const ScPointerChangedHint&>(rHint).GetFlags();
-        if (nFlags & SC_POINTERCHANGED_NUMFMT)
-        {
-            //  NumberFormatter-Pointer am Uno-Objekt neu setzen
-
-            if (GetFormatter().is())
-            {
-                SvNumberFormatsSupplierObj* pNumFmt =
-                    SvNumberFormatsSupplierObj::getImplementation(
-                        uno::Reference<util::XNumberFormatsSupplier>(xNumberAgg, uno::UNO_QUERY) );
-                if ( pNumFmt && pDocShell )
-                    pNumFmt->SetNumberFormatter( pDocShell->GetDocument().GetFormatTable() );
-            }
-        }
-    }
 
     // always call parent - SfxBaseModel might need to handle the same hints again
     SfxBaseModel::Notify( rBC, rHint );     // SfxBaseModel is derived from SfxListener


More information about the Libreoffice-commits mailing list