summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2015-05-30 11:55:01 -0400
committerJan Holesovsky <kendy@collabora.com>2015-06-04 10:01:21 +0200
commit2fbd07db9ed3c8ae2f455ad08ce52ef709ac0f06 (patch)
tree4ddce06ce1ab491a26f219646c0428446cb8fe46
parent4481e3b244216d373eb1cff3dffc48524b2093f0 (diff)
sc: Notify about the part change when searching.
Change-Id: Ieea445b64f72f270885d6e21d4070fefe8d82567
-rw-r--r--sc/source/core/data/documen3.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index d521bd6ce3e5..da216f2a3379 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -74,6 +74,7 @@
#include "globalnames.hxx"
#include <boost/scoped_ptr.hpp>
+#include <LibreOfficeKit/LibreOfficeKitEnums.h>
using namespace com::sun::star;
@@ -1289,8 +1290,17 @@ bool ScDocument::SearchAndReplace(
rTab = nTab;
}
else
+ {
ScDocument::GetSearchAndReplaceStart(
rSearchItem, nCol, nRow );
+
+ // notify LibreOfficeKit about changed page
+ if ( GetDrawLayer() && GetDrawLayer()->isTiledRendering() )
+ {
+ OString aPayload = OString::number(nTab);
+ GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr());
+ }
+ }
}
}
}
@@ -1310,8 +1320,17 @@ bool ScDocument::SearchAndReplace(
rTab = nTab;
}
else
+ {
ScDocument::GetSearchAndReplaceStart(
rSearchItem, nCol, nRow );
+
+ // notify LibreOfficeKit about changed page
+ if ( GetDrawLayer() && GetDrawLayer()->isTiledRendering() )
+ {
+ OString aPayload = OString::number(nTab);
+ GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_SET_PART, aPayload.getStr());
+ }
+ }
}
}
}