diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-18 09:26:39 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-18 09:27:27 +0100 |
commit | 9ecd31fd3fda782dd16e88fd99dc9c71361482fe (patch) | |
tree | e504141a420750d664e94f6dafb4cd41819e89b9 /editeng | |
parent | cf6cbd29fdeba54bd83a87c1165d49312dc2d2a6 (diff) |
Fix SdrModel::libreOfficeKitCallback() vs ImpEditView duplication
It's better if ImpEditView doesn't have a copy of the event types which
should be ignored during searching.
Change-Id: I9044b9a6af4e3f8e5bf75973e1f975fb45ec72cf
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 8e9f48c740b4..db1516685d61 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -128,20 +128,8 @@ void ImpEditView::registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallbac void ImpEditView::libreOfficeKitCallback(int nType, const char* pPayload) const { - if (mpLibreOfficeKitSearchable && mpLibreOfficeKitSearchable->isTiledSearching()) - { - switch (nType) - { - case LOK_CALLBACK_TEXT_SELECTION: - case LOK_CALLBACK_TEXT_SELECTION_START: - case LOK_CALLBACK_TEXT_SELECTION_END: - case LOK_CALLBACK_GRAPHIC_SELECTION: - return; - } - } - - if (mpLibreOfficeKitCallback) - mpLibreOfficeKitCallback(nType, pPayload, mpLibreOfficeKitData); + if (mpLibreOfficeKitSearchable) + mpLibreOfficeKitSearchable->libreOfficeKitCallback(nType, pPayload); } void ImpEditView::SetEditSelection( const EditSelection& rEditSelection ) |