Kaydet (Commit) f2a3848b authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Put all these back in...

Change-Id: If2168a57e0c77cf7fe85d66a6c6fd6a810d45035
üst 8cdb1466
...@@ -65,11 +65,15 @@ private: ...@@ -65,11 +65,15 @@ private:
{ {
while (!mbTerminate) while (!mbTerminate)
{ {
// wait for a small amount of time, so that
// painting methods have a chance to be called.
// And also to make UI more responsive.
TimeValue const aTime = {0, 1000};
maStart.wait(); maStart.wait();
maStart.reset(); maStart.reset();
if (!mbTerminate) if (!mbTerminate)
while (mpDataStream->ImportData()) while (mpDataStream->ImportData())
; wait(aTime);
}; };
} }
}; };
...@@ -347,8 +351,9 @@ void DataStream::SetRefreshOnEmptyLine( bool bVal ) ...@@ -347,8 +351,9 @@ void DataStream::SetRefreshOnEmptyLine( bool bVal )
void DataStream::Refresh() void DataStream::Refresh()
{ {
// Hard recalc will repaint the grid area.
Application::Yield(); Application::Yield();
// Hard recalc will repaint the grid area.
mpDocShell->DoHardRecalc(true); mpDocShell->DoHardRecalc(true);
mpDocShell->SetDocumentModified(true); mpDocShell->SetDocumentModified(true);
...@@ -510,10 +515,14 @@ void DataStream::Text2Doc() {} ...@@ -510,10 +515,14 @@ void DataStream::Text2Doc() {}
bool DataStream::ImportData() bool DataStream::ImportData()
{ {
SolarMutexGuard aGuard;
if (!mbValuesInLine) if (!mbValuesInLine)
// We no longer support this mode. To be deleted later. // We no longer support this mode. To be deleted later.
return false; return false;
if (ScDocShell::GetViewData()->GetViewShell()->NeedsRepaint())
return mbRunning;
Text2Doc(); Text2Doc();
return mbRunning; return mbRunning;
} }
......
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