diff options
-rw-r--r-- | sc/inc/hints.hxx | 13 | ||||
-rw-r--r-- | sc/source/core/tool/hints.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 17 |
3 files changed, 0 insertions, 36 deletions
diff --git a/sc/inc/hints.hxx b/sc/inc/hints.hxx index 9999326e7738..ac740bcf7594 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 3cbd133e99b3..d48b735cda2e 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 0146c20d7fd7..212d7017b1b4 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 |