summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-07-24 20:43:33 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-25 06:04:12 +0000
commit4d4d77a1aad1bcae18bad35dad5308d33d6b2e51 (patch)
tree50a675947399929a810fc8d817acae793e54c78c /sc
parent54cc2f587d2ee2deb9fb334b1b9464213b8823c8 (diff)
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@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/hints.hxx13
-rw-r--r--sc/source/core/tool/hints.cxx6
-rw-r--r--sc/source/ui/unoobj/docuno.cxx17
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