Kaydet (Commit) 4048311a authored tarafından Henry Castro's avatar Henry Castro

sc tiled editing: Highlight the search result

Change-Id: Ib46e3d484f931cbdebf21ea38488313748942b3b
üst 6183a945
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
#include "tokenarray.hxx" #include "tokenarray.hxx"
#include <columnspanset.hxx> #include <columnspanset.hxx>
#include <rowheightcontext.hxx> #include <rowheightcontext.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
#include <vector> #include <vector>
...@@ -1815,6 +1816,21 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, ...@@ -1815,6 +1816,21 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
AlignToCursor( nCol, nRow, SC_FOLLOW_JUMP ); AlignToCursor( nCol, nRow, SC_FOLLOW_JUMP );
SetCursor( nCol, nRow, true ); SetCursor( nCol, nRow, true );
if (rDoc.GetDrawLayer()->isTiledRendering())
{
Point aCurPos = GetViewData().GetScrPos(nCol, nRow, GetViewData().GetActivePart());
// just update the cell selection
ScGridWindow* pGridWindow = GetViewData().GetActiveWin();
if (pGridWindow)
{
// move the cell selection handles
pGridWindow->SetCellSelectionPixel(LOK_SETTEXTSELECTION_START, aCurPos.X(), aCurPos.Y());
pGridWindow->SetCellSelectionPixel(LOK_SETTEXTSELECTION_END, aCurPos.X(), aCurPos.Y());
pGridWindow->SetCellSelectionPixel(LOK_SETTEXTSELECTION_RESET, aCurPos.X(), aCurPos.Y());
}
}
if ( nCommand == SvxSearchCmd::REPLACE if ( nCommand == SvxSearchCmd::REPLACE
|| nCommand == SvxSearchCmd::REPLACE_ALL ) || nCommand == SvxSearchCmd::REPLACE_ALL )
{ {
......
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