Kaydet (Commit) 8ab34380 authored tarafından Henry Castro's avatar Henry Castro

sc: Notify about the part change when searching.

Change-Id: Ieea445b64f72f270885d6e21d4070fefe8d82567
üst 9b06d365
......@@ -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());
}
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment