summaryrefslogtreecommitdiff
path: root/sw/source/core/attr/format.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2020-11-02 10:41:44 +0100
committerBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2020-11-02 15:05:55 +0100
commitd0292dd0a3bd241ab073bea6f5a985b8be154d78 (patch)
tree6d4089fdb49c4721e3adda0983899cdf6d37a289 /sw/source/core/attr/format.cxx
parent68bb7157ca652b277e7b296bb8e8526b05115d5d (diff)
sw/source/core/undo: ModifyNotification no more ...
- also: introduce SwFormat::RemoveAllUnos() as a member function, because that is where this belongs ... - ... and then also use it elsewhere if possible. Change-Id: I9cc073a41ef1077429f648309806fa433bdcec99 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105173 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/source/core/attr/format.cxx')
-rw-r--r--sw/source/core/attr/format.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx
index 6713ae28f065..22430f84b125 100644
--- a/sw/source/core/attr/format.cxx
+++ b/sw/source/core/attr/format.cxx
@@ -779,4 +779,9 @@ drawinglayer::attribute::SdrAllFillAttributesHelperPtr SwFormat::getSdrAllFillAt
return drawinglayer::attribute::SdrAllFillAttributesHelperPtr();
}
+void SwFormat::RemoveAllUnos()
+{
+ SwPtrMsgPoolItem aMsgHint(RES_REMOVE_UNO_OBJECT, this);
+ SwClientNotify(*this, sw::LegacyModifyHint(&aMsgHint, &aMsgHint));
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */