sc/inc/scopetools.hxx | 9 +++++++++ sc/source/core/data/documen8.cxx | 3 +++ sc/source/core/tool/scopetools.cxx | 14 ++++++++++++++ 3 files changed, 26 insertions(+)
New commits: commit a1c7e073fe545e6a0bd8c5eecb152106b9ec35fa Author: Kohei Yoshida <kohei.yosh...@collabora.com> Date: Tue May 20 14:24:44 2014 -0400 Turn the mouse cursor to the "wait hand" during the external link update. Change-Id: I983127828b28c72dd12d4778b88051964e9bceaa diff --git a/sc/inc/scopetools.hxx b/sc/inc/scopetools.hxx index 443ceaf..785fd70 100644 --- a/sc/inc/scopetools.hxx +++ b/sc/inc/scopetools.hxx @@ -13,6 +13,7 @@ #include "scdllapi.h" class ScDocument; +class Window; namespace sc { @@ -55,6 +56,14 @@ public: ~IdleSwitch(); }; +class WaitPointerSwitch +{ + Window* mpFrameWin; +public: + WaitPointerSwitch(Window* pWin); + ~WaitPointerSwitch(); +}; + } #endif diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx index e8ce20c..1247563 100644 --- a/sc/source/core/data/documen8.cxx +++ b/sc/source/core/data/documen8.cxx @@ -87,6 +87,7 @@ #include "globalnames.hxx" #include "stringutil.hxx" #include <documentlinkmgr.hxx> +#include <scopetools.hxx> #include <boost/scoped_ptr.hpp> @@ -802,6 +803,8 @@ void ScDocument::UpdateExternalRefLinks(Window* pWin) aRefLinks.push_back(pRefLink); } + sc::WaitPointerSwitch aWaitSwitch(pWin); + pExternalRefMgr->enableDocTimer(false); ScProgress aProgress(GetDocumentShell(), ScResId(SCSTR_UPDATE_EXTDOCS).toString(), aRefLinks.size()); for (size_t i = 0, n = aRefLinks.size(); i < n; ++i) diff --git a/sc/source/core/tool/scopetools.cxx b/sc/source/core/tool/scopetools.cxx index 96f4458..0664219 100644 --- a/sc/source/core/tool/scopetools.cxx +++ b/sc/source/core/tool/scopetools.cxx @@ -9,6 +9,7 @@ #include "scopetools.hxx" #include "document.hxx" +#include <vcl/window.hxx> namespace sc { @@ -56,6 +57,19 @@ IdleSwitch::~IdleSwitch() mrDoc.EnableIdle(mbOldValue); } +WaitPointerSwitch::WaitPointerSwitch(Window* pWin) : + mpFrameWin(pWin) +{ + if (mpFrameWin) + mpFrameWin->EnterWait(); +} + +WaitPointerSwitch::~WaitPointerSwitch() +{ + if (mpFrameWin) + mpFrameWin->LeaveWait(); +} + } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits