diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-08-10 20:08:56 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-08-11 08:51:43 +0200 |
commit | 5131f5ba19ebc5de17139dbcf373866a9b155b2b (patch) | |
tree | 627beb6b4b636e0161ba92ecf7fc3005a2c3b983 /include | |
parent | 46b4eb8b0e9325f8c29cd391baf9504bccee1837 (diff) |
editviewoverlay: corrected AttributeChange
EditView on Overlay visualization needs to handle
selection change when e.g. FontSize attribute of
a selected text portion changes. Changed handling
so that selection overlay is an integral part of
text visualization overlay and refreshing text
visualization always refreshes selection visuals,
but not the other way around. Both anyways check
for real change, so just extra testing is avoided
which is still the better solution
Change-Id: I3ce6570fd9a18a7c1d7ced4bc4ca9aeda57538e0
Reviewed-on: https://gerrit.libreoffice.org/40993
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editview.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx index 8b98d1f28360..84e41d4af2f2 100644 --- a/include/editeng/editview.hxx +++ b/include/editeng/editview.hxx @@ -92,7 +92,14 @@ public: EditViewCallbacks() {} virtual ~EditViewCallbacks(); + // call this when text visualization changed in any way. It + // will also update selection, so no need to call this self + // additionally (but will also do no harm) virtual void EditViewInvalidate() const = 0; + + // call this when only selection is changed. Text change will + // then *not* be checked and not be reacted on. Still, when + // only the selection is changed, this is useful and faster virtual void EditViewSelectionChange() const = 0; }; |