diff options
45 files changed, 65 insertions, 39 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index 63081117c333..b846eb6c58bb 100644 --- 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(VCL_IDLE_PRIORITY_REPAINT); + maIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_REPAINT); maIdle.SetIdleHdl(LINK(this, GL3DBarChart, UpdateTimerHdl)); maIdle.Start(); osl_getSystemTime(&maFPSRenderStartTime); diff --git a/chart2/source/view/inc/GL3DBarChart.hxx b/chart2/source/view/inc/GL3DBarChart.hxx index f02f98ed5978..c68a38510d66 100644 --- a/chart2/source/view/inc/GL3DBarChart.hxx +++ b/chart2/source/view/inc/GL3DBarChart.hxx @@ -19,6 +19,7 @@ #include <glm/glm.hpp> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <vcl/openglwin.hxx> #include <rtl/ref.hxx> diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index 233b9b9a55e6..a4a23b23e75a 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -25,6 +25,7 @@ #include <svl/macitem.hxx> #include <svx/dialogs.hrc> #include <svtools/svmedit.hxx> +#include <vcl/idle.hxx> #include "cfgutil.hxx" #include <sfx2/app.hxx> #include <sfx2/evntconf.hxx> @@ -191,7 +192,7 @@ void _SfxMacroTabPage::LaunchFillGroup() if (!mpImpl->maFillGroupIdle.GetTimeoutHdl().IsSet()) { mpImpl->maFillGroupIdle.SetIdleHdl( STATIC_LINK( this, _SfxMacroTabPage, TimeOut_Impl ) ); - mpImpl->maFillGroupIdle.SetPriority( VCL_IDLE_PRIORITY_HIGHEST ); + mpImpl->maFillGroupIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_HIGHEST ); mpImpl->maFillGroupIdle.Start(); } } diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 64f9b83d470f..5ec289bbfec3 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -33,6 +33,7 @@ #include <vcl/gdimtf.hxx> #include <vcl/cursor.hxx> #include <tools/fract.hxx> +#include <vcl/idle.hxx> #include <vcl/dndhelp.hxx> #include <svl/ondemand.hxx> diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index dd0ad4f5af57..702c00759985 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( VCL_IDLE_PRIORITY_REPAINT ); + aIdleFormatter.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_REPAINT ); aIdleFormatter.SetIdleHdl( LINK( this, ImpEditEngine, IdleFormatHdl ) ); aOnlineSpellTimer.SetTimeout( 100 ); diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx index 5f3401fa7515..110c5a764d57 100644 --- a/include/svtools/treelistbox.hxx +++ b/include/svtools/treelistbox.hxx @@ -37,6 +37,7 @@ #include <tools/contnr.hxx> #include <svtools/treelist.hxx> #include <svtools/transfer.hxx> +#include <vcl/idle.hxx> class Application; class SvTreeListBox; diff --git a/include/svtools/wizdlg.hxx b/include/svtools/wizdlg.hxx index 382403aa4d5b..93d19addf6ed 100644 --- a/include/svtools/wizdlg.hxx +++ b/include/svtools/wizdlg.hxx @@ -23,6 +23,7 @@ #include <svtools/svtdllapi.h> #include <vcl/dialog.hxx> +#include <vcl/idle.hxx> class TabPage; class Button; diff --git a/include/svx/sidebar/PanelLayout.hxx b/include/svx/sidebar/PanelLayout.hxx index c696a6208414..6eac3d3eef90 100644 --- a/include/svx/sidebar/PanelLayout.hxx +++ b/include/svx/sidebar/PanelLayout.hxx @@ -15,6 +15,7 @@ #include <vcl/builder.hxx> #include <vcl/ctrl.hxx> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/frame/XFrame.hpp> diff --git a/include/svx/svdpntv.hxx b/include/svx/svdpntv.hxx index aa734ec28f65..3c7b65d88784 100644 --- a/include/svx/svdpntv.hxx +++ b/include/svx/svdpntv.hxx @@ -34,6 +34,7 @@ #include <svx/svxdllapi.h> #include <svtools/optionsdrawinglayer.hxx> #include <unotools/options.hxx> +#include <vcl/idle.hxx> // Pre-Defines diff --git a/include/vcl/edit.hxx b/include/vcl/edit.hxx index d4169265a024..ec05923011b8 100644 --- a/include/vcl/edit.hxx +++ b/include/vcl/edit.hxx @@ -24,6 +24,7 @@ #include <tools/solar.h> #include <vcl/dllapi.h> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <vcl/ctrl.hxx> #include <vcl/menu.hxx> #include <vcl/dndhelp.hxx> diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx index e164af894545..7694eae46346 100644 --- a/include/vcl/syswin.hxx +++ b/include/vcl/syswin.hxx @@ -24,6 +24,7 @@ #include <vcl/dllapi.h> #include <vcl/builder.hxx> #include <vcl/window.hxx> +#include <vcl/idle.hxx> class ModalDialog; class MenuBar; diff --git a/sc/inc/chartlis.hxx b/sc/inc/chartlis.hxx index b8b72f365828..e8b5905e5e52 100644 --- a/sc/inc/chartlis.hxx +++ b/sc/inc/chartlis.hxx @@ -21,6 +21,7 @@ #define INCLUDED_SC_INC_CHARTLIS_HXX #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <svl/listener.hxx> #include "rangelst.hxx" #include "token.hxx" diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx index 2c513a96deca..7ba6021944ee 100644 --- a/sc/inc/scmod.hxx +++ b/sc/inc/scmod.hxx @@ -23,6 +23,7 @@ #include "scdllapi.h" #include "scdll.hxx" #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <svl/lstner.hxx> #include "global.hxx" #include "shellids.hxx" diff --git a/sc/source/core/tool/chartlis.cxx b/sc/source/core/tool/chartlis.cxx index 0b67d63b0c56..7d12a689ccbb 100644 --- a/sc/source/core/tool/chartlis.cxx +++ b/sc/source/core/tool/chartlis.cxx @@ -589,7 +589,7 @@ void ScChartListenerCollection::FreeUno( const uno::Reference< chart::XChartData void ScChartListenerCollection::StartTimer() { - aIdle.SetPriority( VCL_IDLE_PRIORITY_REPAINT ); + aIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_REPAINT ); aIdle.Start(); } diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 5c63049fda2f..5c396759865e 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(VCL_IDLE_PRIORITY_REPAINT); + aSpellIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_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 c889b723e0a2..2d13078e8ba7 100644 --- a/sc/source/ui/dbgui/sfiltdlg.cxx +++ b/sc/source/ui/dbgui/sfiltdlg.cxx @@ -18,6 +18,7 @@ */ #include <sfx2/dispatch.hxx> +#include <vcl/idle.hxx> #include "uiitems.hxx" #include "rangenam.hxx" @@ -86,7 +87,7 @@ ScSpecialFilterDlg::ScSpecialFilterDlg( SfxBindings* pB, SfxChildWindow* pCW, vc // Hack: RefInput-Kontrolle pIdle = new Idle; - pIdle->SetTimeout( VCL_IDLE_PRIORITY_MEDIUM ); // 50ms warten + pIdle->SetTimeout( IdlePriority::VCL_IDLE_PRIORITY_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 d7b9374e5aec..7b1af95b5708 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( VCL_IDLE_PRIORITY_HIGHEST ); + aInitIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_HIGHEST ); } ScAutoStyleList::~ScAutoStyleList() diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx index 408002225c50..5f10898ba278 100644 --- a/sc/source/ui/inc/acredlin.hxx +++ b/sc/source/ui/inc/acredlin.hxx @@ -23,7 +23,6 @@ #include <vcl/morebtn.hxx> #include <vcl/combobox.hxx> #include <vcl/group.hxx> -#include <vcl/idle.hxx> #include <svtools/headbar.hxx> #include <svtools/simptabl.hxx> #include <svtools/svtabbx.hxx> @@ -34,6 +33,7 @@ #include "chgtrack.hxx" #include "chgviset.hxx" #include <vcl/timer.hxx> +#include <vcl/idle.hxx> class ScViewData; class ScDocument; diff --git a/sc/source/ui/inc/autostyl.hxx b/sc/source/ui/inc/autostyl.hxx index 6ffd437ce552..edfc6468ffb0 100644 --- a/sc/source/ui/inc/autostyl.hxx +++ b/sc/source/ui/inc/autostyl.hxx @@ -23,6 +23,7 @@ #include <boost/ptr_container/ptr_vector.hpp> #include <rtl/ustring.hxx> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> class ScDocShell; class ScRange; diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx index 8c2a255e567a..8506d6accb20 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( VCL_IDLE_PRIORITY_REPAINT ); + aIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_REPAINT ); aIdle.SetIdleHdl( LINK( this, BreakDlg, InitialUpdate ) ); aIdle.Start(); diff --git a/sd/source/ui/inc/BreakDlg.hxx b/sd/source/ui/inc/BreakDlg.hxx index 2159e8bc2c31..bddf639c16a3 100644 --- a/sd/source/ui/inc/BreakDlg.hxx +++ b/sd/source/ui/inc/BreakDlg.hxx @@ -29,6 +29,7 @@ #include <vcl/edit.hxx> #include <svtools/stdctrl.hxx> #include <sfx2/basedlgs.hxx> +#include <vcl/idle.hxx> class SvdProgressInfo; class SfxProgress; diff --git a/sd/source/ui/inc/View.hxx b/sd/source/ui/inc/View.hxx index 944d7e0e8a1b..ddb14399183c 100644 --- a/sd/source/ui/inc/View.hxx +++ b/sd/source/ui/inc/View.hxx @@ -28,6 +28,7 @@ #include <svx/fmview.hxx> #include <svx/svdmark.hxx> #include <svx/svdpage.hxx> +#include <vcl/idle.hxx> #include "fupoor.hxx" #include "smarttag.hxx" diff --git a/sd/source/ui/slidesorter/controller/SlsAnimator.cxx b/sd/source/ui/slidesorter/controller/SlsAnimator.cxx index d0594b902590..381d6bd2396d 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(VCL_IDLE_PRIORITY_REPAINT); + maIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_REPAINT); maIdle.SetIdleHdl(LINK(this,Animator,TimeoutHandler)); } diff --git a/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx b/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx index 0eb10cef0bba..9bed85a76524 100644 --- a/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx +++ b/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx @@ -24,6 +24,7 @@ #include "view/SlideSorterView.hxx" #include <canvas/elapsedtime.hxx> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <sal/types.h> #include <vector> #include <boost/function.hpp> diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index 8224d7cc4ebc..59db8b5c795f 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(VCL_IDLE_PRIORITY_MEDIUM); + maDropErrorIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM); maDropInsertFileIdle.SetIdleHdl( LINK(this, View, DropInsertFileHdl) ); - maDropInsertFileIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM); + maDropInsertFileIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM); } void View::ImplClearDrawDropMarker() diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index 14897f8411d5..59ab0f950acb 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -54,6 +54,7 @@ #include <unotools/localfilehelper.hxx> #include <rtl/strbuf.hxx> #include <rtl/ustrbuf.hxx> +#include <vcl/idle.hxx> #include <sfx2/app.hxx> #include <sfx2/docfile.hxx> @@ -114,7 +115,7 @@ SfxEventAsyncer_Impl::SfxEventAsyncer_Impl( const SfxEventHint& rHint ) StartListening( *rHint.GetObjShell() ); pIdle = new Idle; pIdle->SetIdleHdl( LINK(this, SfxEventAsyncer_Impl, TimerHdl) ); - pIdle->SetPriority( VCL_IDLE_PRIORITY_HIGHEST ); + pIdle->SetPriority( IdlePriority::VCL_IDLE_PRIORITY_HIGHEST ); pIdle->Start(); } diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 930ed0b07d83..1bd1ab42902a 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -58,6 +58,7 @@ #include <svl/whiter.hxx> #include <svtools/helpopt.hxx> #include <vcl/wrkwin.hxx> +#include <vcl/idle.hxx> #include <appdata.hxx> #include <sfxtypes.hxx> @@ -336,7 +337,7 @@ void SfxDispatcher::Construct_Impl( SfxDispatcher* pParent ) xImp->xPoster = new SfxHintPoster(aGenLink); - xImp->aIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM); + xImp->aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM); xImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) ); } @@ -472,7 +473,7 @@ void SfxDispatcher::Pop(SfxShell& rShell, sal_uInt16 nMode) if(!pSfxApp->IsDowning() && !xImp->aToDoStack.empty()) { // No immediate update is requested - xImp->aIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM); + xImp->aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM); xImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) ); xImp->aIdle.Start(); } @@ -683,7 +684,7 @@ void SfxDispatcher::DoActivate_Impl(bool bMDI, SfxViewFrame* /* pOld */) if(!xImp->aToDoStack.empty()) { // No immediate update is requested - xImp->aIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM); + xImp->aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM); xImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) ); xImp->aIdle.Start(); } diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index be56e6c8516b..cde726766a33 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -26,6 +26,7 @@ #include <svl/eitem.hxx> #include <unotools/viewoptions.hxx> #include <svtools/controldims.hrc> +#include <vcl/idle.hxx> #include <sfx2/basedlgs.hxx> #include <sfx2/viewfrm.hxx> @@ -318,7 +319,7 @@ void SfxModelessDialog::Init(SfxBindings *pBindinx, SfxChildWindow *pCW) SetUniqueId( GetHelpId() ); if ( pBindinx ) pImp->StartListening( *pBindinx ); - pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxModelessDialog,TimerHdl)); } @@ -457,7 +458,7 @@ SfxFloatingWindow::SfxFloatingWindow( SfxBindings *pBindinx, SetHelpId(""); if ( pBindinx ) pImp->StartListening( *pBindinx ); - pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxFloatingWindow,TimerHdl)); } @@ -478,7 +479,7 @@ SfxFloatingWindow::SfxFloatingWindow( SfxBindings *pBindinx, if ( pBindinx ) pImp->StartListening( *pBindinx ); - pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxFloatingWindow,TimerHdl)); } diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx index f7367ed0fbef..d7b685c9c476 100644 --- a/sfx2/source/dialog/dockwin.cxx +++ b/sfx2/source/dialog/dockwin.cxx @@ -23,6 +23,7 @@ #include <vcl/svapp.hxx> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <rtl/instance.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <comphelper/processfactory.hxx> @@ -888,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(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl)); } @@ -939,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(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl)); } @@ -987,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(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl)); } diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index da10fb70dc04..002a9a09d1ed 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -37,6 +37,7 @@ #include <algorithm> #include <boost/scoped_ptr.hpp> +#include <vcl/idle.hxx> #define IMPICNVIEW_ACC_RETURN 1 #define IMPICNVIEW_ACC_ESCAPE 2 diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index f726a6a8fd80..3f7909caaf82 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -233,7 +233,7 @@ void SvInplaceEdit2::LoseFocus() ) { bCanceled = false; - aIdle.SetPriority(VCL_IDLE_PRIORITY_REPAINT); + aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_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 ca745b2bbe55..bf7b0c9ed304 100644 --- a/svtools/source/control/asynclink.cxx +++ b/svtools/source/control/asynclink.cxx @@ -22,6 +22,7 @@ #include <osl/mutex.hxx> #include <tools/debug.hxx> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <vcl/svapp.hxx> @@ -54,7 +55,7 @@ bAllowDoubles if( !_pIdle ) { _pIdle = new Idle; - _pIdle->SetPriority( VCL_IDLE_PRIORITY_HIGHEST ); + _pIdle->SetPriority( IdlePriority::VCL_IDLE_PRIORITY_HIGHEST ); _pIdle->SetIdleHdl( STATIC_LINK( this, AsynchronLink, HandleCall) ); } diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 216e27ffe3a6..c40200928bcf 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -322,7 +322,7 @@ IMPL_LINK( TabBarEdit, ImplEndEditHdl, void*, pCancel ) // when it shows the context menu or the insert symbol dialog if ( !HasFocus() && HasChildPathFocus( true ) ) { - maLoseFocusIdle.SetPriority( VCL_IDLE_PRIORITY_REPAINT ); + maLoseFocusIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_REPAINT ); maLoseFocusIdle.SetIdleHdl( LINK( this, TabBarEdit, ImplEndTimerHdl ) ); maLoseFocusIdle.Start(); } diff --git a/svtools/source/dialogs/wizdlg.cxx b/svtools/source/dialogs/wizdlg.cxx index eb2e62d0cd0e..aab754685bbb 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(VCL_IDLE_PRIORITY_RESIZE); + maWizardLayoutIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); maWizardLayoutIdle.SetIdleHdl( LINK( this, WizardDialog, ImplHandleWizardLayoutTimerHdl ) ); } diff --git a/svx/inc/sdr/overlay/overlaymanagerbuffered.hxx b/svx/inc/sdr/overlay/overlaymanagerbuffered.hxx index 73795977b630..35c8d66ab677 100644 --- a/svx/inc/sdr/overlay/overlaymanagerbuffered.hxx +++ b/svx/inc/sdr/overlay/overlaymanagerbuffered.hxx @@ -23,6 +23,7 @@ #include <svx/sdr/overlay/overlaymanager.hxx> #include <basegfx/range/b2irange.hxx> #include <vcl/virdev.hxx> +#include <vcl/idle.hxx> @@ -41,7 +42,7 @@ namespace sdr // is an extra device to avoid flickering of overlay paints VirtualDevice maOutputBufferDevice; - // Timer for buffering + // Idle for buffering Idle maBufferIdle; // Range for buffering (in pixel to be independent from mapMode) diff --git a/svx/inc/svdibrow.hxx b/svx/inc/svdibrow.hxx index 3c1fde170513..8c154edd1542 100644 --- a/svx/inc/svdibrow.hxx +++ b/svx/inc/svdibrow.hxx @@ -23,6 +23,7 @@ #include <svtools/brwbox.hxx> #include <vcl/edit.hxx> #include <vcl/floatwin.hxx> +#include <vcl/idle.hxx> class SfxItemSet; class ImpItemListRow; diff --git a/svx/source/sdr/overlay/overlaymanagerbuffered.cxx b/svx/source/sdr/overlay/overlaymanagerbuffered.cxx index 218ad265c333..2fb4df24a1dd 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( VCL_IDLE_PRIORITY_HIGH ); + maBufferIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_HIGH ); maBufferIdle.SetIdleHdl(LINK(this, OverlayManagerBuffered, ImpBufferTimerHandler)); } diff --git a/svx/source/sidebar/PanelLayout.cxx b/svx/source/sidebar/PanelLayout.cxx index 6630d7ae55ba..fb062ffae677 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(VCL_IDLE_PRIORITY_RESIZE); + m_aPanelLayoutIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); m_aPanelLayoutIdle.SetIdleHdl( LINK( this, PanelLayout, ImplHandlePanelLayoutTimerHdl ) ); } diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx index 2b0dc96be6aa..14acf29c9f48 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(VCL_IDLE_PRIORITY_HIGH); + aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_HIGH); aIdle.Start(); } } diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx index 346f74cc6bcd..f9c156653ea0 100644 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx @@ -191,7 +191,7 @@ void SdrPaintView::ImpClearVars() pDefaultStyleSheet=NULL; bSomeObjChgdFlag=false; nGraphicManagerDrawMode = GRFMGR_DRAW_STANDARD; - aComeBackIdle.SetPriority(VCL_IDLE_PRIORITY_REPAINT); + aComeBackIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_REPAINT); aComeBackIdle.SetIdleHdl(LINK(this,SdrPaintView,ImpComeBackHdl)); if (pMod) diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx index c2d4b9cce489..5daf41fd7388 100644 --- a/vcl/source/window/dockmgr.cxx +++ b/vcl/source/window/dockmgr.cxx @@ -31,6 +31,7 @@ #include <vcl/toolbox.hxx> #include <vcl/svapp.hxx> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <vcl/lineinfo.hxx> #include <vcl/unowrap.hxx> #include <vcl/settings.hxx> @@ -89,9 +90,9 @@ ImplDockFloatWin2::ImplDockFloatWin2( vcl::Window* pParent, WinBits nWinBits, SetBackground( GetSettings().GetStyleSettings().GetFaceColor() ); maDockIdle.SetIdleHdl( LINK( this, ImplDockFloatWin2, DockTimerHdl ) ); - maDockIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM ); + maDockIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_MEDIUM ); maEndDockIdle.SetIdleHdl( LINK( this, ImplDockFloatWin2, EndDockTimerHdl ) ); - maEndDockIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM ); + maEndDockIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_MEDIUM ); } ImplDockFloatWin2::~ImplDockFloatWin2() diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx index 934ed2948a30..e1e1af94c8c6 100644 --- a/vcl/source/window/dockwin.cxx +++ b/vcl/source/window/dockwin.cxx @@ -25,6 +25,7 @@ #include <vcl/layout.hxx> #include <vcl/svapp.hxx> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <vcl/unowrap.hxx> #include <vcl/settings.hxx> @@ -105,7 +106,7 @@ ImplDockFloatWin::ImplDockFloatWin( vcl::Window* pParent, WinBits nWinBits, SetBackground(); maDockIdle.SetIdleHdl( LINK( this, ImplDockFloatWin, DockTimerHdl ) ); - maDockIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM ); + maDockIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_MEDIUM ); } ImplDockFloatWin::~ImplDockFloatWin() @@ -331,7 +332,7 @@ void DockingWindow::ImplInitDockingWindowData() mpDialogParent = NULL; //To-Do, reuse maResizeTimer - maLayoutIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + maLayoutIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); maLayoutIdle.SetIdleHdl( LINK( this, DockingWindow, ImplHandleLayoutTimerHdl ) ); } diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx index dde7bc9e4032..c460ebbea697 100644 --- a/vcl/source/window/syswin.cxx +++ b/vcl/source/window/syswin.cxx @@ -85,7 +85,7 @@ void SystemWindow::Init() mpDialogParent = NULL; //To-Do, reuse maResizeTimer - maLayoutIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + maLayoutIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); maLayoutIdle.SetIdleHdl( LINK( this, SystemWindow, ImplHandleLayoutTimerHdl ) ); } diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 038c472a5be5..a00ff6446903 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -1411,7 +1411,7 @@ void ToolBox::ImplInit( vcl::Window* pParent, WinBits nStyle ) mnKeyModifier = 0; mnActivateCount = 0; - maIdle.SetPriority( VCL_IDLE_PRIORITY_RESIZE ); + maIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_RESIZE ); maIdle.SetIdleHdl( LINK( this, ToolBox, ImplUpdateHdl ) ); // set timeout and handler for dropdown items diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 15e3522c78cd..16e2bf40da73 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -1028,10 +1028,10 @@ void Window::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* p mpWindowImpl->mpFrameData->mbSysObjFocus = false; if (!ImplDoTiledRendering()) { - mpWindowImpl->mpFrameData->maPaintIdle.SetPriority( VCL_IDLE_PRIORITY_REPAINT ); + mpWindowImpl->mpFrameData->maPaintIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_REPAINT ); mpWindowImpl->mpFrameData->maPaintIdle.SetIdleHdl( LINK( this, Window, ImplHandlePaintHdl ) ); } - mpWindowImpl->mpFrameData->maResizeIdle.SetPriority( VCL_IDLE_PRIORITY_RESIZE ); + mpWindowImpl->mpFrameData->maResizeIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_RESIZE ); mpWindowImpl->mpFrameData->maResizeIdle.SetIdleHdl( LINK( this, Window, ImplHandleResizeTimerHdl ) ); mpWindowImpl->mpFrameData->mbInternalDragGestureRecognizer = false; |