summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2015-05-30 11:55:01 -0400
committerHenry Castro <hcastro@collabora.com>2015-05-30 11:55:01 -0400
commit8ab34380319a91d72b315e4c2cc8a7e76b1361a4 (patch)
treeec98cb4db2ab9e33b9c690f3a0531725d046d7d0 /sc
parent9b06d36571bbfa2d722f36610375e7cd24be81a7 (diff)
sc: Notify about the part change when searching.
Change-Id: Ieea445b64f72f270885d6e21d4070fefe8d82567
Diffstat (limited to 'sc')
-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());
+ }
+ }
}
}
}