summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-06-20 16:43:04 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-20 01:46:23 -0400
commit2283585d82b60bb613642613525e5e1fc0dd2376 (patch)
tree2e40a65c3a8aa386c6e1b49aec207ccc9862f241 /svx
parentbce02c8547a87bc9c2270c341529d9a13142432a (diff)
Remove no longer needed SdrModel::libreOfficeKitCallback()
All former clients are changed to call SfxViewShell::libreOfficeKitViewCallback() instead. Reviewed-on: https://gerrit.libreoffice.org/26521 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit 3f6ad98c4764402dc6e876106867e49e3e888f8f) Change-Id: Ic5dcf0a8a4241338fcd6941f13ce438157676481
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdmodel.cxx42
1 files changed, 0 insertions, 42 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index 7121dcb5d098..b94daa45a97c 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -126,9 +126,6 @@ void SdrModel::ImpCtor(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* _pEmbe
pDrawOutliner=nullptr;
pHitTestOutliner=nullptr;
pRefOutDev=nullptr;
- mpLibreOfficeKitCallback = nullptr;
- mpLibreOfficeKitData = nullptr;
- mbTiledSearching = false;
nProgressAkt=0;
nProgressMax=0;
nProgressOfs=0;
@@ -816,45 +813,6 @@ void SdrModel::SetRefDevice(OutputDevice* pDev)
RefDeviceChanged();
}
-void SdrModel::registerLibreOfficeKitCallback(LibreOfficeKitCallback pCallback, void* pData)
-{
- mpLibreOfficeKitCallback = pCallback;
- mpLibreOfficeKitData = pData;
-}
-
-void SdrModel::libreOfficeKitCallback(int nType, const char* pPayload) const
-{
- if (mbTiledSearching)
- {
- 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);
-}
-
-void SdrModel::setTiledSearching(bool bTiledSearching)
-{
- mbTiledSearching = bTiledSearching;
-}
-
-bool SdrModel::isTiledSearching() const
-{
- return mbTiledSearching;
-}
-
-void* SdrModel::getLibreOfficeKitData() const
-{
- return mpLibreOfficeKitData;
-}
-
void SdrModel::ImpReformatAllTextObjects()
{
if( isLocked() )