sc/source/core/data/documen3.cxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
New commits: commit 8ab34380319a91d72b315e4c2cc8a7e76b1361a4 Author: Henry Castro <hcas...@collabora.com> Date: Sat May 30 11:55:01 2015 -0400 sc: Notify about the part change when searching. Change-Id: Ieea445b64f72f270885d6e21d4070fefe8d82567 diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index d521bd6..da216f2 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()); + } + } } } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits