summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/datastream.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-12-12 16:09:11 +0100
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-12-18 10:13:26 -0500
commit1d6e5dbaff0fadd8ffbb689e318be466eef9d451 (patch)
treeb72cf85f5546b9275628290c5bae2fcb9451dd2f /sc/source/ui/inc/datastream.hxx
parentf0e7b79db7ab60ae6be94658ec5a38d11fa75ec7 (diff)
Try to reduce the amount of repainting during streaming.
Diffstat (limited to 'sc/source/ui/inc/datastream.hxx')
-rw-r--r--sc/source/ui/inc/datastream.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sc/source/ui/inc/datastream.hxx b/sc/source/ui/inc/datastream.hxx
index 6eb1e7d8fd85..3a8064600195 100644
--- a/sc/source/ui/inc/datastream.hxx
+++ b/sc/source/ui/inc/datastream.hxx
@@ -13,13 +13,13 @@
#include <rtl/ustring.hxx>
#include <sfx2/lnkbase.hxx>
#include <address.hxx>
-#include <refreshtimer.hxx>
#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.hpp>
#include <vector>
namespace datastreams {
+ class CallerThread;
class ReaderThread;
}
class ScDocShell;
@@ -28,7 +28,7 @@ class Window;
typedef std::vector<OString> LinesList;
-class DataStream : boost::noncopyable, public sfx2::SvBaseLink, ScRefreshTimer
+class DataStream : boost::noncopyable, public sfx2::SvBaseLink
{
OString ConsumeLine();
void MoveData();
@@ -63,6 +63,9 @@ public:
void StopImport();
private:
+ void Repaint();
+
+private:
ScDocShell *mpScDocShell;
ScDocument *mpScDocument;
OUString msURL;
@@ -75,9 +78,11 @@ private:
bool mbValuesInLine;
LinesList *mpLines;
size_t mnLinesCount;
+ size_t mnRepaintCounter;
ScRange maRange;
ScRange maStartRange;
boost::scoped_ptr<ScRange> mpEndRange;
+ rtl::Reference<datastreams::CallerThread> mxThread;
rtl::Reference<datastreams::ReaderThread> mxReaderThread;
};