diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-10-07 18:02:12 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-10-25 19:30:34 +0200 |
commit | 4bb6533d398cc76d7ff292a9e47dae87fac74f83 (patch) | |
tree | 6104d470627c2592624f315e8c8b32435ff5c109 /sw/inc | |
parent | 9e3ec1b50052e687d6bc79db8e2ed5ebbd0eb24a (diff) |
use pull model also for LOK text selection
Make LOK_CALLBACK_TEXT_SELECTION, LOK_CALLBACK_TEXT_SELECTION_START,
LOK_CALLBACK_TEXT_SELECTION_END and LOK_CALLBACK_TEXT_VIEW_SELECTION
also use pull model, i.e. LO core will only set a flag and when
CallbackFlushHandler needs the actual data it'll use getLOKPayload().
This again avoids a large number of messages passed to
CallbackFlushHandler only for them to be sooner or later discarded.
Change-Id: Ia7528039be996a6e9e8491b4eba3f4133582fa56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124146
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/viscrs.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx index c8b8b356f7e3..3c355e01800c 100644 --- a/sw/inc/viscrs.hxx +++ b/sw/inc/viscrs.hxx @@ -113,6 +113,8 @@ public: // Optional set the parameters pX, pY static void Get1PixelInLogic( const SwViewShell& rSh, tools::Long* pX = nullptr, tools::Long* pY = nullptr ); + + OString getLOKPayload(int nType, int nViewId) const; }; class SW_DLLPUBLIC SwShellCursor : public virtual SwCursor, public SwSelPaintRects |