diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-01-24 09:36:46 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-01-24 12:48:24 +0100 |
commit | e14fafaafb3500d65be9c1b69fcb86b31d36468c (patch) | |
tree | a308d8f2adf477aef41f25fbf9d0cb600627cf41 /offapi/UnoApi_offapi.mk | |
parent | Fix typo (diff) | |
download | core-e14fafaafb3500d65be9c1b69fcb86b31d36468c.tar.gz core-e14fafaafb3500d65be9c1b69fcb86b31d36468c.zip |
sw: make it possible to listen to paste events
The use-case is that the user pastes content and custom postprocessing
is necessary for the pasted content. This is not easy by default, since
the cursor is at the end of the pasted content, so the start is not
known -- even if you intercept the paste UNO command.
Precisely tracking the start is possible when using the internal API,
SwReader::Read() does something similar already to track the undo range.
Only expose the text selection after paste (as a start), but design the
API in a way so that other pasted content type (e.g. image) can be
added in a backwards-compatible way later.
Change-Id: If35bda4244cc417e4858124fb75f7608b95fc556
Reviewed-on: https://gerrit.libreoffice.org/66807
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'offapi/UnoApi_offapi.mk')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 9934fff83b8c..f120c550e8e2 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -3784,6 +3784,8 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/text,\ XPagePrintable \ XParagraphAppend \ XParagraphCursor \ + XPasteBroadcaster \ + XPasteListener \ XRedline \ XReferenceMarksSupplier \ XRelativeTextContentInsert \ |