diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-01-14 10:21:20 +0100 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-06 12:27:05 +0000 |
commit | 826143684d2697a8620373dce18fa5f24332d5cb (patch) | |
tree | 88be6f99b02c8c9fea849c3125b9e23a18be65f9 /sd/source | |
parent | d8305248f687ffa522b56955508d82d60ad5b8c6 (diff) |
Timer: Adapted all idle includes and enum uses
Change-Id: Id4ef36d6c80ad62306bdbaa7094c2cb0b8ff77da
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/core/drawdoc4.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/dlgass.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/dlg/filedlg.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/framework/module/ShellStackGuard.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/framework/module/ShellStackGuard.hxx | 1 |
5 files changed, 9 insertions, 6 deletions
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 <vcl/lstbox.hxx> #include <vcl/combobox.hxx> #include <vcl/layout.hxx> +#include <vcl/idle.hxx> #include <sfx2/doctempl.hxx> #include <svl/lstner.hxx> #include <sfx2/objsh.hxx> @@ -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 <com/sun/star/ui/dialogs/XFilePickerNotifier.hpp> #include <com/sun/star/ui/dialogs/XFilePicker.hpp> #include <vcl/msgbox.hxx> +#include <vcl/idle.hxx> #include <sal/types.h> #include <osl/thread.hxx> #include <osl/mutex.hxx> @@ -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<frame::XController>& 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 <com/sun/star/frame/XController.hpp> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <cppuhelper/compbase1.hxx> #include <boost/scoped_ptr.hpp> |