diff options
author | Henry Castro <hcastro@collabora.com> | 2015-05-30 11:55:01 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2015-05-30 11:55:01 -0400 |
commit | 8ab34380319a91d72b315e4c2cc8a7e76b1361a4 (patch) | |
tree | ec98cb4db2ab9e33b9c690f3a0531725d046d7d0 | |
parent | 9b06d36571bbfa2d722f36610375e7cd24be81a7 (diff) |
sc: Notify about the part change when searching.
Change-Id: Ieea445b64f72f270885d6e21d4070fefe8d82567
-rw-r--r-- | sc/source/core/data/documen3.cxx | 19 |
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()); + } + } } } } |