summaryrefslogtreecommitdiff
path: root/sc/inc/brdcst.hxx
AgeCommit message (Collapse)Author
2016-12-08convert SFX_HINT to scoped enumNoel Grandin
Notes (*) In SC, BULK_DATACHANGED was or'ed into the hint id. Replaced with a dynamic_cast check. (*) In SC, removed the hint id field from ScIndexHint, no point in storing the hint id twice (*) Fold the SfxStyleSheetHintId enum into the new SfxHintId enum, no point in storing two different hint ids (*) In some cases, multiple #define's used to map to the same SFX_HINT value (notably the SFX_HINT_USER* values). I made all of those separate values. Change-Id: I990e2fb587335ebc51c9005588c6a44f768d9de5 Reviewed-on: https://gerrit.libreoffice.org/31751 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-23perf: eliminate SfxSimpleHint and move to SfxHint, tdf#87101 relatedEike Rathke
There were over 150 places in *::Notify() functions that did some dynamic_cast<SfxSimpleHint*> of which ~98% were unnecessary because the base class SfxHint passed was an SfxSimpleHint anyway. dynamic_cast operations come with quite some cost, so avoid if possible. Specifically for ScFormulaCell::Notify() that created a bottleneck in scenarios where cells were notified that already handled a previous notification. In mass operations doing the dynamic_cast before it could be decided whether having to act on it or not this made 2/3 of all time spent in the Notify() call. To get rid of that rename/move SfxSimpleHint to SfxHint and let classes derive from SfxHint instead of SfxSimpleHint. This comes only with a slight cost that an additional sal_uInt32 is transported in such hints, initialized to 0, but this is neglectable compared to the huge gain. For the rare cases where a Notify() actually expects both, an SfxHint (formerly SfxSimpleHint) and a derived hint, this changed order of the dynamic_cast involved so the simple SfxHint::GetId() is handled last. Modules using such combinations can further optimize by treating the simple SfxHint::GetId() first once verified that none of the other derived hints use an ID not equal to zero respectively none of the ID values the simple hint uses. Change-Id: I9fcf723e3a4487ceb92336189d23a62c344cf0ce Reviewed-on: https://gerrit.libreoffice.org/29205 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2016-09-01remove some unnecessary global.hxx includesJochen Nitschke
Change-Id: I50afe36056d32352a1c3118bc445fd55bcf10b6e Reviewed-on: https://gerrit.libreoffice.org/28568 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-12-27sal_uLong to sal_uInt32, ScHint relatedMatteo Casalin
Change-Id: I84402bf4b8d69ae350f6449cf4d1fd7c5c325f3c
2015-07-22loplugin:unusedmethods scripting,scNoel Grandin
Change-Id: I0016aefce1aad3a89bd23dcec6fbab58a7c844d7 Reviewed-on: https://gerrit.libreoffice.org/17263 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-06SfxHint: convert home-grown RTTI to normal C++ RTTINoel Grandin
Also note that I fixed a bug in SvxFontMenuControl::Notify where the if statement had the check the wrong way around. Change-Id: I611e8929c65818191e36bd80f2b985820ada4411 Reviewed-on: https://gerrit.libreoffice.org/11147 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-06-25remove whitespaceMarkus Mohrhard
Change-Id: Ib15413e73409cc33de01fa92a47b9d1237cfc4b2
2014-05-11fix-includes.pl: scThomas Arnhold
Change-Id: Iade3fedac5d2f8e978b7dd9c30f001d7d1564946
2014-04-19fixincludeguards.sh: scThomas Arnhold
sorry, huge one...
2014-03-26Split TYPEINFO into plain and TYPEINFO_OVERRIDEStephan Bergmann
...where the latter contains SAL_OVERRIDE annotations Change-Id: Id64794b388d83dfe7026440e8b20a5b5efd412d1
2014-03-15fdo#71491: Adjust reference during undo of drag-n-drop of cell range.Kohei Yoshida
Also with this commit, the signature of SvtListener::Notify() changes, by dropping the first argument which nobody uses. This change was necessary in order to call it directly without needing to pass any broadcaster instance. Change-Id: I6a1e97f0fb1e070d1d8f7db614690b04c9e8024e
2013-05-09ScHint doesn't need to store broadcaster pointer. Let's not.Kohei Yoshida
Change-Id: I86f9b44c87f3a730902d12505252e4b7e0a24fe4
2013-05-09Remove SC_HINT_DYING. We don't do anything specific for this hint.Kohei Yoshida
Use SC_HINT_DATACHANGED instead, and do broadcast *after* the cell is removed from the cell array, to avoid the dying cell from being used during recalculation after the broadcast. Change-Id: I8eb31eafa50c737ab683ca697657e64e52ae52e7
2013-03-28We only need to send the broadcaster instance with ScHint.Kohei Yoshida
Another ScBaseCell eliminated. Change-Id: I32a07024dd1d8ab536038942aa7209a7829d193c
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2011-03-10Merge commit 'ooo/DEV300_m101' into integration/dev300_m101Kohei Yoshida
2011-01-17removetooltypes01: #i112600# remove tooltypes from scMikhail Voytenko
2010-10-28add modelines to .hxx files as wellCaolán McNamara
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun ↵Jens-Heiner Rechtien
Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision)
2009-10-16#i103496#: split svtools; improve ConfitItemsMathias Bauer
2009-06-04CWS-TOOLING: integrate CWS calclinkfixesKurt Zenker
2009-04-27 11:47:56 +0200 nn r271258 : #i101273# Uno broadcasts in DoRecalc/DoHardRecalc 2009-04-24 17:20:19 +0200 nn r271226 : #i101304# don't load source file of external ref for empty cells in the cached data 2009-04-24 14:15:43 +0200 nn r271212 : #i101319# handle merged cells and row groups when loading cached data for external refs
2008-04-10INTEGRATION: CWS changefileheader (1.5.698); FILE MERGEDRüdiger Timm
2008/04/01 15:29:17 thb 1.5.698.3: #i85898# Stripping all external header guards 2008/04/01 12:35:50 thb 1.5.698.2: #i85898# Stripping all external header guards 2008/03/31 17:13:26 rt 1.5.698.1: #i87441# Change license header to LPGL v3.
2005-09-08INTEGRATION: CWS ooo19126 (1.4.452); FILE MERGEDRüdiger Timm
2005/09/05 15:00:33 rt 1.4.452.1: #i54170# Change license header: remove SISSL
2004-06-04INTEGRATION: CWS rowlimit (1.3.302); FILE MERGEDOliver Bolte
2003/11/28 19:47:16 er 1.3.302.1: #i1967# move ScAddress, ScRange from global.hxx to address.hxx
2002-11-27#90279# performance: methods to modify hint instead of creating new hints ↵Eike Rathke
every time
2001-02-13new: TableOpDirtyEike Rathke
2000-09-18initial importJens-Heiner Rechtien