summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-03-26 09:30:18 +0100
committerJan Holesovsky <kendy@collabora.com>2021-03-30 15:16:57 +0200
commit795005f210e74bf04be798609ca1d4d93be74061 (patch)
tree880b233809d2381597411f1bd24e9e31eeb57e63 /include
parent09afa34955d76419ebe8f4d15780d801f95256ca (diff)
Don't end text editing in other views if shape inserted
This is revert of a small piece of tdf#126180: EndTextEdit on all views before delete/cut slide e6c7a018a0cfee395ce2886d41c908a2447ef5cc Change needed for online where multiple users work together and we need to not disturb other views in editing. Change-Id: I73c2289a9d950465f020f684e9e736148380f5c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113148 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdedtv.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx
index 4351ccee2764..51da6124ed88 100644
--- a/include/svx/svdedtv.hxx
+++ b/include/svx/svdedtv.hxx
@@ -186,6 +186,12 @@ public:
bool IsUndoEnabled() const;
/**
+ * Checks if this or other views have an active text edit, in which case object undos are not
+ * created.
+ */
+ bool CanDoSdrUndo() const;
+
+ /**
* Checks if this or other views have an active text edit, if true, end them.
*/
void EndTextEditAllViews() const;