[Libreoffice-commits] core.git: Branch 'feature/priorities' - 5 commits - avmedia/source basctl/source chart2/source cui/source dbaccess/source desktop/source editeng/source extensions/source forms/source formula/source include/vcl linguistic/source reportdesign/source sc/source sd/source sfx2/source starmath/source svtools/source svx/source sw/source toolkit/source vcl/generic vcl/inc vcl/Library_vcl.mk vcl/qa vcl/source
Tobias Madl
tobias.madl.dev at gmail.com
Tue Mar 3 05:33:53 PST 2015
avmedia/source/framework/mediacontrol.cxx | 2
avmedia/source/framework/soundhandler.cxx | 2
basctl/source/basicide/baside2b.cxx | 2
basctl/source/dlged/dlged.cxx | 2
chart2/source/view/charttypes/GL3DBarChart.cxx | 2
cui/source/dialogs/cuigaldlg.cxx | 2
cui/source/dialogs/linkdlg.cxx | 2
cui/source/dialogs/thesdlg.cxx | 2
cui/source/options/optjava.cxx | 2
cui/source/tabpages/backgrnd.cxx | 2
cui/source/tabpages/chardlg.cxx | 2
cui/source/tabpages/macroass.cxx | 2
dbaccess/source/ui/querydesign/JoinTableView.cxx | 2
desktop/source/deployment/gui/dp_gui_dialog2.cxx | 4
editeng/source/editeng/impedit2.cxx | 2
extensions/source/bibliography/bibcont.cxx | 2
extensions/source/bibliography/toolbar.cxx | 2
extensions/source/update/ui/updatecheckui.cxx | 2
forms/source/component/ListBox.cxx | 2
formula/source/ui/dlg/formula.cxx | 2
formula/source/ui/dlg/funcutl.cxx | 6
include/vcl/idle.hxx | 49 --
include/vcl/scheduler.hxx | 92 +++++
include/vcl/timer.hxx | 42 --
linguistic/source/lngsvcmgr.cxx | 2
reportdesign/source/ui/report/DesignView.cxx | 2
sc/source/core/data/documen2.cxx | 2
sc/source/core/tool/chartlis.cxx | 2
sc/source/ui/app/scmod.cxx | 2
sc/source/ui/dbgui/sfiltdlg.cxx | 2
sc/source/ui/docshell/autostyl.cxx | 2
sc/source/ui/formdlg/dwfunctr.cxx | 2
sc/source/ui/miscdlgs/acredlin.cxx | 4
sc/source/ui/miscdlgs/anyrefdg.cxx | 2
sc/source/ui/miscdlgs/conflictsdlg.cxx | 2
sc/source/ui/navipi/navipi.cxx | 2
sc/source/ui/pagedlg/tphfedit.cxx | 2
sd/source/core/drawdoc4.cxx | 2
sd/source/ui/dlg/brkdlg.cxx | 2
sd/source/ui/dlg/dlgass.cxx | 6
sd/source/ui/dlg/filedlg.cxx | 2
sd/source/ui/framework/module/ShellStackGuard.cxx | 2
sd/source/ui/slidesorter/controller/SlsAnimator.cxx | 2
sd/source/ui/view/sdview.cxx | 4
sfx2/source/appl/appcfg.cxx | 2
sfx2/source/appl/appinit.cxx | 6
sfx2/source/appl/newhelp.cxx | 8
sfx2/source/control/dispatch.cxx | 6
sfx2/source/dialog/basedlgs.cxx | 6
sfx2/source/dialog/dinfdlg.cxx | 4
sfx2/source/dialog/dockwin.cxx | 6
sfx2/source/dialog/filedlghelper.cxx | 4
sfx2/source/dialog/templdlg.cxx | 2
sfx2/source/doc/new.cxx | 2
starmath/source/edit.cxx | 4
svtools/source/contnr/imivctl1.cxx | 12
svtools/source/contnr/svimpbox.cxx | 4
svtools/source/contnr/treelistbox.cxx | 2
svtools/source/control/asynclink.cxx | 2
svtools/source/control/tabbar.cxx | 2
svtools/source/dialogs/wizdlg.cxx | 2
svtools/source/misc/filechangedchecker.cxx | 2
svx/source/dialog/_contdlg.cxx | 4
svx/source/dialog/fontwork.cxx | 2
svx/source/dialog/graphctl.cxx | 2
svx/source/dialog/imapdlg.cxx | 2
svx/source/dialog/srchdlg.cxx | 2
svx/source/dialog/svxbmpnumvalueset.cxx | 2
svx/source/form/datanavi.cxx | 2
svx/source/form/formcontroller.cxx | 2
svx/source/inc/eventhandler.hxx | 2
svx/source/sdr/contact/objectcontactofpageview.cxx | 2
svx/source/sdr/contact/viewobjectcontactofpageobj.cxx | 2
svx/source/sdr/event/eventhandler.cxx | 2
svx/source/sdr/overlay/overlaymanagerbuffered.cxx | 2
svx/source/sidebar/PanelLayout.cxx | 2
svx/source/stbctrls/modctrl.cxx | 2
svx/source/svdraw/svdibrow.cxx | 2
svx/source/svdraw/svdpntv.cxx | 2
svx/source/tbxctrls/grafctrl.cxx | 2
sw/source/core/doc/DocumentStatisticsManager.cxx | 3
sw/source/core/doc/DocumentTimerManager.cxx | 26 -
sw/source/core/doc/docnew.cxx | 2
sw/source/core/docnode/threadmanager.cxx | 2
sw/source/core/inc/DocumentTimerManager.hxx | 6
sw/source/ui/dbui/mmoutputtypepage.cxx | 2
sw/source/ui/envelp/labfmt.cxx | 2
sw/source/uibase/docvw/edtwin.cxx | 2
sw/source/uibase/docvw/srcedtw.cxx | 2
sw/source/uibase/utlui/navipi.cxx | 2
sw/source/uibase/utlui/unotools.cxx | 2
toolkit/source/awt/vclxtoolkit.cxx | 4
vcl/Library_vcl.mk | 1
vcl/generic/print/genprnpsp.cxx | 2
vcl/inc/svdata.hxx | 3
vcl/qa/cppunit/timer.cxx | 14
vcl/source/app/idle.cxx | 205 ------------
vcl/source/app/scheduler.cxx | 230 +++++++++++++
vcl/source/app/svapp.cxx | 19 -
vcl/source/app/svmain.cxx | 6
vcl/source/app/timer.cxx | 305 ++----------------
vcl/source/edit/textdata.cxx | 2
vcl/source/window/dockmgr.cxx | 4
vcl/source/window/dockwin.cxx | 4
vcl/source/window/syswin.cxx | 2
vcl/source/window/toolbox.cxx | 2
vcl/source/window/window.cxx | 4
107 files changed, 544 insertions(+), 707 deletions(-)
New commits:
commit a1f08a7cfa4500da529919ea5ed23b489e849776
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date: Tue Mar 3 13:30:11 2015 +0000
Timer: Faster Word Count
Change-Id: I45d6fc28e898b945c7754b9ee1f2842247a071e6
diff --git a/sw/source/core/doc/DocumentStatisticsManager.cxx b/sw/source/core/doc/DocumentStatisticsManager.cxx
index 3f6ccb4..9063871 100644
--- a/sw/source/core/doc/DocumentStatisticsManager.cxx
+++ b/sw/source/core/doc/DocumentStatisticsManager.cxx
@@ -77,7 +77,8 @@ namespace sw
DocumentStatisticsManager::DocumentStatisticsManager( SwDoc& i_rSwdoc ) : m_rDoc( i_rSwdoc ),
mpDocStat( new SwDocStat )
{
- maStatsUpdateTimer.SetTimeout( 100 );
+ maStatsUpdateTimer.SetTimeout( 1 );
+ maStatsUpdateTimer.SetPriority( SchedulerPriority::LOWEST );
maStatsUpdateTimer.SetTimeoutHdl( LINK( this, DocumentStatisticsManager, DoIdleStatsUpdate ) );
}
commit 80c61f2ea32833469163416d477a5082e7a7af39
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date: Tue Mar 3 12:55:27 2015 +0000
Timer Idle: adapted unit tests to new classes
Change-Id: I15654a7aa5a99cb3aa6f8ba222cf2aa1d2f040ab
diff --git a/vcl/qa/cppunit/timer.cxx b/vcl/qa/cppunit/timer.cxx
index 5abdb52..5b81281 100644
--- a/vcl/qa/cppunit/timer.cxx
+++ b/vcl/qa/cppunit/timer.cxx
@@ -93,7 +93,7 @@ public:
Start();
mrBool = false;
}
- virtual void DoIdle() SAL_OVERRIDE
+ virtual void Invoke() SAL_OVERRIDE
{
mrBool = true;
Application::EndYield();
@@ -104,7 +104,7 @@ void TimerTest::testIdle()
{
bool bTriggered = false;
IdleBool aTest( bTriggered );
- Idle::ProcessAllIdleHandlers();
+ Scheduler::ProcessTaskScheduling(false);
CPPUNIT_ASSERT_MESSAGE("watchdog triggered", bTriggered);
}
@@ -121,7 +121,7 @@ public:
Start();
mrBool = false;
}
- virtual void Timeout() SAL_OVERRIDE
+ virtual void Invoke() SAL_OVERRIDE
{
mrBool = true;
Application::EndYield();
@@ -156,7 +156,7 @@ public:
Start();
mrCount = 0;
}
- virtual void Timeout() SAL_OVERRIDE
+ virtual void Invoke() SAL_OVERRIDE
{
mrCount++;
}
@@ -181,7 +181,7 @@ public:
SetTimeout( nMS );
Start();
}
- virtual void Timeout() SAL_OVERRIDE
+ virtual void Invoke() SAL_OVERRIDE
{
for (int i = 0; i < 100; i++)
Application::Yield();
@@ -211,7 +211,7 @@ public:
Start();
mbSlow = false;
}
- virtual void Timeout() SAL_OVERRIDE
+ virtual void Invoke() SAL_OVERRIDE
{
TimeValue aWait;
aWait.Seconds = 1;
diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx
index e2465fe..fcaeb35 100644
--- a/vcl/source/app/scheduler.cxx
+++ b/vcl/source/app/scheduler.cxx
@@ -53,12 +53,7 @@ ImplSchedulerData *ImplSchedulerData::GetMostImportantTask( bool bTimer )
// the priority of the most urgent, the priority of most urgent is increased and
// the current is the new most urgent. So starving is impossible.
if ( p->mpScheduler->GetPriority() < pMostUrgent->mpScheduler->GetPriority() )
- {
- pMostUrgent->mpScheduler->SetSchedulingPriority( pMostUrgent->mpScheduler->GetPriority());
pMostUrgent = p;
- }
- else
- p->mpScheduler->SetSchedulingPriority( p->mpScheduler->GetPriority());
}
}
commit 0c1f506e3356fc52d6b882559dee713086ce0563
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date: Thu Feb 26 15:47:07 2015 +0000
Timer to idle
Change-Id: Iaac3618501b4e382afe8d183836a370eea699af4
diff --git a/sw/source/core/doc/DocumentTimerManager.cxx b/sw/source/core/doc/DocumentTimerManager.cxx
index da8935e..72380df 100644
--- a/sw/source/core/doc/DocumentTimerManager.cxx
+++ b/sw/source/core/doc/DocumentTimerManager.cxx
@@ -42,44 +42,44 @@ DocumentTimerManager::DocumentTimerManager( SwDoc& i_rSwdoc ) : m_rDoc( i_rSwdoc
mbStartIdleTimer( false ),
mIdleBlockCount( 0 )
{
- maIdleTimer.SetTimeout( 600 );
- maIdleTimer.SetTimeoutHdl( LINK( this, DocumentTimerManager, DoIdleJobs) );
+ maIdle.SetPriority( SchedulerPriority::LOWEST );
+ maIdle.SetIdleHdl( LINK( this, DocumentTimerManager, DoIdleJobs) );
}
void DocumentTimerManager::StartIdling()
{
mbStartIdleTimer = true;
if( !mIdleBlockCount )
- maIdleTimer.Start();
+ maIdle.Start();
}
void DocumentTimerManager::StopIdling()
{
mbStartIdleTimer = false;
- maIdleTimer.Stop();
+ maIdle.Stop();
}
void DocumentTimerManager::BlockIdling()
{
- maIdleTimer.Stop();
+ maIdle.Stop();
++mIdleBlockCount;
}
void DocumentTimerManager::UnblockIdling()
{
--mIdleBlockCount;
- if( !mIdleBlockCount && mbStartIdleTimer && !maIdleTimer.IsActive() )
- maIdleTimer.Start();
+ if( !mIdleBlockCount && mbStartIdleTimer && !maIdle.IsActive() )
+ maIdle.Start();
}
void DocumentTimerManager::StartBackgroundJobs()
{
// Trigger DoIdleJobs(), asynchronously.
- if (!maIdleTimer.IsActive()) //fdo#73165 if the timer is already running don't restart from 0
- maIdleTimer.Start();
+ if (!maIdle.IsActive()) //fdo#73165 if the timer is already running don't restart from 0
+ maIdle.Start();
}
-IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer*, pTimer )
+IMPL_LINK( DocumentTimerManager, DoIdleJobs, Idle*, pIdle )
{
#ifdef TIMELOG
static ::rtl::Logfile* pModLogFile = 0;
@@ -96,7 +96,7 @@ IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer*, pTimer )
{
if( rSh.ActionPend() )
{
- pTimer->Start();
+ pIdle->Start();
return 0;
}
}
@@ -120,7 +120,7 @@ IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer*, pTimer )
(*pLayIter)->GetCurrShell()->LayoutIdle();
// Defer the remaining work.
- pTimer->Start();
+ pIdle->Start();
return 0;
}
}
@@ -136,7 +136,7 @@ IMPL_LINK( DocumentTimerManager, DoIdleJobs, Timer*, pTimer )
if ( m_rDoc.getIDocumentFieldsAccess().GetUpdtFlds().IsInUpdateFlds() ||
m_rDoc.getIDocumentFieldsAccess().IsExpFldsLocked() )
{
- pTimer->Start();
+ pIdle->Start();
return 0;
}
diff --git a/sw/source/core/inc/DocumentTimerManager.hxx b/sw/source/core/inc/DocumentTimerManager.hxx
index 42351cc..7bff040 100644
--- a/sw/source/core/inc/DocumentTimerManager.hxx
+++ b/sw/source/core/inc/DocumentTimerManager.hxx
@@ -23,7 +23,7 @@
#include <IDocumentTimerAccess.hxx>
#include <boost/utility.hpp>
-#include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
#include <sal/types.h>
#include <tools/link.hxx>
@@ -50,7 +50,7 @@ public:
void StartBackgroundJobs() SAL_OVERRIDE;
// Our own 'IdleTimer' calls the following method
- DECL_LINK( DoIdleJobs, Timer * );
+ DECL_LINK( DoIdleJobs, Idle * );
virtual ~DocumentTimerManager();
@@ -60,7 +60,7 @@ private:
bool mbStartIdleTimer; //< idle timer mode start/stop
sal_Int32 mIdleBlockCount;
- Timer maIdleTimer;
+ Idle maIdle;
};
}
commit 7cec494d0ee6ee3540c9b5d6379fb177157bd7d7
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date: Thu Feb 26 07:33:59 2015 +0000
Idle Timer: Invented Base Class
Change-Id: I03db46afcc0cb5e5d7a134b1bdd327abb542e63c
diff --git a/include/vcl/idle.hxx b/include/vcl/idle.hxx
index 3a63e6e..9cb7345 100644
--- a/include/vcl/idle.hxx
+++ b/include/vcl/idle.hxx
@@ -21,62 +21,23 @@
#define INCLUDED_VCL_IDLE_HXX
#include <tools/link.hxx>
-#include <tools/solar.h>
-#include <vcl/dllapi.h>
+#include <vcl/scheduler.hxx>
-struct ImplIdleData;
-struct ImplSVData;
-
-enum class IdlePriority {
- HIGHEST = 0,
- HIGH = 1,
- REPAINT = 2,
- RESIZE = 3,
- MEDIUM = 3,
- LOW = 4,
- LOWER = 5,
- LOWEST = 6
-};
-
-class VCL_DLLPUBLIC Idle
+class VCL_DLLPUBLIC Idle : public Scheduler
{
protected:
- ImplIdleData* mpIdleData; // Pointer to element in idle list
- sal_Int32 miPriority; // Idle priority ( maybe divergent to default)
- IdlePriority meDefaultPriority; // Default idle priority
- bool mbActive; // Currently in the scheduler
Link maIdleHdl; // Callback Link
- friend struct ImplIdleData;
-
public:
Idle();
Idle( const Idle& rIdle );
- virtual ~Idle();
-
- void SetPriority( IdlePriority ePriority );
- void SetSchedulingPriority( sal_Int32 iPriority );
- sal_Int32 GetPriority() const { return miPriority; }
- IdlePriority GetDefaultPriority() const { return meDefaultPriority; }
/// Make it possible to associate a callback with this idle handler
- /// of course, you can also sub-class and override 'DoIdle'
+ /// of course, you can also sub-class and override 'Invoke'
void SetIdleHdl( const Link& rLink ) { maIdleHdl = rLink; }
const Link& GetIdleHdl() const { return maIdleHdl; }
-
- // Call idle handler
- virtual void DoIdle();
-
- void Start();
- void Stop();
-
- bool IsActive() const { return mbActive; }
-
- Idle& operator=( const Idle& rIdle );
- static void ImplDeInitIdle();
-
- /// Process all pending idle tasks ahead of time in priority order.
- static void ProcessAllIdleHandlers();
+ virtual void Invoke() SAL_OVERRIDE;
+ Idle& operator=( const Idle& rIdle );
};
#endif // INCLUDED_VCL_IDLE_HXX
diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx
new file mode 100644
index 0000000..a18aa71
--- /dev/null
+++ b/include/vcl/scheduler.hxx
@@ -0,0 +1,92 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_VCL_SCHEDULER_HXX
+#define INCLUDED_VCL_SCHEDULER_HXX
+
+#include <vcl/dllapi.h>
+
+struct ImplSVData;
+class Scheduler;
+struct ImplSchedulerData
+{
+ ImplSchedulerData* mpNext; // Pointer to the next element in list
+ Scheduler* mpScheduler; // Pointer to VCL Idle instance
+ bool mbDelete; // Destroy this idle?
+ bool mbInScheduler; // Idle handler currently processed?
+ sal_uLong mnUpdateTime; // Last Update Time
+ sal_uLong mnUpdateStack; // Update Stack on stack
+
+ void Invoke();
+
+ static ImplSchedulerData *GetMostImportantTask( bool bTimer );
+};
+
+enum class SchedulerPriority {
+ HIGHEST = 0,
+ HIGH = 1,
+ REPAINT = 2,
+ RESIZE = 3,
+ MEDIUM = 3,
+ LOW = 4,
+ LOWER = 5,
+ LOWEST = 6
+};
+
+class VCL_DLLPUBLIC Scheduler
+{
+protected:
+ ImplSchedulerData* mpSchedulerData; // Pointer to element in idle list
+ sal_Int32 miPriority; // Idle priority ( maybe divergent to default)
+ SchedulerPriority meDefaultPriority; // Default idle priority
+ bool mbActive; // Currently in the scheduler
+
+ friend struct ImplSchedulerData;
+ virtual void SetDeletionFlags();
+ virtual bool ReadyForSchedule( bool bTimer ) { return !bTimer; }
+
+public:
+ Scheduler();
+ Scheduler( const Scheduler& rScheduler );
+ virtual ~Scheduler();
+
+ void SetPriority( SchedulerPriority ePriority );
+ void SetSchedulingPriority( sal_Int32 iPriority );
+ sal_Int32 GetPriority() const { return miPriority; }
+ SchedulerPriority GetDefaultPriority() const { return meDefaultPriority; }
+
+ // Call idle handler
+ virtual void Invoke() = 0;
+
+ virtual void Start();
+ virtual void Stop();
+
+ bool IsActive() const { return mbActive; }
+
+ Scheduler& operator=( const Scheduler& Scheduler );
+ static void ImplDeInitScheduler();
+
+ /// Process all pending idle tasks ahead of time in priority order.
+ static void CallbackTaskScheduling();
+ static void ProcessTaskScheduling( bool bTimer );
+};
+
+#endif // INCLUDED_VCL_SCHEDULER_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/timer.hxx b/include/vcl/timer.hxx
index 635a045..01fd36c 100644
--- a/include/vcl/timer.hxx
+++ b/include/vcl/timer.hxx
@@ -21,49 +21,32 @@
#define INCLUDED_VCL_TIMER_HXX
#include <tools/link.hxx>
-#include <tools/solar.h>
-#include <vcl/dllapi.h>
+#include <vcl/scheduler.hxx>
-struct ImplTimerData;
-struct ImplSVData;
-
-/// Base-class for timers - usually a simple, one-shot timeout
-class VCL_DLLPUBLIC Timer
+class VCL_DLLPUBLIC Timer : public Scheduler
{
protected:
- ImplTimerData* mpTimerData;
+ Link maTimeoutHdl; // Callback Link
sal_uLong mnTimeout;
- bool mbActive;
bool mbAuto;
- Link maTimeoutHdl;
- friend struct ImplTimerData;
+ void SetDeletionFlags() SAL_OVERRIDE;
+ bool ReadyForSchedule( bool bTimer ) SAL_OVERRIDE;
public:
- Timer();
- Timer( const Timer& rTimer );
- virtual ~Timer();
-
- virtual void Timeout();
+ Timer();
+ Timer( const Timer& rTimer );
- void Start();
- void Stop();
-
- /// set the timeout in milliseconds
+ /// Make it possible to associate a callback with this timer handler
+ /// of course, you can also sub-class and override 'Invoke'
void SetTimeout( sal_uLong nTimeoutMs );
sal_uLong GetTimeout() const { return mnTimeout; }
- bool IsActive() const { return mbActive; }
-
- /// Make it possible to associate a callback with this timeout
void SetTimeoutHdl( const Link& rLink ) { maTimeoutHdl = rLink; }
const Link& GetTimeoutHdl() const { return maTimeoutHdl; }
-
+ virtual void Invoke() SAL_OVERRIDE;
+ virtual void Timeout() { Invoke(); }
Timer& operator=( const Timer& rTimer );
-
- static void ImplDeInitTimer();
- static void ImplTimerCallbackProc();
- static bool TimerReady();
- static bool CheckExpiredTimer(const bool bDoInvoke);
+ void Start() SAL_OVERRIDE;
};
/// An auto-timer is a multi-shot timer re-emitting itself at
@@ -76,6 +59,7 @@ public:
AutoTimer& operator=( const AutoTimer& rTimer );
};
+
#endif // INCLUDED_VCL_TIMER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index cc90544..9b3e27f 100644
--- a/sfx2/source/appl/appinit.cxx
+++ b/sfx2/source/appl/appinit.cxx
@@ -46,8 +46,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <vcl/edit.hxx>
-#include <vcl/timer.hxx>
-#include <vcl/idle.hxx>
+#include <vcl/scheduler.hxx>
#include <sfx2/unoctitm.hxx>
#include "app.hrc"
@@ -110,8 +109,7 @@ void SAL_CALL SfxTerminateListener_Impl::notifyTermination( const EventObject& a
// Timers may access the SfxApplication and are only deleted in
// Application::Quit(), which is asynchronous (PostUserEvent) - disable!
- Timer::ImplDeInitTimer();
- Idle::ImplDeInitIdle();
+ Scheduler::ImplDeInitScheduler();
SfxApplication* pApp = SfxGetpApp();
pApp->Broadcast( SfxSimpleHint( SFX_HINT_DEINITIALIZING ) );
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index dfdec71..d98a373 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -91,7 +91,7 @@
#include <vcl/fixed.hxx>
#include <vcl/floatwin.hxx>
#include <vcl/group.hxx>
-#include <vcl/idle.hxx>
+#include <vcl/scheduler.hxx>
#include <vcl/imgctrl.hxx>
#include <vcl/longcurr.hxx>
#include <vcl/lstbox.hxx>
@@ -1869,7 +1869,7 @@ void SAL_CALL VCLXToolkit::processEventsToIdle()
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
SolarMutexGuard aSolarGuard;
- Idle::ProcessAllIdleHandlers();
+ Scheduler::ProcessTaskScheduling(false);
}
}
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index 1266e07..87b73b9 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -327,6 +327,7 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
vcl/source/app/idle \
vcl/source/app/idlemgr \
vcl/source/app/salvtables \
+ vcl/source/app/scheduler \
vcl/source/app/session \
vcl/source/app/settings \
vcl/source/app/IconThemeInfo \
diff --git a/vcl/inc/svdata.hxx b/vcl/inc/svdata.hxx
index b227173..132c272 100644
--- a/vcl/inc/svdata.hxx
+++ b/vcl/inc/svdata.hxx
@@ -311,8 +311,7 @@ struct ImplSVData
bool mbDeInit; // Is VCL deinitializing
sal_uLong mnThreadCount; // is VCL MultiThread enabled
ImplConfigData* mpFirstConfigData; // pointer to the first config block
- ImplTimerData* mpFirstTimerData; // list of all running timers
- ImplIdleData* mpFirstIdleData; // list of all running idles
+ ImplSchedulerData* mpFirstSchedulerData; // list of all running tasks
SalTimer* mpSalTimer; // interface to sal event loop/timers
SalI18NImeStatus* mpImeStatus; // interface to ime status window
SalSystem* mpSalSystem; // SalSystem interface
diff --git a/vcl/source/app/idle.cxx b/vcl/source/app/idle.cxx
index 09ffbc7..7fe239d 100644
--- a/vcl/source/app/idle.cxx
+++ b/vcl/source/app/idle.cxx
@@ -17,220 +17,27 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <vcl/svapp.hxx>
#include <vcl/idle.hxx>
-#include <vcl/timer.hxx>
-#include <svdata.hxx>
-#include <salinst.hxx>
-
-struct ImplIdleData
-{
- ImplIdleData* mpNext; // Pointer to the next element in list
- Idle* mpIdle; // Pointer to VCL Idle instance
- bool mbDelete; // Destroy this idle?
- bool mbInIdle; // Idle handler currently processed?
-
- void Invoke()
- {
- if (mbDelete || mbInIdle )
- return;
-
- mpIdle->SetSchedulingPriority(static_cast<sal_Int32>(mpIdle->GetDefaultPriority()));
- mbDelete = true;
- mpIdle->mbActive = false;
-
- // invoke it
- mbInIdle = true;
- mpIdle->DoIdle();
- mbInIdle = false;
- }
-
- static ImplIdleData *GetFirstIdle()
- {
- ImplSVData* pSVData = ImplGetSVData();
- ImplIdleData *pMostUrgent = NULL;
-
- for ( ImplIdleData *p = pSVData->mpFirstIdleData; p; p = p->mpNext )
- {
- if ( !p->mpIdle || p->mbDelete )
- continue;
- if (!pMostUrgent)
- pMostUrgent = p;
- else
- {
- // Find the highest priority.
- // If the priority of the current idle is higher (numerical value is lower) than
- // the priority of the most urgent, the priority of most urgent is increased and
- // the current is the new most urgent. So starving is impossible.
- if ( p->mpIdle->GetPriority() < pMostUrgent->mpIdle->GetPriority() )
- {
- pMostUrgent->mpIdle->SetSchedulingPriority( pMostUrgent->mpIdle->GetPriority() - 1);
- pMostUrgent = p;
- }
- else
- p->mpIdle->SetSchedulingPriority( p->mpIdle->GetPriority() - 1);
- }
- }
-
- return pMostUrgent;
- }
-};
-
-void Idle::ImplDeInitIdle()
-{
- ImplSVData* pSVData = ImplGetSVData();
- ImplIdleData* pIdleData = pSVData->mpFirstIdleData;
-
- if ( pIdleData )
- {
- do
- {
- ImplIdleData* pTempIdleData = pIdleData;
- if ( pIdleData->mpIdle )
- {
- pIdleData->mpIdle->mbActive = false;
- pIdleData->mpIdle->mpIdleData = NULL;
- }
- pIdleData = pIdleData->mpNext;
- delete pTempIdleData;
- }
- while ( pIdleData );
-
- pSVData->mpFirstIdleData = NULL;
- }
-}
-
-void Idle::ProcessAllIdleHandlers()
-{
- // process all pending idle
- ImplIdleData* pIdleData = NULL;
- ImplIdleData* pPrevIdleData = NULL;
- ImplSVData* pSVData = ImplGetSVData();
- // timer can interrupt idle
- while (!Timer::TimerReady() && (pIdleData = ImplIdleData::GetFirstIdle()))
- {
- pIdleData->Invoke();
- }
-
- pIdleData = pSVData->mpFirstIdleData;
- while ( pIdleData )
- {
- // Should idle be released from scheduling?
- if ( pIdleData->mbDelete )
- {
- if ( pPrevIdleData )
- pPrevIdleData->mpNext = pIdleData->mpNext;
- else
- pSVData->mpFirstIdleData = pIdleData->mpNext;
- if ( pIdleData->mpIdle )
- pIdleData->mpIdle->mpIdleData = NULL;
- ImplIdleData* pTempIdleData = pIdleData;
- pIdleData = pIdleData->mpNext;
- delete pTempIdleData;
- }
- else
- {
- pPrevIdleData = pIdleData;
- pIdleData = pIdleData->mpNext;
- }
- }
-}
-
-void Idle::SetPriority( IdlePriority ePriority )
-{
- meDefaultPriority = ePriority;
-}
-
-void Idle::SetSchedulingPriority( sal_Int32 iPriority )
-{
- miPriority = iPriority;
-}
-
-void Idle::DoIdle()
+void Idle::Invoke()
{
maIdleHdl.Call( this );
}
-void Idle::Start()
-{
- // Mark timer active
- mbActive = true;
-
- ImplSVData* pSVData = ImplGetSVData();
- if ( !mpIdleData )
- {
- // insert Idle
- mpIdleData = new ImplIdleData;
- mpIdleData->mpIdle = this;
- mpIdleData->mbInIdle = false;
-
- // insert last due to SFX!
- ImplIdleData* pPrev = NULL;
- ImplIdleData* pData = pSVData->mpFirstIdleData;
- while ( pData )
- {
- pPrev = pData;
- pData = pData->mpNext;
- }
- mpIdleData->mpNext = NULL;
- if ( pPrev )
- pPrev->mpNext = mpIdleData;
- else
- pSVData->mpFirstIdleData = mpIdleData;
- }
- mpIdleData->mbDelete = false;
-}
-
-void Idle::Stop()
-{
- mbActive = false;
-
- if ( mpIdleData )
- mpIdleData->mbDelete = true;
-}
-
Idle& Idle::operator=( const Idle& rIdle )
{
- if ( IsActive() )
- Stop();
-
- mbActive = false;
- miPriority = rIdle.miPriority;
- meDefaultPriority = rIdle.meDefaultPriority;
- maIdleHdl = rIdle.maIdleHdl;
-
- if ( rIdle.IsActive() )
- Start();
-
+ Scheduler::operator=(rIdle);
+ maIdleHdl = rIdle.maIdleHdl;
return *this;
}
-Idle::Idle():
- mpIdleData(NULL),
- miPriority(static_cast<sal_Int32>(IdlePriority::HIGH)),
- meDefaultPriority(IdlePriority::HIGH),
- mbActive(false)
+Idle::Idle() : Scheduler()
{
}
-Idle::Idle( const Idle& rIdle ):
- mpIdleData(NULL),
- miPriority(rIdle.miPriority),
- meDefaultPriority(rIdle.meDefaultPriority),
- mbActive(false),
- maIdleHdl(rIdle.maIdleHdl)
+Idle::Idle( const Idle& rIdle ) : Scheduler(rIdle)
{
- if ( rIdle.IsActive() )
- Start();
+ maIdleHdl = rIdle.maIdleHdl;
}
-Idle::~Idle()
-{
- if ( mpIdleData )
- {
- mpIdleData->mbDelete = true;
- mpIdleData->mpIdle = NULL;
- }
-}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx
new file mode 100644
index 0000000..e2465fe
--- /dev/null
+++ b/vcl/source/app/scheduler.cxx
@@ -0,0 +1,235 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#include <svdata.hxx>
+#include <tools/time.hxx>
+#include <vcl/scheduler.hxx>
+
+void ImplSchedulerData::Invoke()
+{
+ if (mbDelete || mbInScheduler )
+ return;
+
+ mpScheduler->SetSchedulingPriority(static_cast<sal_Int32>(mpScheduler->GetDefaultPriority()));
+ mpScheduler->SetDeletionFlags();
+
+ // invoke it
+ mbInScheduler = true;
+ mpScheduler->Invoke();
+ mbInScheduler = false;
+}
+
+ImplSchedulerData *ImplSchedulerData::GetMostImportantTask( bool bTimer )
+{
+ ImplSVData* pSVData = ImplGetSVData();
+ ImplSchedulerData *pMostUrgent = NULL;
+
+ for ( ImplSchedulerData *p = pSVData->mpFirstSchedulerData; p; p = p->mpNext )
+ {
+ if ( !p->mpScheduler || p->mbDelete || p->mnUpdateStack >= pSVData->mnTimerUpdate || !p->mpScheduler->ReadyForSchedule( bTimer ) )
+ continue;
+ if (!pMostUrgent)
+ pMostUrgent = p;
+ else
+ {
+ // Find the highest priority.
+ // If the priority of the current idle is higher (numerical value is lower) than
+ // the priority of the most urgent, the priority of most urgent is increased and
+ // the current is the new most urgent. So starving is impossible.
+ if ( p->mpScheduler->GetPriority() < pMostUrgent->mpScheduler->GetPriority() )
+ {
+ pMostUrgent->mpScheduler->SetSchedulingPriority( pMostUrgent->mpScheduler->GetPriority());
+ pMostUrgent = p;
+ }
+ else
+ p->mpScheduler->SetSchedulingPriority( p->mpScheduler->GetPriority());
+ }
+ }
+
+ return pMostUrgent;
+}
+
+void Scheduler::SetDeletionFlags()
+{
+ mpSchedulerData->mbDelete = true;
+ mbActive = false;
+}
+
+void Scheduler::ImplDeInitScheduler()
+{
+ ImplSVData* pSVData = ImplGetSVData();
+ ImplSchedulerData* pSchedulerData = pSVData->mpFirstSchedulerData;
+
+ if ( pSchedulerData )
+ {
+ do
+ {
+ ImplSchedulerData* pTempSchedulerData = pSchedulerData;
+ if ( pSchedulerData->mpScheduler )
+ {
+ pSchedulerData->mpScheduler->mbActive = false;
+ pSchedulerData->mpScheduler->mpSchedulerData = NULL;
+ }
+ pSchedulerData = pSchedulerData->mpNext;
+ delete pTempSchedulerData;
+ }
+ while ( pSchedulerData );
+
+ pSVData->mpFirstSchedulerData = NULL;
+ }
+}
+
+void Scheduler::CallbackTaskScheduling()
+{
+ Scheduler::ProcessTaskScheduling( true );
+}
+
+void Scheduler::ProcessTaskScheduling( bool bTimer )
+{
+ // process all pending Tasks
+ ImplSchedulerData* pSchedulerData = NULL;
+ ImplSchedulerData* pPrevSchedulerData = NULL;
+ ImplSVData* pSVData = ImplGetSVData();
+ pSVData->mnTimerUpdate++;
+
+ if ((pSchedulerData = ImplSchedulerData::GetMostImportantTask(bTimer)))
+ {
+ pSchedulerData->mnUpdateTime = tools::Time::GetSystemTicks();
+ pSchedulerData->Invoke();
+ }
+
+ pSchedulerData = pSVData->mpFirstSchedulerData;
+ while ( pSchedulerData )
+ {
+ // Should Task be released from scheduling?
+ if ( pSchedulerData->mbDelete )
+ {
+ if ( pPrevSchedulerData )
+ pPrevSchedulerData->mpNext = pSchedulerData->mpNext;
+ else
+ pSVData->mpFirstSchedulerData = pSchedulerData->mpNext;
+ if ( pSchedulerData->mpScheduler )
+ pSchedulerData->mpScheduler->mpSchedulerData = NULL;
+ ImplSchedulerData* pTempSchedulerData = pSchedulerData;
+ pSchedulerData = pSchedulerData->mpNext;
+ delete pTempSchedulerData;
+ }
+ else
+ {
+ if( !pSchedulerData->mbInScheduler )
+ pSchedulerData->mnUpdateStack = 0;
+ pPrevSchedulerData = pSchedulerData;
+ pSchedulerData = pSchedulerData->mpNext;
+ }
+ }
+ pSVData->mnTimerUpdate--;
+}
+
+void Scheduler::SetPriority( SchedulerPriority ePriority )
+{
+ meDefaultPriority = ePriority;
+}
+
+void Scheduler::SetSchedulingPriority( sal_Int32 iPriority )
+{
+ miPriority = iPriority;
+}
+
+void Scheduler::Start()
+{
+ // Mark timer active
+ mbActive = true;
+
+ ImplSVData* pSVData = ImplGetSVData();
+ if ( !mpSchedulerData )
+ {
+ // insert Idle
+ mpSchedulerData = new ImplSchedulerData;
+ mpSchedulerData->mpScheduler = this;
+ mpSchedulerData->mbInScheduler = false;
+
+ // insert last due to SFX!
+ ImplSchedulerData* pPrev = NULL;
+ ImplSchedulerData* pData = pSVData->mpFirstSchedulerData;
+ while ( pData )
+ {
+ pPrev = pData;
+ pData = pData->mpNext;
+ }
+ mpSchedulerData->mpNext = NULL;
+ if ( pPrev )
+ pPrev->mpNext = mpSchedulerData;
+ else
+ pSVData->mpFirstSchedulerData = mpSchedulerData;
+ }
+ mpSchedulerData->mbDelete = false;
+ mpSchedulerData->mnUpdateTime = tools::Time::GetSystemTicks();
+ mpSchedulerData->mnUpdateStack = pSVData->mnTimerUpdate;
+}
+
+void Scheduler::Stop()
+{
+ mbActive = false;
+
+ if ( mpSchedulerData )
+ mpSchedulerData->mbDelete = true;
+}
+
+Scheduler& Scheduler::operator=( const Scheduler& rScheduler )
+{
+ if ( IsActive() )
+ Stop();
+
+ mbActive = false;
+ miPriority = rScheduler.miPriority;
+ meDefaultPriority = rScheduler.meDefaultPriority;
+
+ if ( rScheduler.IsActive() )
+ Start();
+
+ return *this;
+}
+
+Scheduler::Scheduler():
+ mpSchedulerData(NULL),
+ miPriority(static_cast<sal_Int32>(SchedulerPriority::HIGH)),
+ meDefaultPriority(SchedulerPriority::HIGH),
+ mbActive(false)
+{
+}
+
+Scheduler::Scheduler( const Scheduler& rScheduler ):
+ mpSchedulerData(NULL),
+ miPriority(rScheduler.miPriority),
+ meDefaultPriority(rScheduler.meDefaultPriority),
+ mbActive(false)
+{
+ if ( rScheduler.IsActive() )
+ Start();
+}
+
+Scheduler::~Scheduler()
+{
+ if ( mpSchedulerData )
+ {
+ mpSchedulerData->mbDelete = true;
+ mpSchedulerData->mpScheduler = NULL;
+ }
+}
+
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 0dcdee9..9f08bfb 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -45,7 +45,7 @@
#include "vcl/cvtgrf.hxx"
#include "vcl/unowrap.hxx"
#include "vcl/timer.hxx"
-#include "vcl/idle.hxx"
+#include "vcl/scheduler.hxx"
#include "vcl/unohelp.hxx"
#include "vcl/lazydelete.hxx"
@@ -343,11 +343,11 @@ inline void ImplYield( bool i_bWait, bool i_bAllEvents )
ImplSVData* pSVData = ImplGetSVData();
// run timers that have timed out
- while ( pSVData->mbNotAllTimerCalled )
- Timer::ImplTimerCallbackProc();
+ //while ( pSVData->mbNotAllTimerCalled )
+ // Timer::ImplTimerCallbackProc();
//Process all idles
- Idle::Idle::ProcessAllIdleHandlers();
+ Scheduler::ProcessTaskScheduling(false);
pSVData->maAppData.mnDispatchLevel++;
// do not wait for events if application was already quit; in that
@@ -367,11 +367,12 @@ inline void ImplYield( bool i_bWait, bool i_bAllEvents )
// e.g. on OS X; need to trigger timer checks manually
if( pSVData->maAppData.mbNoYield )
{
- do
- {
- Timer::ImplTimerCallbackProc();
- }
- while( pSVData->mbNotAllTimerCalled );
+ //do
+ //{
+ // Timer::ImplTimerCallbackProc();
+ //}
+ //while( pSVData->mbNotAllTimerCalled );
+ Scheduler::ProcessTaskScheduling(true);
}
// call post yield listeners
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index cd0ba59..6ee5e27 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -35,7 +35,7 @@
#include "vcl/svapp.hxx"
#include "vcl/wrkwin.hxx"
#include "vcl/cvtgrf.hxx"
-#include "vcl/idle.hxx"
+#include "vcl/scheduler.hxx"
#include "vcl/image.hxx"
#include "vcl/settings.hxx"
#include "vcl/unowrap.hxx"
@@ -389,8 +389,8 @@ void DeInitVCL()
if ( pSVData->maAppData.mpIdleMgr )
delete pSVData->maAppData.mpIdleMgr;
- Timer::ImplDeInitTimer();
- Idle::ImplDeInitIdle();
+ //Timer::ImplDeInitTimer();
+ Scheduler::ImplDeInitScheduler();
if ( pSVData->maWinData.mpMsgBoxImgList )
{
diff --git a/vcl/source/app/timer.cxx b/vcl/source/app/timer.cxx
index ff7233c..b8be2d7 100644
--- a/vcl/source/app/timer.cxx
+++ b/vcl/source/app/timer.cxx
@@ -18,83 +18,14 @@
*/
#include <tools/time.hxx>
-
-#include <vcl/svapp.hxx>
#include <vcl/timer.hxx>
-
#include <saltimer.hxx>
#include <svdata.hxx>
#include <salinst.hxx>
+#include <vcl/scheduler.hxx>
#define MAX_TIMER_PERIOD ((sal_uLong)0xFFFFFFFF)
-struct ImplTimerData
-{
- ImplTimerData* mpNext; // Pointer to the next Instance
- Timer* mpTimer; // Pointer to VCL Timer instance
- sal_uLong mnUpdateTime; // Last Update Time
- sal_uLong mnTimerUpdate; // TimerCallbackProcs on stack
- bool mbDelete; // Was timer deleted during Update()?
- bool mbInTimeout; // Are we in a timeout handler?
-
- void Invoke()
- {
- if (mbDelete || mbInTimeout )
- return;
-
- // if no AutoTimer than stop
- if ( !mpTimer->mbAuto )
- {
- mbDelete = true;
- mpTimer->mbActive = false;
- }
-
- // invoke it
- mbInTimeout = true;
- mpTimer->Timeout();
- mbInTimeout = false;
- }
-
- sal_uLong GetDeadline()
- {
- return mnUpdateTime + mpTimer->mnTimeout;
- }
-};
-
-void Timer::ImplDeInitTimer()
-{
- ImplSVData* pSVData = ImplGetSVData();
- ImplTimerData* pTimerData = pSVData->mpFirstTimerData;
-
- // on WNT the timer queue thread needs killing
- if (pSVData->mpSalTimer)
- {
- pSVData->mpSalTimer->Stop();
- }
-
- if ( pTimerData )
- {
- do
- {
- ImplTimerData* pTempTimerData = pTimerData;
- if ( pTimerData->mpTimer )
- {
- pTimerData->mpTimer->mbActive = false;
- pTimerData->mpTimer->mpTimerData = NULL;
- }
- pTimerData = pTimerData->mpNext;
- delete pTempTimerData;
- }
- while ( pTimerData );
-
- pSVData->mpFirstTimerData = NULL;
- pSVData->mnTimerPeriod = 0;
- }
-
- delete pSVData->mpSalTimer;
- pSVData->mpSalTimer = 0;
-}
-
static void ImplStartTimer( ImplSVData* pSVData, sal_uLong nMS )
{
if ( !nMS )
@@ -108,159 +39,59 @@ static void ImplStartTimer( ImplSVData* pSVData, sal_uLong nMS )
}
}
-void Timer::ImplTimerCallbackProc()
+void Timer::SetDeletionFlags()
{
- ImplSVData* pSVData = ImplGetSVData();
- ImplTimerData* pTimerData;
- ImplTimerData* pPrevTimerData;
- sal_uLong nMinPeriod = MAX_TIMER_PERIOD;
- sal_uLong nDeltaTime;
- sal_uLong nTime = tools::Time::GetSystemTicks();
-
- pSVData->mnTimerUpdate++;
- pSVData->mbNotAllTimerCalled = true;
-
- Timer::CheckExpiredTimer(true);
-
- // determine new time
- sal_uLong nNewTime = tools::Time::GetSystemTicks();
- pPrevTimerData = NULL;
- pTimerData = pSVData->mpFirstTimerData;
- while ( pTimerData )
- {
- // ignore if timer is still in timeout handler
- if ( pTimerData->mbInTimeout )
- {
- pPrevTimerData = pTimerData;
- pTimerData = pTimerData->mpNext;
- }
- // Was timer destroyed in the meantime?
- else if ( pTimerData->mbDelete )
- {
- if ( pPrevTimerData )
- pPrevTimerData->mpNext = pTimerData->mpNext;
- else
- pSVData->mpFirstTimerData = pTimerData->mpNext;
- if ( pTimerData->mpTimer )
- pTimerData->mpTimer->mpTimerData = NULL;
- ImplTimerData* pTempTimerData = pTimerData;
- pTimerData = pTimerData->mpNext;
- delete pTempTimerData;
- }
- else
+ // if no AutoTimer than stop
+ if ( !mbAuto )
{
- pTimerData->mnTimerUpdate = 0;
- // determine smallest time slot
- if ( pTimerData->mnUpdateTime == nTime )
- {
- nDeltaTime = pTimerData->mpTimer->mnTimeout;
- if ( nDeltaTime < nMinPeriod )
- nMinPeriod = nDeltaTime;
- }
- else
- {
- nDeltaTime = pTimerData->mnUpdateTime + pTimerData->mpTimer->mnTimeout;
- if ( nDeltaTime < nNewTime )
- nMinPeriod = 1;
- else
- {
- nDeltaTime -= nNewTime;
- if ( nDeltaTime < nMinPeriod )
- nMinPeriod = nDeltaTime;
- }
- }
- pPrevTimerData = pTimerData;
- pTimerData = pTimerData->mpNext;
+ mpSchedulerData->mbDelete = true;
+ mbActive = false;
}
- }
-
- // delete clock if no more timers available
- if ( !pSVData->mpFirstTimerData )
- {
- pSVData->mpSalTimer->Stop();
- pSVData->mnTimerPeriod = MAX_TIMER_PERIOD;
- }
- else
- ImplStartTimer( pSVData, nMinPeriod );
-
- pSVData->mnTimerUpdate--;
- pSVData->mbNotAllTimerCalled = false;
}
-bool Timer::TimerReady()
+bool Timer::ReadyForSchedule( bool bTimer )
{
- return Timer::CheckExpiredTimer(false);
+ (void)bTimer;
+ return (mpSchedulerData->mnUpdateTime + mnTimeout) <= tools::Time::GetSystemTicks();
}
-bool Timer::CheckExpiredTimer(bool bDoInvoke)
+Timer::Timer() : Scheduler()
{
-// find timer where the timer handler needs to be called
- ImplSVData* pSVData = ImplGetSVData();
- ImplTimerData* pTimerData = pSVData->mpFirstTimerData;
- sal_uLong nTime = tools::Time::GetSystemTicks();
- bool timerExpired = false;
- while ( pTimerData )
- {
- // If the timer is not new, was not deleted, and if it is not in the timeout handler, then
- // call the handler as soon as the time is up.
- if ( (pTimerData->mnTimerUpdate < pSVData->mnTimerUpdate) &&
- !pTimerData->mbDelete && !pTimerData->mbInTimeout)
- {
- // time has expired
- if ( pTimerData->GetDeadline() <= nTime )
- {
- if(bDoInvoke)
- {
- //Set new update Timer
- pTimerData->mnUpdateTime = nTime;
- pTimerData->Invoke();
- }
- timerExpired = true;
- }
- }
-
- pTimerData = pTimerData->mpNext;
- }
- return timerExpired;
+ mnTimeout = 1;
+ mbAuto = false;
+ miPriority= static_cast<sal_Int32>(SchedulerPriority::HIGHEST);
+ meDefaultPriority = SchedulerPriority::HIGHEST;
}
-Timer::Timer():
- mpTimerData(NULL),
- mnTimeout(1),
- mbActive(false),
- mbAuto(false)
+Timer::Timer( const Timer& rTimer ) : Scheduler(rTimer)
{
+ mnTimeout = rTimer.mnTimeout;
+ mbAuto = rTimer.mbAuto;
+ maTimeoutHdl = rTimer.maTimeoutHdl;
}
-Timer::Timer( const Timer& rTimer ):
- mpTimerData(NULL),
- mnTimeout(rTimer.mnTimeout),
- mbActive(false),
- mbAuto(false),
- maTimeoutHdl(rTimer.maTimeoutHdl)
+void Timer::Invoke()
{
- if ( rTimer.IsActive() )
- Start();
+ maTimeoutHdl.Call( this );
}
-Timer::~Timer()
+void Timer::Start()
{
- if ( mpTimerData )
+ Scheduler::Start();
+ ImplSVData* pSVData = ImplGetSVData();
+ if( ! pSVData->mpSalTimer )
{
- mpTimerData->mbDelete = true;
- mpTimerData->mpTimer = NULL;
- }
-}
-
-void Timer::Timeout()
-{
- maTimeoutHdl.Call( this );
+ pSVData->mnTimerPeriod = MAX_TIMER_PERIOD;
+ pSVData->mpSalTimer = pSVData->mpDefInst->CreateSalTimer();
+ pSVData->mpSalTimer->SetCallback( CallbackTaskScheduling );
+ }
+ if ( mnTimeout < pSVData->mnTimerPeriod )
+ ImplStartTimer( pSVData, mnTimeout );
}
void Timer::SetTimeout( sal_uLong nNewTimeout )
{
mnTimeout = nNewTimeout;
-
// if timer is active then renew clock
if ( mbActive )
{
@@ -270,80 +101,12 @@ void Timer::SetTimeout( sal_uLong nNewTimeout )
}
}
-void Timer::Start()
-{
- mbActive = true;
-
- ImplSVData* pSVData = ImplGetSVData();
- if ( !mpTimerData )
- {
- if ( !pSVData->mpFirstTimerData )
- {
- pSVData->mnTimerPeriod = MAX_TIMER_PERIOD;
- if( ! pSVData->mpSalTimer )
- {
- pSVData->mpSalTimer = pSVData->mpDefInst->CreateSalTimer();
- pSVData->mpSalTimer->SetCallback( ImplTimerCallbackProc );
- }
- }
-
- // insert timer and start
- mpTimerData = new ImplTimerData;
- mpTimerData->mpTimer = this;
- mpTimerData->mnUpdateTime = tools::Time::GetSystemTicks();
- mpTimerData->mnTimerUpdate = pSVData->mnTimerUpdate;
- mpTimerData->mbDelete = false;
- mpTimerData->mbInTimeout = false;
-
- // insert last due to SFX!
- ImplTimerData* pPrev = NULL;
- ImplTimerData* pData = pSVData->mpFirstTimerData;
- while ( pData )
- {
- pPrev = pData;
- pData = pData->mpNext;
- }
- mpTimerData->mpNext = NULL;
- if ( pPrev )
- pPrev->mpNext = mpTimerData;
- else
- pSVData->mpFirstTimerData = mpTimerData;
-
- if ( mnTimeout < pSVData->mnTimerPeriod )
- ImplStartTimer( pSVData, mnTimeout );
- }
- else if( !mpTimerData->mpTimer ) // TODO: remove when guilty found
- {
- OSL_FAIL( "Timer::Start() on a destroyed Timer!" );
- }
- else
- {
- mpTimerData->mnUpdateTime = tools::Time::GetSystemTicks();
- mpTimerData->mnTimerUpdate = pSVData->mnTimerUpdate;
- mpTimerData->mbDelete = false;
- }
-}
-
-void Timer::Stop()
-{
- mbActive = false;
-
- if ( mpTimerData )
- mpTimerData->mbDelete = true;
-}
-
Timer& Timer::operator=( const Timer& rTimer )
{
- if ( IsActive() )
- Stop();
-
- mbActive = false;
- mnTimeout = rTimer.mnTimeout;
- maTimeoutHdl = rTimer.maTimeoutHdl;
-
- if ( rTimer.IsActive() )
- Start();
-
+ Scheduler::operator=(rTimer);
+ maTimeoutHdl = rTimer.maTimeoutHdl;
+ mnTimeout = rTimer.mnTimeout;
+ mbAuto = rTimer.mbAuto;
return *this;
}
commit 06a9dcc2c2e15c653242c593f451807b49b68c52
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date: Thu Feb 26 07:28:54 2015 +0000
Idle: Changed to new enum name
Change-Id: Id3852abe9bc7bbe774331a7d691abd2a79ff59b4
diff --git a/avmedia/source/framework/mediacontrol.cxx b/avmedia/source/framework/mediacontrol.cxx
index 3c20767..d41783ff 100644
--- a/avmedia/source/framework/mediacontrol.cxx
+++ b/avmedia/source/framework/mediacontrol.cxx
@@ -187,7 +187,7 @@ MediaControl::MediaControl( vcl::Window* pParent, MediaControlStyle eControlStyl
maMinSize.Height() = ( maMinSize.Height() << 1 ) + AVMEDIA_CONTROLOFFSET;
}
- maIdle.SetPriority( IdlePriority::LOW );
+ maIdle.SetPriority( SchedulerPriority::LOW );
maIdle.SetIdleHdl( LINK( this, MediaControl, implTimeoutHdl ) );
maIdle.Start();
}
diff --git a/avmedia/source/framework/soundhandler.cxx b/avmedia/source/framework/soundhandler.cxx
index 22658db..f820e9c 100644
--- a/avmedia/source/framework/soundhandler.cxx
+++ b/avmedia/source/framework/soundhandler.cxx
@@ -263,7 +263,7 @@ void SAL_CALL SoundHandler::dispatchWithNotification(const css::util::URL&
// Count this request and initialize self-holder against dying by uno ref count ...
m_xSelfHold = css::uno::Reference< css::uno::XInterface >(static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY);
m_xPlayer->start();
- m_aUpdateIdle.SetPriority( IdlePriority::LOWER );
+ m_aUpdateIdle.SetPriority( SchedulerPriority::LOWER );
m_aUpdateIdle.Start();
}
catch( css::uno::Exception& e )
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 0e1de19..54b7775 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -950,7 +950,7 @@ void EditorWindow::CreateEditEngine()
ImplSetFont();
- aSyntaxIdle.SetPriority( IdlePriority::LOWER );
+ aSyntaxIdle.SetPriority( SchedulerPriority::LOWER );
aSyntaxIdle.SetIdleHdl( LINK( this, EditorWindow, SyntaxTimerHdl ) );
bool bWasDoSyntaxHighlight = bDoSyntaxHighlight;
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index 9b4bb81..2847f58 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -220,7 +220,7 @@ DlgEditor::DlgEditor (
m_ClipboardDataFlavorsResource[1].HumanPresentableName = "Dialog 8.0" ;
m_ClipboardDataFlavorsResource[1].DataType = ::getCppuType( (const Sequence< sal_Int8 >*) 0 );
- aMarkIdle.SetPriority(IdlePriority::LOW);
+ aMarkIdle.SetPriority(SchedulerPriority::LOW);
aMarkIdle.SetIdleHdl( LINK( this, DlgEditor, MarkTimeout ) );
rWindow.SetMapMode( MapMode( MAP_100TH_MM ) );
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index dc68ebb..c77ddd5 100755
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -560,7 +560,7 @@ GL3DBarChart::GL3DBarChart(
{
mbAutoFly = atoi(aAutoFly);
}
- maIdle.SetPriority(IdlePriority::REPAINT);
+ maIdle.SetPriority(SchedulerPriority::REPAINT);
maIdle.SetIdleHdl(LINK(this, GL3DBarChart, UpdateTimerHdl));
maIdle.Start();
osl_getSystemTime(&maFPSRenderStartTime);
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index 8610c0e..f8c6c50 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -452,7 +452,7 @@ short ActualizeProgress::Execute()
if ( pIdle )
{
pIdle->SetIdleHdl( LINK( this, ActualizeProgress, TimeoutHdl ) );
- pIdle->SetPriority( IdlePriority::LOWEST );
+ pIdle->SetPriority( SchedulerPriority::LOWEST );
pIdle->Start();
}
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx
index b588ea1..3535828 100644
--- a/cui/source/dialogs/linkdlg.cxx
+++ b/cui/source/dialogs/linkdlg.cxx
@@ -125,7 +125,7 @@ SvBaseLinksDlg::SvBaseLinksDlg( vcl::Window * pParent, LinkManager* pMgr, bool b
// UpdateTimer for DDE-/Grf-links, which are waited for
aUpdateIdle.SetIdleHdl( LINK( this, SvBaseLinksDlg, UpdateWaitingHdl ) );
- aUpdateIdle.SetPriority( IdlePriority::LOWEST );
+ aUpdateIdle.SetPriority( SchedulerPriority::LOWEST );
m_pPbOpenSource->Hide();
diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx
index f24ab65..5ad4a5d 100644
--- a/cui/source/dialogs/thesdlg.cxx
+++ b/cui/source/dialogs/thesdlg.cxx
@@ -61,7 +61,7 @@ LookUpComboBox::LookUpComboBox(vcl::Window *pParent)
EnableAutoSize(true);
m_aModifyIdle.SetIdleHdl( LINK( this, LookUpComboBox, ModifyTimer_Hdl ) );
- m_aModifyIdle.SetPriority( IdlePriority::LOWEST );
+ m_aModifyIdle.SetPriority( SchedulerPriority::LOWEST );
EnableAutocomplete( false );
}
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx
index 8572b79..3c01c4f 100644
--- a/cui/source/options/optjava.cxx
+++ b/cui/source/options/optjava.cxx
@@ -182,7 +182,7 @@ SvxJavaOptionsPage::SvxJavaOptionsPage( vcl::Window* pParent, const SfxItemSet&
m_pParameterBtn->SetClickHdl( LINK( this, SvxJavaOptionsPage, ParameterHdl_Impl ) );
m_pClassPathBtn->SetClickHdl( LINK( this, SvxJavaOptionsPage, ClassPathHdl_Impl ) );
m_aResetIdle.SetIdleHdl( LINK( this, SvxJavaOptionsPage, ResetHdl_Impl ) );
- m_aResetIdle.SetPriority(IdlePriority::LOWER);
+ m_aResetIdle.SetPriority(SchedulerPriority::LOWER);
m_pExpertConfigBtn->SetClickHdl( LINK( this, SvxJavaOptionsPage, ExpertConfigHdl_Impl) );
if (!officecfg::Office::Common::Security::EnableExpertConfiguration::get())
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx
index 1f32609..b3a5b1a 100644
--- a/cui/source/tabpages/backgrnd.cxx
+++ b/cui/source/tabpages/backgrnd.cxx
@@ -1093,7 +1093,7 @@ void SvxBackgroundTabPage::ShowSelector()
// delayed loading via timer (because of UI-Update)
pPageImpl->pLoadIdle = new Idle;
- pPageImpl->pLoadIdle->SetPriority( IdlePriority::LOWEST );
+ pPageImpl->pLoadIdle->SetPriority( SchedulerPriority::LOWEST );
pPageImpl->pLoadIdle->SetIdleHdl(
LINK( this, SvxBackgroundTabPage, LoadIdleHdl_Impl ) );
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index 7392875..1a89de9 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -251,7 +251,7 @@ struct SvxCharNamePage_Impl
m_bInSearchMode ( false )
{
- m_aUpdateIdle.SetPriority( IdlePriority::LOWEST );
+ m_aUpdateIdle.SetPriority( SchedulerPriority::LOWEST );
}
~SvxCharNamePage_Impl()
diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx
index 1a54d84..380d49c 100644
--- a/cui/source/tabpages/macroass.cxx
+++ b/cui/source/tabpages/macroass.cxx
@@ -192,7 +192,7 @@ void _SfxMacroTabPage::LaunchFillGroup()
if (!mpImpl->maFillGroupIdle.GetIdleHdl().IsSet())
{
mpImpl->maFillGroupIdle.SetIdleHdl( STATIC_LINK( this, _SfxMacroTabPage, TimeOut_Impl ) );
- mpImpl->maFillGroupIdle.SetPriority( IdlePriority::HIGHEST );
+ mpImpl->maFillGroupIdle.SetPriority( SchedulerPriority::HIGHEST );
mpImpl->maFillGroupIdle.Start();
}
}
diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx
index 65804e4..466cbad 100644
--- a/dbaccess/source/ui/querydesign/JoinTableView.cxx
+++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx
@@ -1048,7 +1048,7 @@ bool OJoinTableView::ScrollWhileDragging()
// resetting timer, if still necessary
if (bNeedScrollTimer)
{
- m_aDragScrollIdle.SetPriority(IdlePriority::LOW);
+ m_aDragScrollIdle.SetPriority(SchedulerPriority::LOW);
m_aDragScrollIdle.Start();
}
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 3fb4919..cd4e2a5 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -709,7 +709,7 @@ ExtMgrDialog::ExtMgrDialog(vcl::Window *pParent, TheExtensionManager *pManager)
m_pUpdateBtn->Enable(false);
- m_aIdle.SetPriority(IdlePriority::LOWEST);
+ m_aIdle.SetPriority(SchedulerPriority::LOWEST);
m_aIdle.SetIdleHdl( LINK( this, ExtMgrDialog, TimeOutHdl ) );
}
@@ -1191,7 +1191,7 @@ UpdateRequiredDialog::UpdateRequiredDialog(vcl::Window *pParent, TheExtensionMan
m_pUpdateBtn->Enable( false );
m_pCloseBtn->GrabFocus();
- m_aIdle.SetPriority( IdlePriority::MEDIUM );
+ m_aIdle.SetPriority( SchedulerPriority::MEDIUM );
m_aIdle.SetIdleHdl( LINK( this, UpdateRequiredDialog, TimeOutHdl ) );
}
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 93aeef0..809d451 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -145,7 +145,7 @@ ImpEditEngine::ImpEditEngine( EditEngine* pEE, SfxItemPool* pItemPool ) :
aStatusTimer.SetTimeout( 200 );
aStatusTimer.SetTimeoutHdl( LINK( this, ImpEditEngine, StatusTimerHdl ) );
- aIdleFormatter.SetPriority( IdlePriority::REPAINT );
+ aIdleFormatter.SetPriority( SchedulerPriority::REPAINT );
aIdleFormatter.SetIdleHdl( LINK( this, ImpEditEngine, IdleFormatHdl ) );
aOnlineSpellTimer.SetTimeout( 100 );
diff --git a/extensions/source/bibliography/bibcont.cxx b/extensions/source/bibliography/bibcont.cxx
index 98f39dc..954700c 100644
--- a/extensions/source/bibliography/bibcont.cxx
+++ b/extensions/source/bibliography/bibcont.cxx
@@ -127,7 +127,7 @@ BibBookContainer::BibBookContainer(vcl::Window* pParent, WinBits nStyle):
{
pBibMod = OpenBibModul();
aIdle.SetIdleHdl(LINK( this, BibBookContainer, SplitHdl));
- aIdle.SetPriority(IdlePriority::LOWEST);
+ aIdle.SetPriority(SchedulerPriority::LOWEST);
}
BibBookContainer::~BibBookContainer()
diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx
index c59b1ab..c831dc5 100644
--- a/extensions/source/bibliography/toolbar.cxx
+++ b/extensions/source/bibliography/toolbar.cxx
@@ -207,7 +207,7 @@ BibToolBar::BibToolBar(vcl::Window* pParent, Link aLink, WinBits nStyle):
Application::AddEventListener( LINK( this, BibToolBar, SettingsChanged_Impl ) );
aIdle.SetIdleHdl(LINK( this, BibToolBar, SendSelHdl));
- aIdle.SetPriority(IdlePriority::LOWEST);
+ aIdle.SetPriority(SchedulerPriority::LOWEST);
SetDropdownClickHdl( LINK( this, BibToolBar, MenuHdl));
diff --git a/extensions/source/update/ui/updatecheckui.cxx b/extensions/source/update/ui/updatecheckui.cxx
index 0e9d0f8..bc676fe 100644
--- a/extensions/source/update/ui/updatecheckui.cxx
+++ b/extensions/source/update/ui/updatecheckui.cxx
@@ -213,7 +213,7 @@ UpdateCheckUI::UpdateCheckUI(const uno::Reference<uno::XComponentContext>& xCont
maBubbleImage = GetBubbleImage( maBubbleImageURL );
- maWaitIdle.SetPriority( IdlePriority::LOWEST );
+ maWaitIdle.SetPriority( SchedulerPriority::LOWEST );
maWaitIdle.SetIdleHdl( LINK( this, UpdateCheckUI, WaitTimeOutHdl ) );
maTimeoutTimer.SetTimeout( 10000 );
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 1569208..1086552 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1789,7 +1789,7 @@ namespace frm
doSetDelegator();
- m_aChangeIdle.SetPriority(IdlePriority::LOWEST);
+ m_aChangeIdle.SetPriority(SchedulerPriority::LOWEST);
m_aChangeIdle.SetIdleHdl(LINK(this,OListBoxControl,OnTimeout));
}
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index c33d1e0..15ca7bd 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -1773,7 +1773,7 @@ OUString FormulaDlg::GetMeText() const
void FormulaDlg::Update()
{
m_pImpl->Update();
- m_pImpl->aIdle.SetPriority(IdlePriority::LOWER);
+ m_pImpl->aIdle.SetPriority(SchedulerPriority::LOWER);
m_pImpl->aIdle.SetIdleHdl(LINK( this, FormulaDlg, UpdateFocusHdl));
m_pImpl->aIdle.Start();
}
diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx
index 70653dd..d6313d4 100644
--- a/formula/source/ui/dlg/funcutl.cxx
+++ b/formula/source/ui/dlg/funcutl.cxx
@@ -461,7 +461,7 @@ RefEdit::RefEdit( vcl::Window* _pParent, vcl::Window* pShrinkModeLabel, WinBits
, pLabelWidget(pShrinkModeLabel)
{
aIdle.SetIdleHdl( LINK( this, RefEdit, UpdateHdl ) );
- aIdle.SetPriority( IdlePriority::LOW );
+ aIdle.SetPriority( SchedulerPriority::LOW );
}
RefEdit::RefEdit( vcl::Window* _pParent,IControlReferenceHandler* pParent,
@@ -471,7 +471,7 @@ RefEdit::RefEdit( vcl::Window* _pParent,IControlReferenceHandler* pParent,
, pLabelWidget(pShrinkModeLabel)
{
aIdle.SetIdleHdl( LINK( this, RefEdit, UpdateHdl ) );
- aIdle.SetPriority( IdlePriority::LOW );
+ aIdle.SetPriority( SchedulerPriority::LOW );
}
extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeRefEdit(vcl::Window *pParent, VclBuilder::stringmap &)
@@ -523,7 +523,7 @@ void RefEdit::SetReferences( IControlReferenceHandler* pDlg, vcl::Window* pLabel
if( pDlg )
{
aIdle.SetIdleHdl( LINK( this, RefEdit, UpdateHdl ) );
- aIdle.SetPriority( IdlePriority::LOW );
+ aIdle.SetPriority( SchedulerPriority::LOW );
}
else
{
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index a87e3c9..aa73362 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -476,7 +476,7 @@ LngSvcMgr::LngSvcMgr()
UpdateAll();
- aUpdateIdle.SetPriority(IdlePriority::LOWEST);
+ aUpdateIdle.SetPriority(SchedulerPriority::LOWEST);
aUpdateIdle.SetIdleHdl(LINK(this, LngSvcMgr, updateAndBroadcast));
// request to be notified if an extension has been added/removed
diff --git a/reportdesign/source/ui/report/DesignView.cxx b/reportdesign/source/ui/report/DesignView.cxx
index 55b4b16..94b9de4 100644
--- a/reportdesign/source/ui/report/DesignView.cxx
+++ b/reportdesign/source/ui/report/DesignView.cxx
@@ -118,7 +118,7 @@ ODesignView::ODesignView( vcl::Window* pParent,
m_aSplitWin.SetAlign(WINDOWALIGN_LEFT);
m_aSplitWin.Show();
- m_aMarkIdle.SetPriority( IdlePriority::LOW );
+ m_aMarkIdle.SetPriority( SchedulerPriority::LOW );
m_aMarkIdle.SetIdleHdl( LINK( this, ODesignView, MarkTimeout ) );
}
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 4a4310a..15a5a46 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -250,7 +250,7 @@ ScDocument::ScDocument( ScDocumentMode eMode, SfxObjectShell* pDocShell ) :
SetLanguage( ScGlobal::eLnge, ScGlobal::eLnge, ScGlobal::eLnge );
aTrackIdle.SetIdleHdl( LINK( this, ScDocument, TrackTimeHdl ) );
- aTrackIdle.SetPriority( IdlePriority::LOW );
+ aTrackIdle.SetPriority( SchedulerPriority::LOW );
}
sfx2::LinkManager* ScDocument::GetLinkManager()
diff --git a/sc/source/core/tool/chartlis.cxx b/sc/source/core/tool/chartlis.cxx
index 5ac5be5..97e4576 100644
--- a/sc/source/core/tool/chartlis.cxx
+++ b/sc/source/core/tool/chartlis.cxx
@@ -588,7 +588,7 @@ void ScChartListenerCollection::FreeUno( const uno::Reference< chart::XChartData
void ScChartListenerCollection::StartTimer()
{
- aIdle.SetPriority( IdlePriority::REPAINT );
+ aIdle.SetPriority( SchedulerPriority::REPAINT );
aIdle.Start();
}
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index dc0dbf2..b5ef3f9 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -174,7 +174,7 @@ ScModule::ScModule( SfxObjectFactory* pFact ) :
ERRCODE_AREA_APP2-1,
GetResMgr() );
- aSpellIdle.SetPriority(IdlePriority::REPAINT);
+ aSpellIdle.SetPriority(SchedulerPriority::REPAINT);
aSpellIdle.SetIdleHdl( LINK( this, ScModule, SpellTimerHdl ) );
aIdleTimer.SetTimeout(SC_IDLE_MIN);
aIdleTimer.SetTimeoutHdl( LINK( this, ScModule, IdleHandler ) );
diff --git a/sc/source/ui/dbgui/sfiltdlg.cxx b/sc/source/ui/dbgui/sfiltdlg.cxx
index 2999cb2..5ac8147 100644
--- a/sc/source/ui/dbgui/sfiltdlg.cxx
+++ b/sc/source/ui/dbgui/sfiltdlg.cxx
@@ -87,7 +87,7 @@ ScSpecialFilterDlg::ScSpecialFilterDlg( SfxBindings* pB, SfxChildWindow* pCW, vc
// Hack: RefInput-Kontrolle
pIdle = new Idle;
- pIdle->SetPriority( IdlePriority::MEDIUM ); // 50ms warten
+ pIdle->SetPriority( SchedulerPriority::MEDIUM ); // 50ms warten
pIdle->SetIdleHdl( LINK( this, ScSpecialFilterDlg, TimeOutHdl ) );
pIdle->Start();
diff --git a/sc/source/ui/docshell/autostyl.cxx b/sc/source/ui/docshell/autostyl.cxx
index 9ab079a..4c2ea19 100644
--- a/sc/source/ui/docshell/autostyl.cxx
+++ b/sc/source/ui/docshell/autostyl.cxx
@@ -84,7 +84,7 @@ ScAutoStyleList::ScAutoStyleList(ScDocShell* pShell)
{
aTimer.SetTimeoutHdl( LINK( this, ScAutoStyleList, TimerHdl ) );
aInitIdle.SetIdleHdl( LINK( this, ScAutoStyleList, InitHdl ) );
- aInitIdle.SetPriority( IdlePriority::HIGHEST );
+ aInitIdle.SetPriority( SchedulerPriority::HIGHEST );
}
ScAutoStyleList::~ScAutoStyleList()
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index 2dd6bbe..dec8991 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -103,7 +103,7 @@ ScFunctionDockWin::ScFunctionDockWin( SfxBindings* pBindingsP,
InitLRUList();
SetStyle(GetStyle()|WB_CLIPCHILDREN);
- aIdle.SetPriority(IdlePriority::LOWER);
+ aIdle.SetPriority(SchedulerPriority::LOWER);
aIdle.SetIdleHdl(LINK( this, ScFunctionDockWin, TimerHdl));
if (pCW != NULL)
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index b4a7507..6f4fb08 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -114,13 +114,13 @@ ScAcceptChgDlg::ScAcceptChgDlg(SfxBindings* pB, SfxChildWindow* pCW, vcl::Window
m_pAcceptChgCtr = new SvxAcceptChgCtr(get_content_area(), this);
nAcceptCount=0;
nRejectCount=0;
- aReOpenIdle.SetPriority(IdlePriority::MEDIUM);
+ aReOpenIdle.SetPriority(SchedulerPriority::MEDIUM);
aReOpenIdle.SetIdleHdl(LINK( this, ScAcceptChgDlg, ReOpenTimerHdl ));
pTPFilter=m_pAcceptChgCtr->GetFilterPage();
pTPView=m_pAcceptChgCtr->GetViewPage();
pTheView=pTPView->GetTableControl();
- aSelectionIdle.SetPriority(IdlePriority::LOW);
+ aSelectionIdle.SetPriority(SchedulerPriority::LOW);
aSelectionIdle.SetIdleHdl(LINK( this, ScAcceptChgDlg, UpdateSelectionHdl ));
pTPFilter->SetReadyHdl(LINK( this, ScAcceptChgDlg, FilterHandle ));
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index 8cfed18..fc0d82c 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -767,7 +767,7 @@ ScRefHandler::ScRefHandler( vcl::Window &rWindow, SfxBindings* pB, bool bBindRef
{
m_aHelper.SetWindow(&m_rWindow);
reverseUniqueHelpIdHack(m_rWindow);
- aIdle.SetPriority(IdlePriority::LOWER);
+ aIdle.SetPriority(SchedulerPriority::LOWER);
aIdle.SetIdleHdl(LINK( this, ScRefHandler, UpdateFocusHdl));
if( bBindRef ) EnterRefMode();
diff --git a/sc/source/ui/miscdlgs/conflictsdlg.cxx b/sc/source/ui/miscdlgs/conflictsdlg.cxx
index e2d4e15..27ab197 100644
--- a/sc/source/ui/miscdlgs/conflictsdlg.cxx
+++ b/sc/source/ui/miscdlgs/conflictsdlg.cxx
@@ -420,7 +420,7 @@ ScConflictsDlg::ScConflictsDlg( vcl::Window* pParent, ScViewData* pViewData, ScD
m_pLbConflicts->SetSelectionMode( MULTIPLE_SELECTION );
m_pLbConflicts->SetHighlightRange();
- maSelectionIdle.SetPriority( IdlePriority::LOW );
+ maSelectionIdle.SetPriority( SchedulerPriority::LOW );
maSelectionIdle.SetIdleHdl( LINK( this, ScConflictsDlg, UpdateSelectionHdl ) );
m_pLbConflicts->SetSelectHdl( LINK( this, ScConflictsDlg, SelectHandle ) );
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 956027e..3acdbb2 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -657,7 +657,7 @@ ScNavigatorDlg::ScNavigatorDlg( SfxBindings* pB, SfxChildWindowContext* pCW, vcl
aWndScenarios.SetPosPixel( aLbEntries.GetPosPixel() );
aContentIdle.SetIdleHdl( LINK( this, ScNavigatorDlg, TimeHdl ) );
- aContentIdle.SetPriority( IdlePriority::LOWEST );
+ aContentIdle.SetPriority( SchedulerPriority::LOWEST );
FreeResource();
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index e0e6102..c0f3166 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -331,7 +331,7 @@ ScExtIButton::ScExtIButton(vcl::Window* pParent, WinBits nBits )
: ImageButton(pParent,nBits), pPopupMenu(NULL)
{
nSelected=0;
- aIdle.SetPriority(IdlePriority::LOWEST);
+ aIdle.SetPriority(SchedulerPriority::LOWEST);
SetDropDown(PUSHBUTTON_DROPDOWN_TOOLBOX);
}
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index 2721299..0869cb6 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -775,7 +775,7 @@ void SdDrawDocument::StartOnlineSpelling(bool bForceSpelling)
mpOnlineSpellingList->seekShape(0);
mpOnlineSpellingIdle = new Idle();
mpOnlineSpellingIdle->SetIdleHdl( LINK(this, SdDrawDocument, OnlineSpellingHdl) );
- mpOnlineSpellingIdle->SetPriority(IdlePriority::LOWEST);
+ mpOnlineSpellingIdle->SetPriority(SchedulerPriority::LOWEST);
mpOnlineSpellingIdle->Start();
}
}
diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx
index 58609e4..4257f51 100644
--- a/sd/source/ui/dlg/brkdlg.cxx
+++ b/sd/source/ui/dlg/brkdlg.cxx
@@ -144,7 +144,7 @@ IMPL_LINK( BreakDlg, UpDate, void*, nInit )
*/
short BreakDlg::Execute()
{
- aIdle.SetPriority( IdlePriority::REPAINT );
+ aIdle.SetPriority( SchedulerPriority::REPAINT );
aIdle.SetIdleHdl( LINK( this, BreakDlg, InitialUpdate ) );
aIdle.Start();
diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx
index 9a8f3a8..2e5ef70 100644
--- a/sd/source/ui/dlg/dlgass.cxx
+++ b/sd/source/ui/dlg/dlgass.cxx
@@ -585,13 +585,13 @@ AssistentDlgImpl::AssistentDlgImpl( vcl::Window* pWindow, const Link& rFinishLin
maAssistentFunc.GotoPage(1);
mpLastPageButton->Disable();
- maPrevIdle.SetPriority( IdlePriority::LOWER );
+ maPrevIdle.SetPriority( SchedulerPriority::LOWER );
maPrevIdle.SetIdleHdl( LINK( this, AssistentDlgImpl, UpdatePreviewHdl));
- maEffectPrevIdle.SetPriority( IdlePriority::MEDIUM );
+ maEffectPrevIdle.SetPriority( SchedulerPriority::MEDIUM );
maEffectPrevIdle.SetIdleHdl( LINK( this, AssistentDlgImpl, EffectPreviewHdl ));
- maUpdatePageListIdle.SetPriority( IdlePriority::MEDIUM );
+ maUpdatePageListIdle.SetPriority( SchedulerPriority::MEDIUM );
maUpdatePageListIdle.SetIdleHdl( LINK( this, AssistentDlgImpl, UpdatePageListHdl));
SetStartType( ST_EMPTY );
diff --git a/sd/source/ui/dlg/filedlg.cxx b/sd/source/ui/dlg/filedlg.cxx
index ab60eac..edc75e0 100644
--- a/sd/source/ui/dlg/filedlg.cxx
+++ b/sd/source/ui/dlg/filedlg.cxx
@@ -133,7 +133,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl)
{
mxPlayer.set( avmedia::MediaWindow::createPlayer( aUrl, "" ), css::uno::UNO_QUERY_THROW );
mxPlayer->start();
- maUpdateIdle.SetPriority( IdlePriority::LOW );
+ maUpdateIdle.SetPriority( SchedulerPriority::LOW );
maUpdateIdle.Start();
}
catch (const css::uno::Exception&)
diff --git a/sd/source/ui/framework/module/ShellStackGuard.cxx b/sd/source/ui/framework/module/ShellStackGuard.cxx
index 4e44b73..7f2f172 100644
--- a/sd/source/ui/framework/module/ShellStackGuard.cxx
+++ b/sd/source/ui/framework/module/ShellStackGuard.cxx
@@ -72,7 +72,7 @@ ShellStackGuard::ShellStackGuard (Reference<frame::XController>& rxController)
// Prepare the printer polling.
maPrinterPollingIdle.SetIdleHdl(LINK(this,ShellStackGuard,TimeoutHandler));
- maPrinterPollingIdle.SetPriority(IdlePriority::LOWER);
+ maPrinterPollingIdle.SetPriority(SchedulerPriority::LOWER);
}
}
diff --git a/sd/source/ui/slidesorter/controller/SlsAnimator.cxx b/sd/source/ui/slidesorter/controller/SlsAnimator.cxx
index 48014c0..99a8388 100644
--- a/sd/source/ui/slidesorter/controller/SlsAnimator.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsAnimator.cxx
@@ -68,7 +68,7 @@ Animator::Animator (SlideSorter& rSlideSorter)
mpDrawLock(),
mnNextAnimationId(0)
{
- maIdle.SetPriority(IdlePriority::REPAINT);
+ maIdle.SetPriority(SchedulerPriority::REPAINT);
maIdle.SetIdleHdl(LINK(this,Animator,TimeoutHandler));
}
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx
index dd5697c..834bd3e 100644
--- a/sd/source/ui/view/sdview.cxx
+++ b/sd/source/ui/view/sdview.cxx
@@ -139,9 +139,9 @@ View::View(SdDrawDocument& rDrawDoc, OutputDevice* pOutDev,
// Timer for delayed drop (has to be for MAC)
maDropErrorIdle.SetIdleHdl( LINK(this, View, DropErrorHdl) );
- maDropErrorIdle.SetPriority(IdlePriority::MEDIUM);
+ maDropErrorIdle.SetPriority(SchedulerPriority::MEDIUM);
maDropInsertFileIdle.SetIdleHdl( LINK(this, View, DropInsertFileHdl) );
- maDropInsertFileIdle.SetPriority(IdlePriority::MEDIUM);
+ maDropInsertFileIdle.SetPriority(SchedulerPriority::MEDIUM);
}
void View::ImplClearDrawDropMarker()
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx
index a81edd1..3abf2af 100644
--- a/sfx2/source/appl/appcfg.cxx
+++ b/sfx2/source/appl/appcfg.cxx
@@ -115,7 +115,7 @@ SfxEventAsyncer_Impl::SfxEventAsyncer_Impl( const SfxEventHint& rHint )
StartListening( *rHint.GetObjShell() );
pIdle = new Idle;
pIdle->SetIdleHdl( LINK(this, SfxEventAsyncer_Impl, IdleHdl) );
- pIdle->SetPriority( IdlePriority::HIGHEST );
+ pIdle->SetPriority( SchedulerPriority::HIGHEST );
pIdle->Start();
}
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index eca2488..188f76b 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -539,7 +539,7 @@ IndexTabPage_Impl::IndexTabPage_Impl(vcl::Window* pParent, SfxHelpIndexWindow_Im
m_pOpenBtn->SetClickHdl( LINK( this, IndexTabPage_Impl, OpenHdl ) );
Link aTimeoutLink = LINK( this, IndexTabPage_Impl, TimeoutHdl );
aFactoryIdle.SetIdleHdl( LINK(this, IndexTabPage_Impl, IdleHdl ));
- aFactoryIdle.SetPriority(IdlePriority::LOWER);
+ aFactoryIdle.SetPriority(SchedulerPriority::LOWER);
aKeywordTimer.SetTimeoutHdl( aTimeoutLink );
}
@@ -1406,7 +1406,7 @@ SfxHelpIndexWindow_Impl::SfxHelpIndexWindow_Impl(SfxHelpWindow_Impl* _pParent)
nMinWidth = ( m_pActiveLB->GetSizePixel().Width() / 2 );
aIdle.SetIdleHdl( LINK( this, SfxHelpIndexWindow_Impl, InitHdl ) );
- aIdle.SetPriority( IdlePriority::LOWER );
+ aIdle.SetPriority( SchedulerPriority::LOWER );
aIdle.Start();
Show();
@@ -1533,7 +1533,7 @@ IMPL_LINK_NOARG(SfxHelpIndexWindow_Impl, InitHdl)
// now use the timer for selection
aIdle.SetIdleHdl( LINK( this, SfxHelpIndexWindow_Impl, SelectFactoryHdl ) );
- aIdle.SetPriority( IdlePriority::LOWEST );
+ aIdle.SetPriority( SchedulerPriority::LOWEST );
return 0;
}
@@ -1879,7 +1879,7 @@ SfxHelpTextWindow_Impl::SfxHelpTextWindow_Impl( SfxHelpWindow_Impl* pParent ) :
aOnStartupCB.SetClickHdl( LINK( this, SfxHelpTextWindow_Impl, CheckHdl ) );
aSelectIdle.SetIdleHdl( LINK( this, SfxHelpTextWindow_Impl, SelectHdl ) );
- aSelectIdle.SetPriority( IdlePriority::LOWEST );
+ aSelectIdle.SetPriority( SchedulerPriority::LOWEST );
char* pEnv = getenv( "help_debug" );
if ( pEnv )
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index 8e8351d..8e2cfb0 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -337,7 +337,7 @@ void SfxDispatcher::Construct_Impl( SfxDispatcher* pParent )
pImp->xPoster = new SfxHintPoster(aGenLink);
- pImp->aIdle.SetPriority(IdlePriority::MEDIUM);
+ pImp->aIdle.SetPriority(SchedulerPriority::MEDIUM);
pImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) );
}
@@ -473,7 +473,7 @@ void SfxDispatcher::Pop(SfxShell& rShell, sal_uInt16 nMode)
if(!pSfxApp->IsDowning() && !pImp->aToDoStack.empty())
{
// No immediate update is requested
- pImp->aIdle.SetPriority(IdlePriority::MEDIUM);
+ pImp->aIdle.SetPriority(SchedulerPriority::MEDIUM);
pImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) );
pImp->aIdle.Start();
}
@@ -684,7 +684,7 @@ void SfxDispatcher::DoActivate_Impl(bool bMDI, SfxViewFrame* /* pOld */)
if(!pImp->aToDoStack.empty())
{
// No immediate update is requested
- pImp->aIdle.SetPriority(IdlePriority::MEDIUM);
+ pImp->aIdle.SetPriority(SchedulerPriority::MEDIUM);
pImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) );
pImp->aIdle.Start();
}
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index 24688c1..03ed424 100644
--- a/sfx2/source/dialog/basedlgs.cxx
+++ b/sfx2/source/dialog/basedlgs.cxx
@@ -319,7 +319,7 @@ void SfxModelessDialog::Init(SfxBindings *pBindinx, SfxChildWindow *pCW)
SetUniqueId( GetHelpId() );
if ( pBindinx )
pImp->StartListening( *pBindinx );
- pImp->aMoveIdle.SetPriority(IdlePriority::RESIZE);
+ pImp->aMoveIdle.SetPriority(SchedulerPriority::RESIZE);
pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxModelessDialog,TimerHdl));
}
@@ -458,7 +458,7 @@ SfxFloatingWindow::SfxFloatingWindow( SfxBindings *pBindinx,
SetHelpId("");
if ( pBindinx )
pImp->StartListening( *pBindinx );
- pImp->aMoveIdle.SetPriority(IdlePriority::RESIZE);
+ pImp->aMoveIdle.SetPriority(SchedulerPriority::RESIZE);
pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxFloatingWindow,TimerHdl));
}
@@ -479,7 +479,7 @@ SfxFloatingWindow::SfxFloatingWindow( SfxBindings *pBindinx,
if ( pBindinx )
pImp->StartListening( *pBindinx );
- pImp->aMoveIdle.SetPriority(IdlePriority::RESIZE);
+ pImp->aMoveIdle.SetPriority(SchedulerPriority::RESIZE);
pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxFloatingWindow,TimerHdl));
}
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 514a75a..2335da2 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -1442,9 +1442,9 @@ CustomPropertiesWindow::CustomPropertiesWindow(vcl::Window* pParent,
LogicToPixel(Point(159, 2), MAP_APPFONT),
LogicToPixel(Size(61, RSC_CD_TEXTBOX_HEIGHT), MAP_APPFONT));
- m_aEditLoseFocusIdle.SetPriority( IdlePriority::LOWEST );
+ m_aEditLoseFocusIdle.SetPriority( SchedulerPriority::LOWEST );
m_aEditLoseFocusIdle.SetIdleHdl( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) );
- m_aBoxLoseFocusIdle.SetPriority( IdlePriority::LOWEST );
+ m_aBoxLoseFocusIdle.SetPriority( SchedulerPriority::LOWEST );
m_aBoxLoseFocusIdle.SetIdleHdl( LINK( this, CustomPropertiesWindow, BoxTimeoutHdl ) );
m_aNameBox.add_mnemonic_label(m_pHeaderAccName);
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx
index 08ddad1..3e3b519 100644
--- a/sfx2/source/dialog/dockwin.cxx
+++ b/sfx2/source/dialog/dockwin.cxx
@@ -889,7 +889,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW,
pImp->nPos = pImp->nDockPos = 0;
pImp->bNewLine = false;
pImp->SetLastAlignment(SFX_ALIGN_NOALIGNMENT);
- pImp->aMoveIdle.SetPriority(IdlePriority::RESIZE);
+ pImp->aMoveIdle.SetPriority(SchedulerPriority::RESIZE);
pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl));
}
@@ -940,7 +940,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW,
pImp->nPos = pImp->nDockPos = 0;
pImp->bNewLine = false;
pImp->SetLastAlignment(SFX_ALIGN_NOALIGNMENT);
- pImp->aMoveIdle.SetPriority(IdlePriority::RESIZE);
+ pImp->aMoveIdle.SetPriority(SchedulerPriority::RESIZE);
pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl));
}
@@ -988,7 +988,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW,
pImp->nPos = pImp->nDockPos = 0;
pImp->bNewLine = false;
pImp->SetLastAlignment(SFX_ALIGN_NOALIGNMENT);
- pImp->aMoveIdle.SetPriority(IdlePriority::RESIZE);
+ pImp->aMoveIdle.SetPriority(SchedulerPriority::RESIZE);
pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl));
}
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index d6acc57..993710e 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -983,7 +983,7 @@ FileDialogHelper_Impl::FileDialogHelper_Impl(
mbHasPreview = true;
// aPreviewTimer
- maPreviewIdle.SetPriority( IdlePriority::LOWEST );
+ maPreviewIdle.SetPriority( SchedulerPriority::LOWEST );
maPreviewIdle.SetIdleHdl( LINK( this, FileDialogHelper_Impl, TimeOutHdl_Impl ) );
break;
@@ -1000,7 +1000,7 @@ FileDialogHelper_Impl::FileDialogHelper_Impl(
nTemplateDescription = TemplateDescription::FILEOPEN_LINK_PREVIEW;
mbHasPreview = true;
// aPreviewTimer
- maPreviewIdle.SetPriority( IdlePriority::LOWEST );
+ maPreviewIdle.SetPriority( SchedulerPriority::LOWEST );
maPreviewIdle.SetIdleHdl( LINK( this, FileDialogHelper_Impl, TimeOutHdl_Impl ) );
break;
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 4661d73..55cfda0 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -1527,7 +1527,7 @@ void SfxCommonTemplateDialog_Impl::Notify(SfxBroadcaster& /*rBC*/, const SfxHint
if(!pIdle)
{
pIdle=new Idle;
- pIdle->SetPriority(IdlePriority::LOWEST);
+ pIdle->SetPriority(SchedulerPriority::LOWEST);
pIdle->SetIdleHdl(LINK(this,SfxCommonTemplateDialog_Impl,TimeOut));
}
pIdle->Start();
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx
index 371a7e9..cf626fd 100644
--- a/sfx2/source/doc/new.cxx
+++ b/sfx2/source/doc/new.cxx
@@ -432,7 +432,7 @@ SfxNewFileDialog_Impl::SfxNewFileDialog_Impl(
m_pRegionLb->SetSelectHdl(LINK(this, SfxNewFileDialog_Impl, RegionSelect));
}
- aPrevIdle.SetPriority( IdlePriority::LOWEST );
+ aPrevIdle.SetPriority( SchedulerPriority::LOWEST );
aPrevIdle.SetIdleHdl( LINK( this, SfxNewFileDialog_Impl, Update));
m_pRegionLb->SelectEntryPos(0);
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 31e6bd7..60ce452 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -107,12 +107,12 @@ SmEditWindow::SmEditWindow( SmCmdBoxWindow &rMyCmdBoxWin ) :
SetBackground( GetSettings().GetStyleSettings().GetWindowColor() );
aModifyIdle.SetIdleHdl(LINK(this, SmEditWindow, ModifyTimerHdl));
- aModifyIdle.SetPriority(IdlePriority::LOWEST);
+ aModifyIdle.SetPriority(SchedulerPriority::LOWEST);
if (!IsInlineEditEnabled())
{
aCursorMoveIdle.SetIdleHdl(LINK(this, SmEditWindow, CursorMoveTimerHdl));
- aCursorMoveIdle.SetPriority(IdlePriority::LOWEST);
+ aCursorMoveIdle.SetPriority(SchedulerPriority::LOWEST);
}
// if not called explicitly the this edit window within the
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index 8493af6..896cc60 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -136,16 +136,16 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl(
nHorSBarHeight = aHorSBar.GetSizePixel().Height();
nVerSBarWidth = aVerSBar.GetSizePixel().Width();
- aEditIdle.SetPriority( IdlePriority::LOWEST );
+ aEditIdle.SetPriority( SchedulerPriority::LOWEST );
aEditIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,EditTimeoutHdl));
- aAutoArrangeIdle.SetPriority( IdlePriority::LOW );
+ aAutoArrangeIdle.SetPriority( SchedulerPriority::LOW );
aAutoArrangeIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,AutoArrangeHdl));
- aCallSelectHdlIdle.SetPriority( IdlePriority::LOWEST );
+ aCallSelectHdlIdle.SetPriority( SchedulerPriority::LOWEST );
aCallSelectHdlIdle.SetIdleHdl( LINK(this,SvxIconChoiceCtrl_Impl,CallSelectHdlHdl));
- aDocRectChangedIdle.SetPriority( IdlePriority::MEDIUM );
+ aDocRectChangedIdle.SetPriority( SchedulerPriority::MEDIUM );
aDocRectChangedIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,DocRectChangedHdl));
- aVisRectChangedIdle.SetPriority( IdlePriority::MEDIUM );
+ aVisRectChangedIdle.SetPriority( SchedulerPriority::MEDIUM );
aVisRectChangedIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,VisRectChangedHdl));
Clear( true );
@@ -3394,7 +3394,7 @@ bool IcnViewEdit_Impl::PreNotify( NotifyEvent& rNEvt )
((!Application::GetFocusWindow()) || !IsChild(Application::GetFocusWindow())))
{
bCanceled = false;
- aIdle.SetPriority(IdlePriority::REPAINT);
+ aIdle.SetPriority(SchedulerPriority::REPAINT);
aIdle.SetIdleHdl(LINK(this,IcnViewEdit_Impl,Timeout_Impl));
aIdle.Start();
}
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index 172ea41..4b54f69 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -89,7 +89,7 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvTreeList* pLBTree, WinBits nWinS
nNodeBmpWidth = 0;
bAsyncBeginDrag = false;
- aAsyncBeginDragIdle.SetPriority( IdlePriority::HIGHEST );
+ aAsyncBeginDragIdle.SetPriority( SchedulerPriority::HIGHEST );
aAsyncBeginDragIdle.SetIdleHdl( LINK(this,SvImpLBox,BeginDragHdl));
// button animation in listbox
pActiveButton = 0;
@@ -99,7 +99,7 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvTreeList* pLBTree, WinBits nWinS
nFlags = 0;
nCurTabPos = FIRST_ENTRY_TAB;
- aEditIdle.SetPriority( IdlePriority::LOWEST );
+ aEditIdle.SetPriority( SchedulerPriority::LOWEST );
aEditIdle.SetIdleHdl( LINK(this,SvImpLBox,EditTimerCall) );
nMostRight = -1;
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index e5f8aec..51540c4 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -233,7 +233,7 @@ void SvInplaceEdit2::LoseFocus()
)
{
bCanceled = false;
- aIdle.SetPriority(IdlePriority::REPAINT);
+ aIdle.SetPriority(SchedulerPriority::REPAINT);
aIdle.SetIdleHdl(LINK(this,SvInplaceEdit2,Timeout_Impl));
aIdle.Start();
}
diff --git a/svtools/source/control/asynclink.cxx b/svtools/source/control/asynclink.cxx
index 1182fea..02a709b 100644
--- a/svtools/source/control/asynclink.cxx
+++ b/svtools/source/control/asynclink.cxx
@@ -61,7 +61,7 @@ bAllowDoubles
if( !_pIdle )
{
_pIdle = new Idle;
- _pIdle->SetPriority( IdlePriority::HIGHEST );
+ _pIdle->SetPriority( SchedulerPriority::HIGHEST );
_pIdle->SetIdleHdl( STATIC_LINK(
this, AsynchronLink, HandleCall) );
}
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index a479989..887922e 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -330,7 +330,7 @@ IMPL_LINK( TabBarEdit, ImplEndEditHdl, void*, pCancel )
// when it shows the context menu or the insert symbol dialog
if ( !HasFocus() && HasChildPathFocus( true ) )
{
- maLoseFocusIdle.SetPriority( IdlePriority::REPAINT );
+ maLoseFocusIdle.SetPriority( SchedulerPriority::REPAINT );
maLoseFocusIdle.SetIdleHdl( LINK( this, TabBarEdit, ImplEndTimerHdl ) );
maLoseFocusIdle.Start();
}
diff --git a/svtools/source/dialogs/wizdlg.cxx b/svtools/source/dialogs/wizdlg.cxx
index 924e001..e520313 100644
--- a/svtools/source/dialogs/wizdlg.cxx
+++ b/svtools/source/dialogs/wizdlg.cxx
@@ -61,7 +61,7 @@ void WizardDialog::ImplInitData()
mbEmptyViewMargin = false;
mnLeftAlignCount = 0;
- maWizardLayoutIdle.SetPriority(IdlePriority::RESIZE);
+ maWizardLayoutIdle.SetPriority(SchedulerPriority::RESIZE);
maWizardLayoutIdle.SetIdleHdl( LINK( this, WizardDialog, ImplHandleWizardLayoutTimerHdl ) );
}
diff --git a/svtools/source/misc/filechangedchecker.cxx b/svtools/source/misc/filechangedchecker.cxx
index a9efb98..5fb6fee 100644
--- a/svtools/source/misc/filechangedchecker.cxx
+++ b/svtools/source/misc/filechangedchecker.cxx
@@ -34,7 +34,7 @@ void FileChangedChecker::resetTimer()
mIdle.Start();
// Set lowest Priority
- mIdle.SetPriority(IdlePriority::LOWEST);
+ mIdle.SetPriority(SchedulerPriority::LOWEST);
}
bool FileChangedChecker::getCurrentModTime(TimeValue& o_rValue) const
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx
index 50a603a..373a944 100644
--- a/svx/source/dialog/_contdlg.cxx
+++ b/svx/source/dialog/_contdlg.cxx
@@ -273,10 +273,10 @@ SvxSuperContourDlg::SvxSuperContourDlg(SfxBindings *_pBindings, SfxChildWindow *
Resize();
- aUpdateIdle.SetPriority( IdlePriority::LOW );
+ aUpdateIdle.SetPriority( SchedulerPriority::LOW );
aUpdateIdle.SetIdleHdl( LINK( this, SvxSuperContourDlg, UpdateHdl ) );
- aCreateIdle.SetPriority( IdlePriority::RESIZE );
+ aCreateIdle.SetPriority( SchedulerPriority::RESIZE );
aCreateIdle.SetIdleHdl( LINK( this, SvxSuperContourDlg, CreateHdl ) );
}
diff --git a/svx/source/dialog/fontwork.cxx b/svx/source/dialog/fontwork.cxx
index 85d8a33..fe0d065 100644
--- a/svx/source/dialog/fontwork.cxx
+++ b/svx/source/dialog/fontwork.cxx
@@ -282,7 +282,7 @@ SvxFontWorkDialog::SvxFontWorkDialog(SfxBindings *pBindinx,
m_pShadowColorLB->SetSelectHdl( LINK(this, SvxFontWorkDialog, ColorSelectHdl_Impl) );
- aInputIdle.SetPriority(IdlePriority::LOWEST);
+ aInputIdle.SetPriority(SchedulerPriority::LOWEST);
aInputIdle.SetIdleHdl(LINK(this, SvxFontWorkDialog, InputTimoutHdl_Impl));
}
diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx
index 1d22cb4..2cbee88 100644
--- a/svx/source/dialog/graphctl.cxx
+++ b/svx/source/dialog/graphctl.cxx
@@ -67,7 +67,7 @@ GraphCtrl::GraphCtrl( vcl::Window* pParent, WinBits nStyle ) :
pView ( NULL )
{
pUserCall = new GraphCtrlUserCall( *this );
- aUpdateIdle.SetPriority( IdlePriority::LOWEST );
+ aUpdateIdle.SetPriority( SchedulerPriority::LOWEST );
aUpdateIdle.SetIdleHdl( LINK( this, GraphCtrl, UpdateHdl ) );
aUpdateIdle.Start();
EnableRTL( false );
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx
index c46d751..2b70e77 100644
--- a/svx/source/dialog/imapdlg.cxx
+++ b/svx/source/dialog/imapdlg.cxx
@@ -207,7 +207,7 @@ SvxIMapDlg::SvxIMapDlg(SfxBindings *_pBindings, SfxChildWindow *pCW, vcl::Window
m_pCbbTarget->Disable();
pOwnData->bExecState = false;
- pOwnData->aIdle.SetPriority( IdlePriority::LOW );
+ pOwnData->aIdle.SetPriority( SchedulerPriority::LOW );
pOwnData->aIdle.SetIdleHdl( LINK( this, SvxIMapDlg, UpdateHdl ) );
m_pTbxIMapDlg1->EnableItem( mnActiveId, false );
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index 8f7e86b..8375e47 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -365,7 +365,7 @@ void SvxSearchDialog::Construct_Impl()
{
// temporary to avoid incompatibility
pImpl = new SearchDlg_Impl();
- pImpl->aSelectionIdle.SetPriority( IdlePriority::LOWEST );
+ pImpl->aSelectionIdle.SetPriority( SchedulerPriority::LOWEST );
pImpl->aSelectionIdle.SetIdleHdl(
LINK( this, SvxSearchDialog, TimeoutHdl_Impl ) );
EnableControls_Impl( 0 );
diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx b/svx/source/dialog/svxbmpnumvalueset.cxx
index 47498c4..3b6ad3f 100644
--- a/svx/source/dialog/svxbmpnumvalueset.cxx
+++ b/svx/source/dialog/svxbmpnumvalueset.cxx
@@ -480,7 +480,7 @@ void SvxBmpNumValueSet::init()
GalleryExplorer::BeginLocking(GALLERY_THEME_BULLETS);
SetStyle( GetStyle() | WB_VSCROLL );
SetLineCount( 3 );
- aFormatIdle.SetPriority(IdlePriority::LOWEST);
+ aFormatIdle.SetPriority(SchedulerPriority::LOWEST);
aFormatIdle.SetIdleHdl(LINK(this, SvxBmpNumValueSet, FormatHdl_Impl));
}
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index ebf605c..6901f1c 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -2744,7 +2744,7 @@ namespace svxform
m_pConditionED->SetModifyHdl( LINK( this, AddConditionDialog, ModifyHdl ) );
m_pEditNamespacesBtn->SetClickHdl( LINK( this, AddConditionDialog, EditHdl ) );
m_pOKBtn->SetClickHdl( LINK( this, AddConditionDialog, OKHdl ) );
- m_aResultIdle.SetPriority( IdlePriority::LOWEST );
+ m_aResultIdle.SetPriority( SchedulerPriority::LOWEST );
m_aResultIdle.SetIdleHdl( LINK( this, AddConditionDialog, ResultHdl ) );
if ( !m_sPropertyName.isEmpty() )
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index 8aa3536..541f6f7 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -576,7 +576,7 @@ FormController::FormController(const Reference< css::uno::XComponentContext > &
}
::comphelper::decrement(m_refCount);
- m_aTabActivationIdle.SetPriority( IdlePriority::LOWEST );
+ m_aTabActivationIdle.SetPriority( SchedulerPriority::LOWEST );
m_aTabActivationIdle.SetIdleHdl( LINK( this, FormController, OnActivateTabOrder ) );
m_aFeatureInvalidationTimer.SetTimeout( 200 );
diff --git a/svx/source/inc/eventhandler.hxx b/svx/source/inc/eventhandler.hxx
index acc9a71..4f49e89 100644
--- a/svx/source/inc/eventhandler.hxx
+++ b/svx/source/inc/eventhandler.hxx
@@ -96,7 +96,7 @@ namespace sdr
class TimerEventHandler : public EventHandler, public Idle
{
public:
- TimerEventHandler(IdlePriority ePriority = IdlePriority::HIGH);
+ TimerEventHandler(SchedulerPriority ePriority = SchedulerPriority::HIGH);
virtual ~TimerEventHandler();
diff --git a/svx/source/sdr/contact/objectcontactofpageview.cxx b/svx/source/sdr/contact/objectcontactofpageview.cxx
index d605aae..813dc8e 100644
--- a/svx/source/sdr/contact/objectcontactofpageview.cxx
+++ b/svx/source/sdr/contact/objectcontactofpageview.cxx
@@ -59,7 +59,7 @@ namespace sdr
setPreviewRenderer(((SdrPaintView&)rPageWindow.GetPageView().GetView()).IsPreviewRenderer());
// init timer
- SetPriority(IdlePriority::HIGH);
+ SetPriority(SchedulerPriority::HIGH);
Stop();
}
diff --git a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx
index 7ef9286..cd5e13b 100644
--- a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx
@@ -84,7 +84,7 @@ PagePrimitiveExtractor::PagePrimitiveExtractor(
setPreviewRenderer(true);
// init timer
- SetPriority(IdlePriority::HIGH);
+ SetPriority(SchedulerPriority::HIGH);
Stop();
}
diff --git a/svx/source/sdr/event/eventhandler.cxx b/svx/source/sdr/event/eventhandler.cxx
index 14156c42..40865d5 100644
--- a/svx/source/sdr/event/eventhandler.cxx
+++ b/svx/source/sdr/event/eventhandler.cxx
@@ -121,7 +121,7 @@ namespace sdr
{
namespace event
{
- TimerEventHandler::TimerEventHandler(IdlePriority ePriority)
+ TimerEventHandler::TimerEventHandler(SchedulerPriority ePriority)
{
SetPriority(ePriority);
Stop();
diff --git a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
index 8992b4d..077b99d 100644
--- a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
+++ b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx
@@ -429,7 +429,7 @@ namespace sdr
mbRefreshWithPreRendering(bRefreshWithPreRendering)
{
// Init timer
- maBufferIdle.SetPriority( IdlePriority::HIGH );
+ maBufferIdle.SetPriority( SchedulerPriority::HIGH );
maBufferIdle.SetIdleHdl(LINK(this, OverlayManagerBuffered, ImpBufferTimerHandler));
}
diff --git a/svx/source/sidebar/PanelLayout.cxx b/svx/source/sidebar/PanelLayout.cxx
index fbedae0..21fcc2d 100644
--- a/svx/source/sidebar/PanelLayout.cxx
+++ b/svx/source/sidebar/PanelLayout.cxx
@@ -20,7 +20,7 @@ PanelLayout::PanelLayout(vcl::Window* pParent, const OString& rID, const OUStrin
{
SetStyle(GetStyle() | WB_DIALOGCONTROL);
m_pUIBuilder = new VclBuilder(this, getUIRootDir(), rUIXMLDescription, rID, rFrame);
- m_aPanelLayoutIdle.SetPriority(IdlePriority::RESIZE);
+ m_aPanelLayoutIdle.SetPriority(SchedulerPriority::RESIZE);
m_aPanelLayoutIdle.SetIdleHdl( LINK( this, PanelLayout, ImplHandlePanelLayoutTimerHdl ) );
}
diff --git a/svx/source/stbctrls/modctrl.cxx b/svx/source/stbctrls/modctrl.cxx
index 0df5d3b7..d285882 100644
--- a/svx/source/stbctrls/modctrl.cxx
+++ b/svx/source/stbctrls/modctrl.cxx
@@ -58,7 +58,7 @@ struct SvxModifyControl::ImplData
maImages[MODIFICATION_STATE_YES] = Image(SVX_RES(RID_SVXBMP_DOC_MODIFIED_YES));
maImages[MODIFICATION_STATE_FEEDBACK] = Image(SVX_RES(RID_SVXBMP_DOC_MODIFIED_FEEDBACK));
- maIdle.SetPriority(IdlePriority::LOWEST);
+ maIdle.SetPriority(SchedulerPriority::LOWEST);
}
};
diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx
index 06761c4..4a141bf 100644
--- a/svx/source/svdraw/svdibrow.cxx
+++ b/svx/source/svdraw/svdibrow.cxx
@@ -1107,7 +1107,7 @@ void SdrItemBrowser::SetDirty()
{
if (!bDirty) {
bDirty = true;
- aIdle.SetPriority(IdlePriority::HIGH);
+ aIdle.SetPriority(SchedulerPriority::HIGH);
aIdle.Start();
}
}
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx
index 0c49ae1..64d1a4a 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -190,7 +190,7 @@ void SdrPaintView::ImpClearVars()
pDefaultStyleSheet=NULL;
bSomeObjChgdFlag=false;
nGraphicManagerDrawMode = GRFMGR_DRAW_STANDARD;
- aComeBackIdle.SetPriority(IdlePriority::REPAINT);
+ aComeBackIdle.SetPriority(SchedulerPriority::REPAINT);
aComeBackIdle.SetIdleHdl(LINK(this,SdrPaintView,ImpComeBackHdl));
if (pMod)
diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx
index c7af574..a670e09 100644
--- a/svx/source/tbxctrls/grafctrl.cxx
+++ b/svx/source/tbxctrls/grafctrl.cxx
@@ -139,7 +139,7 @@ ImplGrafMetricField::ImplGrafMetricField( vcl::Window* pParent, const OUString&
SetSpinSize( 1 );
}
- maIdle.SetPriority( IdlePriority::LOW );
+ maIdle.SetPriority( SchedulerPriority::LOW );
maIdle.SetIdleHdl( LINK( this, ImplGrafMetricField, ImplModifyHdl ) );
}
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx
index 4a54b94..de2e9ee 100644
--- a/sw/source/core/doc/docnew.cxx
+++ b/sw/source/core/doc/docnew.cxx
@@ -339,7 +339,7 @@ SwDoc::SwDoc()
new SwTxtNode( SwNodeIndex( GetNodes().GetEndOfContent() ),
getIDocumentStylePoolAccess().GetTxtCollFromPool( RES_POOLCOLL_STANDARD ));
- maOLEModifiedIdle.SetPriority( IdlePriority::LOWEST );
+ maOLEModifiedIdle.SetPriority( SchedulerPriority::LOWEST );
maOLEModifiedIdle.SetIdleHdl( LINK( this, SwDoc, DoUpdateModifiedOLE ));
#if HAVE_FEATURE_DBCONNECTIVITY
diff --git a/sw/source/core/docnode/threadmanager.cxx b/sw/source/core/docnode/threadmanager.cxx
index 299120f..8003e9b 100644
--- a/sw/source/core/docnode/threadmanager.cxx
+++ b/sw/source/core/docnode/threadmanager.cxx
@@ -46,7 +46,7 @@ void ThreadManager::Init()
{
mpThreadListener.reset( new ThreadListener( *this ) );
- maStartNewThreadIdle.SetPriority( IdlePriority::LOWEST );
+ maStartNewThreadIdle.SetPriority( SchedulerPriority::LOWEST );
maStartNewThreadIdle.SetIdleHdl( LINK( this, ThreadManager, TryToStartNewThread ) );
}
diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx
index 5cd178e1..4666202 100644
--- a/sw/source/ui/dbui/mmoutputtypepage.cxx
+++ b/sw/source/ui/dbui/mmoutputtypepage.cxx
@@ -93,7 +93,7 @@ struct SwSendMailDialog_Impl
nCurrentDescriptor(0),
nDocumentCount(0)
{
- aRemoveIdle.SetPriority(IdlePriority::LOWEST);
+ aRemoveIdle.SetPriority(SchedulerPriority::LOWEST);
}
~SwSendMailDialog_Impl()
diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx
index ccb07b5..4a83c78 100644
--- a/sw/source/ui/envelp/labfmt.cxx
+++ b/sw/source/ui/envelp/labfmt.cxx
@@ -347,7 +347,7 @@ SwLabFmtPage::SwLabFmtPage(vcl::Window* pParent, const SfxItemSet& rSet)
m_pSavePB->SetClickHdl( LINK (this, SwLabFmtPage, SaveHdl));
// Set timer
- aPreviewIdle.SetPriority(IdlePriority::LOWEST);
+ aPreviewIdle.SetPriority(SchedulerPriority::LOWEST);
aPreviewIdle.SetIdleHdl(LINK(this, SwLabFmtPage, PreviewHdl));
}
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 2f227e9..8eae04f 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -5002,7 +5002,7 @@ SwEditWin::SwEditWin(vcl::Window *pParent, SwView &rMyView):
// TemplatePointer for colors should be resetted without
// selection after single click
- m_aTemplateIdle.SetPriority(IdlePriority::LOWEST);
+ m_aTemplateIdle.SetPriority(SchedulerPriority::LOWEST);
m_aTemplateIdle.SetIdleHdl(LINK(this, SwEditWin, TemplateTimerHdl));
// temporary solution!!! Should set the font of the current
diff --git a/sw/source/uibase/docvw/srcedtw.cxx b/sw/source/uibase/docvw/srcedtw.cxx
index 9ebbed9..f4a7b17 100644
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list