summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/documen3.cxx')
-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());
+ }
+ }
}
}
}