From 826143684d2697a8620373dce18fa5f24332d5cb Mon Sep 17 00:00:00 2001 From: Tobias Madl Date: Wed, 14 Jan 2015 10:21:20 +0100 Subject: Timer: Adapted all idle includes and enum uses Change-Id: Id4ef36d6c80ad62306bdbaa7094c2cb0b8ff77da --- sd/inc/drawdoc.hxx | 1 + sd/source/core/drawdoc4.cxx | 2 +- sd/source/ui/dlg/dlgass.cxx | 7 ++++--- sd/source/ui/dlg/filedlg.cxx | 3 ++- sd/source/ui/framework/module/ShellStackGuard.cxx | 2 +- sd/source/ui/framework/module/ShellStackGuard.hxx | 1 + 6 files changed, 10 insertions(+), 6 deletions(-) (limited to 'sd') diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx index 17d19fd5c6eb..47c4fe719020 100644 --- a/sd/inc/drawdoc.hxx +++ b/sd/inc/drawdoc.hxx @@ -24,6 +24,7 @@ #include #include #include +#include #include #include "pres.hxx" #include diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx index f8e1f9db185c..633a522e4de3 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(VCL_IDLE_PRIORITY_LOWEST); + mpOnlineSpellingIdle->SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST); mpOnlineSpellingIdle->Start(); } } diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx index 8c069bd1d466..473725849f85 100644 --- a/sd/source/ui/dlg/dlgass.cxx +++ b/sd/source/ui/dlg/dlgass.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -584,13 +585,13 @@ AssistentDlgImpl::AssistentDlgImpl( vcl::Window* pWindow, const Link& rFinishLin maAssistentFunc.GotoPage(1); mpLastPageButton->Disable(); - maPrevIdle.SetPriority( VCL_IDLE_PRIORITY_LOWER ); + maPrevIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWER ); maPrevIdle.SetIdleHdl( LINK( this, AssistentDlgImpl, UpdatePreviewHdl)); - maEffectPrevIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM ); + maEffectPrevIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_MEDIUM ); maEffectPrevIdle.SetIdleHdl( LINK( this, AssistentDlgImpl, EffectPreviewHdl )); - maUpdatePageListIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM ); + maUpdatePageListIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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 047d3c6f30bb..f014444c8e44 100644 --- a/sd/source/ui/dlg/filedlg.cxx +++ b/sd/source/ui/dlg/filedlg.cxx @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -132,7 +133,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl) { mxPlayer.set( avmedia::MediaWindow::createPlayer( aUrl, "" ), css::uno::UNO_QUERY_THROW ); mxPlayer->start(); - maUpdateIdle.SetPriority( VCL_IDLE_PRIORITY_LOW ); + maUpdateIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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 d567c2099b22..de5819d4a31c 100644 --- a/sd/source/ui/framework/module/ShellStackGuard.cxx +++ b/sd/source/ui/framework/module/ShellStackGuard.cxx @@ -72,7 +72,7 @@ ShellStackGuard::ShellStackGuard (Reference& rxController) // Prepare the printer polling. maPrinterPollingIdle.SetIdleHdl(LINK(this,ShellStackGuard,TimeoutHandler)); - maPrinterPollingIdle.SetPriority(VCL_IDLE_PRIORITY_LOWER); + maPrinterPollingIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWER); } } diff --git a/sd/source/ui/framework/module/ShellStackGuard.hxx b/sd/source/ui/framework/module/ShellStackGuard.hxx index c41158cf56f6..56796f423d09 100644 --- a/sd/source/ui/framework/module/ShellStackGuard.hxx +++ b/sd/source/ui/framework/module/ShellStackGuard.hxx @@ -29,6 +29,7 @@ #include #include +#include #include #include -- cgit