diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-09-28 14:48:59 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-15 13:26:10 +0100 |
commit | a1077b3cbdb847a452fccd15d9b834bc262cfb62 (patch) | |
tree | 68b006b881ac12da5b8faf2151bab0d02db8598d /sc/source/ui/inc | |
parent | 8552e5fa1c56bb3ed7c86ef3c4922635e4178ebc (diff) |
fdo#47958: gross cut/paste signal emission nonsense
Change-Id: I60b7a4c5b80410429e5489ee6517bbda8cf328dd
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/docsh.hxx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx index 964c3ee868c9..4159dd583c9e 100644 --- a/sc/source/ui/inc/docsh.hxx +++ b/sc/source/ui/inc/docsh.hxx @@ -35,6 +35,7 @@ #include "shellids.hxx" #include "refreshtimer.hxx" #include "optutil.hxx" +#include "docuno.hxx" #include <boost/unordered_map.hpp> #include <cppuhelper/implbase1.hxx> @@ -62,6 +63,7 @@ class ScDocShellModificator; class ScOptSolverSave; class ScSheetSaveData; class ScFlatBoolRowSegments; +class HelperModelObj; struct ScColWidthParam; #if ENABLE_TELEPATHY class ScCollaboration; @@ -473,6 +475,34 @@ public: void SetDocumentModified(); }; +class HelperNotifyChanges +{ + private: + ScModelObj* pModelObj; + bool mbMustPropagateChanges; + ScRangeList* mpChangeRanges; + OUString mpOperation; + + public: + HelperNotifyChanges(ScRangeList* pChangeRanges, const OUString& pOperation) + { + mpChangeRanges = pChangeRanges; + mpOperation = pOperation; + if ( pModelObj && pModelObj->HasChangesListeners() ) + mbMustPropagateChanges = true; + } + ~HelperNotifyChanges() + { + if (mbMustPropagateChanges && mpChangeRanges) + { + pModelObj->NotifyChanges(mpOperation, *mpChangeRanges); + } + } + bool getMustPropagateChanges() + { + return mbMustPropagateChanges; + } +}; #endif |