[Libreoffice-commits] core.git: Branch 'feature/priorities' - avmedia/inc avmedia/source basctl/source cui/source desktop/source extensions/source forms/source formula/source include/sfx2 include/svtools include/svx include/vcl linguistic/source reportdesign/source sc/inc sc/source sd/inc sd/source sfx2/source starmath/inc starmath/source svtools/source svx/source sw/inc sw/source vcl/generic vcl/source

Tobias Madl tobias.madl.dev at gmail.com
Wed Jan 14 01:22:22 PST 2015


 avmedia/inc/mediacontrol.hxx                      |    1 +
 avmedia/source/framework/mediacontrol.cxx         |    2 +-
 avmedia/source/framework/soundhandler.cxx         |    2 +-
 avmedia/source/framework/soundhandler.hxx         |    1 +
 basctl/source/basicide/baside2.hxx                |    1 +
 basctl/source/basicide/baside2b.cxx               |    2 +-
 basctl/source/dlged/dlged.cxx                     |    2 +-
 basctl/source/inc/dlged.hxx                       |    1 +
 cui/source/dialogs/cuigaldlg.cxx                  |    2 +-
 cui/source/dialogs/linkdlg.cxx                    |    3 ++-
 cui/source/dialogs/thesdlg.cxx                    |    2 +-
 cui/source/inc/cuigaldlg.hxx                      |    1 +
 cui/source/inc/linkdlg.hxx                        |    1 +
 cui/source/inc/thesdlg.hxx                        |    1 +
 cui/source/options/optjava.cxx                    |    2 +-
 cui/source/options/optjava.hxx                    |    1 +
 cui/source/tabpages/backgrnd.cxx                  |    3 ++-
 cui/source/tabpages/chardlg.cxx                   |    3 ++-
 desktop/source/deployment/gui/dp_gui_dialog2.cxx  |    4 ++--
 desktop/source/deployment/gui/dp_gui_dialog2.hxx  |    1 +
 extensions/source/bibliography/bibcont.cxx        |    2 +-
 extensions/source/bibliography/bibcont.hxx        |    1 +
 extensions/source/bibliography/toolbar.cxx        |    2 +-
 extensions/source/update/ui/updatecheckui.cxx     |    3 ++-
 forms/source/component/ListBox.cxx                |    2 +-
 forms/source/component/ListBox.hxx                |    1 +
 formula/source/ui/dlg/formula.cxx                 |    3 ++-
 formula/source/ui/dlg/funcutl.cxx                 |    6 +++---
 include/sfx2/dinfdlg.hxx                          |    1 +
 include/svtools/filechangedchecker.hxx            |    1 +
 include/svx/fontwork.hxx                          |    1 +
 include/svx/numvset.hxx                           |    1 +
 include/vcl/toolbox.hxx                           |    1 +
 linguistic/source/lngsvcmgr.cxx                   |    2 +-
 reportdesign/source/ui/inc/DesignView.hxx         |    1 +
 reportdesign/source/ui/report/DesignView.cxx      |    2 +-
 sc/inc/document.hxx                               |    1 +
 sc/source/core/data/documen2.cxx                  |    2 +-
 sc/source/ui/formdlg/dwfunctr.cxx                 |    2 +-
 sc/source/ui/inc/acredlin.hxx                     |    1 +
 sc/source/ui/inc/conflictsdlg.hxx                 |    1 +
 sc/source/ui/inc/navipi.hxx                       |    1 +
 sc/source/ui/miscdlgs/acredlin.cxx                |    4 ++--
 sc/source/ui/miscdlgs/anyrefdg.cxx                |    2 +-
 sc/source/ui/miscdlgs/conflictsdlg.cxx            |    2 +-
 sc/source/ui/pagedlg/tphfedit.cxx                 |    2 +-
 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 +
 sfx2/source/appl/newhelp.cxx                      |    8 ++++----
 sfx2/source/appl/newhelp.hxx                      |    1 +
 sfx2/source/dialog/dinfdlg.cxx                    |    4 ++--
 sfx2/source/dialog/filedlghelper.cxx              |    4 ++--
 sfx2/source/dialog/filedlgimpl.hxx                |    1 +
 sfx2/source/dialog/templdlg.cxx                   |    2 +-
 sfx2/source/doc/new.cxx                           |    3 ++-
 starmath/inc/edit.hxx                             |    1 +
 starmath/source/edit.cxx                          |    4 ++--
 svtools/source/contnr/imivctl.hxx                 |    1 +
 svtools/source/contnr/imivctl1.cxx                |   12 ++++++------
 svtools/source/contnr/svimpbox.cxx                |    4 ++--
 svtools/source/misc/filechangedchecker.cxx        |    2 +-
 svx/source/dialog/_contdlg.cxx                    |    4 ++--
 svx/source/dialog/contimp.hxx                     |    1 +
 svx/source/dialog/fontwork.cxx                    |    2 +-
 svx/source/dialog/graphctl.cxx                    |    2 +-
 svx/source/dialog/imapdlg.cxx                     |    2 +-
 svx/source/dialog/srchdlg.cxx                     |    3 ++-
 svx/source/dialog/svxbmpnumvalueset.cxx           |    2 +-
 svx/source/form/datanavi.cxx                      |    2 +-
 svx/source/form/formcontroller.cxx                |    2 +-
 svx/source/inc/datanavi.hxx                       |    1 +
 svx/source/inc/formcontroller.hxx                 |    1 +
 svx/source/stbctrls/modctrl.cxx                   |    3 ++-
 svx/source/tbxctrls/grafctrl.cxx                  |    3 ++-
 sw/inc/doc.hxx                                    |    1 +
 sw/source/core/doc/docnew.cxx                     |    2 +-
 sw/source/core/docnode/threadmanager.cxx          |    2 +-
 sw/source/core/inc/threadmanager.hxx              |    1 +
 sw/source/ui/dbui/mmoutputtypepage.cxx            |    3 ++-
 sw/source/ui/envelp/labfmt.cxx                    |    2 +-
 sw/source/ui/envelp/labfmt.hxx                    |    1 +
 sw/source/uibase/docvw/edtwin.cxx                 |    2 +-
 sw/source/uibase/docvw/srcedtw.cxx                |    2 +-
 sw/source/uibase/inc/edtwin.hxx                   |    1 +
 sw/source/uibase/inc/navipi.hxx                   |    1 +
 sw/source/uibase/inc/unotools.hxx                 |    1 +
 sw/source/uibase/utlui/navipi.cxx                 |    2 +-
 sw/source/uibase/utlui/unotools.cxx               |    2 +-
 vcl/generic/print/genprnpsp.cxx                   |    3 ++-
 vcl/source/edit/textdat2.hxx                      |    1 +
 94 files changed, 126 insertions(+), 76 deletions(-)

New commits:
commit d238d4dadce888678e9d342075cd3bba661c50c0
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date:   Wed Jan 14 10:21:20 2015 +0100

    Timer: Adapted all idle includes and enum uses
    
    Change-Id: Id4ef36d6c80ad62306bdbaa7094c2cb0b8ff77da

diff --git a/avmedia/inc/mediacontrol.hxx b/avmedia/inc/mediacontrol.hxx
index 4d367a5..c6e0622 100644
--- a/avmedia/inc/mediacontrol.hxx
+++ b/avmedia/inc/mediacontrol.hxx
@@ -23,6 +23,7 @@
 #include <avmedia/mediaitem.hxx>
 
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <vcl/slider.hxx>
 #include <vcl/toolbox.hxx>
 #include <vcl/edit.hxx>
diff --git a/avmedia/source/framework/mediacontrol.cxx b/avmedia/source/framework/mediacontrol.cxx
index 9c92ffa..431108b 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( VCL_IDLE_PRIORITY_LOW );
+    maIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOW );
     maIdle.SetIdleHdl( LINK( this, MediaControl, implTimeoutHdl ) );
     maIdle.Start();
 }
diff --git a/avmedia/source/framework/soundhandler.cxx b/avmedia/source/framework/soundhandler.cxx
index 9017a52..9195401 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( VCL_IDLE_PRIORITY_LOWER );
+        m_aUpdateIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWER );
         m_aUpdateIdle.Start();
     }
     catch( css::uno::Exception& e )
diff --git a/avmedia/source/framework/soundhandler.hxx b/avmedia/source/framework/soundhandler.hxx
index 687bbb2..09cd8fd 100644
--- a/avmedia/source/framework/soundhandler.hxx
+++ b/avmedia/source/framework/soundhandler.hxx
@@ -36,6 +36,7 @@
 #include <cppuhelper/weak.hxx>
 
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <tools/link.hxx>
 #include <avmedia/mediawindow.hxx>
 #include <osl/mutex.hxx>
diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx
index 1008643..4eced19 100644
--- a/basctl/source/basicide/baside2.hxx
+++ b/basctl/source/basicide/baside2.hxx
@@ -35,6 +35,7 @@ class SvxSearchItem;
 #include <vcl/button.hxx>
 #include <basic/sbmod.hxx>
 #include <vcl/lstbox.hxx>
+#include <vcl/idle.hxx>
 
 #include <sfx2/progress.hxx>
 
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index cdd734d..0540ea5 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -950,7 +950,7 @@ void EditorWindow::CreateEditEngine()
 
     ImplSetFont();
 
-    aSyntaxIdle.SetPriority( VCL_IDLE_PRIORITY_LOWER );
+    aSyntaxIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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 b45544c..44c9331 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(VCL_IDLE_PRIORITY_LOW);
+    aMarkIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOW);
     aMarkIdle.SetIdleHdl( LINK( this, DlgEditor, MarkTimeout ) );
 
     rWindow.SetMapMode( MapMode( MAP_100TH_MM ) );
diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx
index cd722fe..fda829d 100644
--- a/basctl/source/inc/dlged.hxx
+++ b/basctl/source/inc/dlged.hxx
@@ -29,6 +29,7 @@
 #include <svl/hint.hxx>
 #include <tools/gen.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 
 #include <boost/scoped_ptr.hpp>
 
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index 1cd56f2..30e64eb 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( VCL_IDLE_PRIORITY_LOWEST );
+        pIdle->SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
         pIdle->Start();
     }
 
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx
index 5f515db..c5c6fbf 100644
--- a/cui/source/dialogs/linkdlg.cxx
+++ b/cui/source/dialogs/linkdlg.cxx
@@ -30,6 +30,7 @@
 #include <vcl/lstbox.hxx>
 #include <vcl/msgbox.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <svtools/svtabbx.hxx>
 #include "svtools/treelistentry.hxx"
 
@@ -124,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( VCL_IDLE_PRIORITY_LOWEST );
+    aUpdateIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
 
     m_pPbOpenSource->Hide();
 
diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx
index 79c4d9e..c98a96f 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( VCL_IDLE_PRIORITY_LOWEST );
+    m_aModifyIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
 
     EnableAutocomplete( false );
 }
diff --git a/cui/source/inc/cuigaldlg.hxx b/cui/source/inc/cuigaldlg.hxx
index ed98621..a57904a 100644
--- a/cui/source/inc/cuigaldlg.hxx
+++ b/cui/source/inc/cuigaldlg.hxx
@@ -31,6 +31,7 @@
 #include <vcl/menu.hxx>
 #include <vcl/edit.hxx>
 #include <vcl/combobox.hxx>
+#include <vcl/idle.hxx>
 #include <svl/slstitm.hxx>
 #include <svtools/transfer.hxx>
 #include <svtools/grfmgr.hxx>
diff --git a/cui/source/inc/linkdlg.hxx b/cui/source/inc/linkdlg.hxx
index 64e9b87..4dbda38 100644
--- a/cui/source/inc/linkdlg.hxx
+++ b/cui/source/inc/linkdlg.hxx
@@ -25,6 +25,7 @@
 #include <vcl/button.hxx>
 #include <vcl/edit.hxx>
 #include <vcl/lstbox.hxx>
+#include <vcl/idle.hxx>
 
 #include <svtools/svmedit.hxx>
 #include <svtools/svtabbx.hxx>
diff --git a/cui/source/inc/thesdlg.hxx b/cui/source/inc/thesdlg.hxx
index 729fb8f..da19952 100644
--- a/cui/source/inc/thesdlg.hxx
+++ b/cui/source/inc/thesdlg.hxx
@@ -25,6 +25,7 @@
 #include <vcl/button.hxx>
 #include <vcl/combobox.hxx>
 #include <vcl/lstbox.hxx>
+#include <vcl/idle.hxx>
 #include <svx/stddlg.hxx>
 
 #include <memory>
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx
index ef7b7c3..901361e 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(VCL_IDLE_PRIORITY_LOWER);
+    m_aResetIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWER);
 
     m_pExpertConfigBtn->SetClickHdl( LINK( this, SvxJavaOptionsPage, ExpertConfigHdl_Impl) );
     if (!officecfg::Office::Common::Security::EnableExpertConfiguration::get())
diff --git a/cui/source/options/optjava.hxx b/cui/source/options/optjava.hxx
index 247d9cd..4b45f37 100644
--- a/cui/source/options/optjava.hxx
+++ b/cui/source/options/optjava.hxx
@@ -27,6 +27,7 @@
 #include <vcl/fixed.hxx>
 #include <vcl/lstbox.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <sfx2/tabdlg.hxx>
 #include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
 #include <svtools/dialogclosedlistener.hxx>
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx
index 5c0c9ed..1b27534 100644
--- a/cui/source/tabpages/backgrnd.cxx
+++ b/cui/source/tabpages/backgrnd.cxx
@@ -22,6 +22,7 @@
 #include <vcl/builder.hxx>
 #include <vcl/msgbox.hxx>
 #include <vcl/settings.hxx>
+#include <vcl/idle.hxx>
 #include <tools/urlobj.hxx>
 #include <sfx2/dialoghelper.hxx>
 #include <sfx2/objsh.hxx>
@@ -1092,7 +1093,7 @@ void SvxBackgroundTabPage::ShowSelector()
 
         // delayed loading via timer (because of UI-Update)
         pPageImpl->pLoadIdle = new Idle;
-        pPageImpl->pLoadIdle->SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+        pPageImpl->pLoadIdle->SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
         pPageImpl->pLoadIdle->SetIdleHdl(
             LINK( this, SvxBackgroundTabPage, LoadTimerHdl_Impl ) );
 
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index bed3f47..5b73b59 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -19,6 +19,7 @@
 
 #include <editeng/unolingu.hxx>
 #include <vcl/svapp.hxx>
+#include <vcl/idle.hxx>
 #include <unotools/pathoptions.hxx>
 #include <svtools/ctrltool.hxx>
 #include <sfx2/printer.hxx>
@@ -250,7 +251,7 @@ struct SvxCharNamePage_Impl
         m_bInSearchMode ( false )
 
     {
-        m_aUpdateIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+        m_aUpdateIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
     }
 
     ~SvxCharNamePage_Impl()
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 056f0b1..9f926b4 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(VCL_IDLE_PRIORITY_LOWEST);
+    m_aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_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( VCL_IDLE_PRIORITY_MEDIUM );
+    m_aIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_MEDIUM );
     m_aIdle.SetIdleHdl( LINK( this, UpdateRequiredDialog, TimeOutHdl ) );
 }
 
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.hxx b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
index e2c1629..f83fd29 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.hxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.hxx
@@ -26,6 +26,7 @@
 #include <vcl/fixedhyper.hxx>
 #include <vcl/prgsbar.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 
 #include <svtools/svmedit.hxx>
 
diff --git a/extensions/source/bibliography/bibcont.cxx b/extensions/source/bibliography/bibcont.cxx
index 9416003..3f89c87 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(VCL_IDLE_PRIORITY_LOWEST);
+    aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
 }
 
 BibBookContainer::~BibBookContainer()
diff --git a/extensions/source/bibliography/bibcont.hxx b/extensions/source/bibliography/bibcont.hxx
index 4c9e487..af6a788 100644
--- a/extensions/source/bibliography/bibcont.hxx
+++ b/extensions/source/bibliography/bibcont.hxx
@@ -23,6 +23,7 @@
 #include <com/sun/star/frame/XFrame.hpp>
 #include <vcl/splitwin.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include "bibshortcuthandler.hxx"
 
 #include "bibmod.hxx"
diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx
index 17f5951..e62a703 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(VCL_IDLE_PRIORITY_LOWEST);
+    aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
 
     SetDropdownClickHdl( LINK( this, BibToolBar, MenuHdl));
 
diff --git a/extensions/source/update/ui/updatecheckui.cxx b/extensions/source/update/ui/updatecheckui.cxx
index cccb034..7ad3a6f 100644
--- a/extensions/source/update/ui/updatecheckui.cxx
+++ b/extensions/source/update/ui/updatecheckui.cxx
@@ -40,6 +40,7 @@
 #include <vcl/window.hxx>
 #include <vcl/floatwin.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <vcl/menu.hxx>
 #include <vcl/outdev.hxx>
 #include <vcl/layout.hxx>
@@ -212,7 +213,7 @@ UpdateCheckUI::UpdateCheckUI(const uno::Reference<uno::XComponentContext>& xCont
 
     maBubbleImage = GetBubbleImage( maBubbleImageURL );
 
-    maWaitIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+    maWaitIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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 3235ffe..183fe83 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1789,7 +1789,7 @@ namespace frm
 
         doSetDelegator();
 
-        m_aChangeIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
+        m_aChangeIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
         m_aChangeIdle.SetIdleHdl(LINK(this,OListBoxControl,OnTimeout));
     }
 
diff --git a/forms/source/component/ListBox.hxx b/forms/source/component/ListBox.hxx
index 85b380c..0bdbee1 100644
--- a/forms/source/component/ListBox.hxx
+++ b/forms/source/component/ListBox.hxx
@@ -39,6 +39,7 @@
 #include <cppuhelper/interfacecontainer.hxx>
 #include <cppuhelper/implbase1.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 
 #include <vector>
 
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index bf75606..af8ec0e 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -28,6 +28,7 @@
 #include <vcl/group.hxx>
 #include <vcl/wall.hxx>
 #include <vcl/layout.hxx>
+#include <vcl/idle.hxx>
 
 #include <svtools/stdctrl.hxx>
 #include <svtools/svmedit.hxx>
@@ -1772,7 +1773,7 @@ OUString FormulaDlg::GetMeText() const
 void FormulaDlg::Update()
 {
     m_pImpl->Update();
-    m_pImpl->aIdle.SetPriority(VCL_IDLE_PRIORITY_LOWER);
+    m_pImpl->aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_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 8a3de8c..4dc6d18 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( VCL_IDLE_PRIORITY_LOW );
+    aIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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( VCL_IDLE_PRIORITY_LOW );
+    aIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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( VCL_IDLE_PRIORITY_LOW );
+        aIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOW );
     }
     else
     {
diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx
index 2f481e8..3a7249a 100644
--- a/include/sfx2/dinfdlg.hxx
+++ b/include/sfx2/dinfdlg.hxx
@@ -37,6 +37,7 @@
 
 #include <vcl/edit.hxx>
 #include <vcl/field.hxx>
+#include <vcl/idle.hxx>
 #include <vcl/layout.hxx>
 #include <vcl/lstbox.hxx>
 #include <vcl/scrbar.hxx>
diff --git a/include/svtools/filechangedchecker.hxx b/include/svtools/filechangedchecker.hxx
index cea8d16..08a98e4 100644
--- a/include/svtools/filechangedchecker.hxx
+++ b/include/svtools/filechangedchecker.hxx
@@ -14,6 +14,7 @@
 #include <boost/function.hpp>
 #include <osl/file.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 
 /** Periodically checks if a file has been modified
 
diff --git a/include/svx/fontwork.hxx b/include/svx/fontwork.hxx
index f1ff203..7e7ade3 100644
--- a/include/svx/fontwork.hxx
+++ b/include/svx/fontwork.hxx
@@ -21,6 +21,7 @@
 
 #include <vcl/toolbox.hxx>
 #include <vcl/fixed.hxx>
+#include <vcl/idle.hxx>
 #include <svtools/valueset.hxx>
 #include <sfx2/dockwin.hxx>
 #include <sfx2/ctrlitem.hxx>
diff --git a/include/svx/numvset.hxx b/include/svx/numvset.hxx
index 4bc16cf..f5e3781 100644
--- a/include/svx/numvset.hxx
+++ b/include/svx/numvset.hxx
@@ -19,6 +19,7 @@
 #ifndef INCLUDED_SVX_NUMVSET_HXX
 #define INCLUDED_SVX_NUMVSET_HXX
 
+#include <vcl/idle.hxx>
 #include <svtools/valueset.hxx>
 #include <limits.h>
 #include <com/sun/star/uno/Reference.h>
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index 2d6961d..7d2f4b9 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -26,6 +26,7 @@
 #include <vcl/dockwin.hxx>
 #include <vcl/image.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <vector>
 
 class UserDrawEvent;
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 557842e..d9001c4 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -476,7 +476,7 @@ LngSvcMgr::LngSvcMgr()
 
     UpdateAll();
 
-    aUpdateIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
+    aUpdateIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
     aUpdateIdle.SetIdleHdl(LINK(this, LngSvcMgr, updateAndBroadcast));
 
     // request to be notified if an extension has been added/removed
diff --git a/reportdesign/source/ui/inc/DesignView.hxx b/reportdesign/source/ui/inc/DesignView.hxx
index 9c6c925..635b1cb 100644
--- a/reportdesign/source/ui/inc/DesignView.hxx
+++ b/reportdesign/source/ui/inc/DesignView.hxx
@@ -30,6 +30,7 @@
 #include <tools/link.hxx>
 #include <tools/gen.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <svl/hint.hxx>
 #include <svl/SfxBroadcaster.hxx>
 #include "ReportDefines.hxx"
diff --git a/reportdesign/source/ui/report/DesignView.cxx b/reportdesign/source/ui/report/DesignView.cxx
index bca85bc..2e098f9 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( VCL_IDLE_PRIORITY_LOW );
+    m_aMarkIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOW );
     m_aMarkIdle.SetIdleHdl( LINK( this, ODesignView, MarkTimeout ) );
 }
 
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 57fcf74..ae4639e 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -22,6 +22,7 @@
 
 #include <vcl/prntypes.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <com/sun/star/uno/Reference.hxx>
 #include <rtl/ref.hxx>
 #include "scdllapi.h"
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 35503d7..77322f8 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( VCL_IDLE_PRIORITY_LOW );
+    aTrackIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOW );
 }
 
 sfx2::LinkManager* ScDocument::GetLinkManager()
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index 69cdd84..a6ec1c0 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(VCL_IDLE_PRIORITY_LOWER);
+    aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWER);
     aIdle.SetIdleHdl(LINK( this, ScFunctionDockWin, TimerHdl));
 
     if (pCW != NULL)
diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx
index 79a7ad5..4080022 100644
--- a/sc/source/ui/inc/acredlin.hxx
+++ b/sc/source/ui/inc/acredlin.hxx
@@ -23,6 +23,7 @@
 #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>
diff --git a/sc/source/ui/inc/conflictsdlg.hxx b/sc/source/ui/inc/conflictsdlg.hxx
index 57cc724..3e9ebd6 100644
--- a/sc/source/ui/inc/conflictsdlg.hxx
+++ b/sc/source/ui/inc/conflictsdlg.hxx
@@ -24,6 +24,7 @@
 #include <vcl/dialog.hxx>
 #include <vcl/fixed.hxx>
 #include <vcl/lstbox.hxx>
+#include <vcl/idle.hxx>
 #include <svx/ctredlin.hxx>
 
 #include "chgtrack.hxx"
diff --git a/sc/source/ui/inc/navipi.hxx b/sc/source/ui/inc/navipi.hxx
index 29da9a6..a153361 100644
--- a/sc/source/ui/inc/navipi.hxx
+++ b/sc/source/ui/inc/navipi.hxx
@@ -24,6 +24,7 @@
 #include <vcl/toolbox.hxx>
 #include <vcl/field.hxx>
 #include <vcl/lstbox.hxx>
+#include <vcl/idle.hxx>
 #include <svtools/stdctrl.hxx>
 #include <svl/poolitem.hxx>
 #include <svl/lstner.hxx>
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index d1e792e..15f0f69 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(VCL_IDLE_PRIORITY_MEDIUM);
+    aReOpenIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM);
     aReOpenIdle.SetIdleHdl(LINK( this, ScAcceptChgDlg, ReOpenTimerHdl ));
 
     pTPFilter=m_pAcceptChgCtr->GetFilterPage();
     pTPView=m_pAcceptChgCtr->GetViewPage();
     pTheView=pTPView->GetTableControl();
-    aSelectionIdle.SetPriority(VCL_IDLE_PRIORITY_LOW);
+    aSelectionIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_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 fb291b4..48843fd 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(VCL_IDLE_PRIORITY_LOWER);
+    aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_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 b9c6a0c..ccb4964 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( VCL_IDLE_PRIORITY_LOW );
+    maSelectionIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOW );
     maSelectionIdle.SetIdleHdl( LINK( this, ScConflictsDlg, UpdateSelectionHdl ) );
 
     m_pLbConflicts->SetSelectHdl( LINK( this, ScConflictsDlg, SelectHandle ) );
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index f3a0f96..7198685 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(VCL_IDLE_PRIORITY_LOWEST);
+    aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
     SetDropDown(PUSHBUTTON_DROPDOWN_TOOLBOX);
 }
 
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx
index 524dcba..87c0f8e 100644
--- a/sd/inc/drawdoc.hxx
+++ b/sd/inc/drawdoc.hxx
@@ -24,6 +24,7 @@
 #include <com/sun/star/text/WritingMode.hpp>
 #include <com/sun/star/frame/XModel.hpp>
 #include <vcl/print.hxx>
+#include <vcl/idle.hxx>
 #include <svx/fmmodel.hxx>
 #include "pres.hxx"
 #include <svx/pageitem.hxx>
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index 2741cf2..8b8ddd1 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 05a0570..8acd1e9 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 c2791e1..0520af2 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 d567c20..de5819d 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 c41158c..56796f4 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>
 
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 61fa159..8d8cc5b 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(VCL_IDLE_PRIORITY_LOWER);
+    aFactoryIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_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( VCL_IDLE_PRIORITY_LOWER );
+    aIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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( VCL_IDLE_PRIORITY_LOWEST );
+    aIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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( VCL_IDLE_PRIORITY_LOWEST );
+    aSelectIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
 
     char* pEnv = getenv( "help_debug" );
     if ( pEnv )
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx
index 95b8794..4ccf236 100644
--- a/sfx2/source/appl/newhelp.hxx
+++ b/sfx2/source/appl/newhelp.hxx
@@ -30,6 +30,7 @@ namespace com { namespace sun { namespace star { namespace i18n { class XBreakIt
 namespace com { namespace sun { namespace star { namespace text { class XTextRange; } } } }
 
 #include <vcl/window.hxx>
+#include <vcl/idle.hxx>
 #include <vcl/toolbox.hxx>
 #include <vcl/tabpage.hxx>
 #include <vcl/splitwin.hxx>
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index 2ebf8a8..473bedf 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( VCL_IDLE_PRIORITY_LOWEST );
+    m_aEditLoseFocusIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
     m_aEditLoseFocusIdle.SetIdleHdl( LINK( this, CustomPropertiesWindow, EditTimeoutHdl ) );
-    m_aBoxLoseFocusIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+    m_aBoxLoseFocusIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
     m_aBoxLoseFocusIdle.SetIdleHdl( LINK( this, CustomPropertiesWindow, BoxTimeoutHdl ) );
 
     m_aNameBox.add_mnemonic_label(m_pHeaderAccName);
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index c5803cd..2bf4015 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( VCL_IDLE_PRIORITY_LOWEST );
+                maPreviewIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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( VCL_IDLE_PRIORITY_LOWEST );
+                maPreviewIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
                 maPreviewIdle.SetIdleHdl( LINK( this, FileDialogHelper_Impl, TimeOutHdl_Impl ) );
                 break;
 
diff --git a/sfx2/source/dialog/filedlgimpl.hxx b/sfx2/source/dialog/filedlgimpl.hxx
index e202421..a55b61d 100644
--- a/sfx2/source/dialog/filedlgimpl.hxx
+++ b/sfx2/source/dialog/filedlgimpl.hxx
@@ -20,6 +20,7 @@
 #define INCLUDED_SFX2_SOURCE_DIALOG_FILEDLGIMPL_HXX
 
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <vcl/graph.hxx>
 #include <cppuhelper/implbase2.hxx>
 #include <com/sun/star/beans/StringPair.hpp>
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 387069a..28cb8f2 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(VCL_IDLE_PRIORITY_LOWEST);
+            pIdle->SetPriority(IdlePriority::VCL_IDLE_PRIORITY_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 9a97255..0e9c6f5 100644
--- a/sfx2/source/doc/new.cxx
+++ b/sfx2/source/doc/new.cxx
@@ -22,6 +22,7 @@
 #include <vcl/builder.hxx>
 #include <vcl/layout.hxx>
 #include <vcl/msgbox.hxx>
+#include <vcl/idle.hxx>
 #include <svtools/svmedit.hxx>
 #include <svl/itemset.hxx>
 #include <svl/eitem.hxx>
@@ -431,7 +432,7 @@ SfxNewFileDialog_Impl::SfxNewFileDialog_Impl(
         m_pRegionLb->SetSelectHdl(LINK(this, SfxNewFileDialog_Impl, RegionSelect));
     }
 
-    aPrevIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+    aPrevIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
     aPrevIdle.SetIdleHdl( LINK( this, SfxNewFileDialog_Impl, Update));
 
     m_pRegionLb->SelectEntryPos(0);
diff --git a/starmath/inc/edit.hxx b/starmath/inc/edit.hxx
index 4aef879..ece8824 100644
--- a/starmath/inc/edit.hxx
+++ b/starmath/inc/edit.hxx
@@ -21,6 +21,7 @@
 
 #include <vcl/window.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <svtools/transfer.hxx>
 #include <editeng/editdata.hxx>
 #include <svtools/colorcfg.hxx>
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 97b6826..00c7dda 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(VCL_IDLE_PRIORITY_LOWEST);
+    aModifyIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
 
     if (!IsInlineEditEnabled())
     {
         aCursorMoveIdle.SetIdleHdl(LINK(this, SmEditWindow, CursorMoveTimerHdl));
-        aCursorMoveIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
+        aCursorMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
     }
 
     // if not called explicitly the this edit window within the
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx
index c599a39..4ec01f0 100644
--- a/svtools/source/contnr/imivctl.hxx
+++ b/svtools/source/contnr/imivctl.hxx
@@ -23,6 +23,7 @@
 #include <vcl/virdev.hxx>
 #include <vcl/scrbar.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <vcl/seleng.hxx>
 #include <tools/debug.hxx>
 #include "svtaccessiblefactory.hxx"
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index 713b4c9..a0059dd 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -135,16 +135,16 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl(
     nHorSBarHeight = aHorSBar.GetSizePixel().Height();
     nVerSBarWidth = aVerSBar.GetSizePixel().Width();
 
-    aEditIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+    aEditIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
     aEditIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,EditTimeoutHdl));
-    aAutoArrangeIdle.SetPriority( VCL_IDLE_PRIORITY_LOW );
+    aAutoArrangeIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOW );
     aAutoArrangeIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,AutoArrangeHdl));
-    aCallSelectHdlIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+    aCallSelectHdlIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
     aCallSelectHdlIdle.SetIdleHdl( LINK(this,SvxIconChoiceCtrl_Impl,CallSelectHdlHdl));
 
-    aDocRectChangedIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM );
+    aDocRectChangedIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_MEDIUM );
     aDocRectChangedIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,DocRectChangedHdl));
-    aVisRectChangedIdle.SetPriority( VCL_IDLE_PRIORITY_MEDIUM );
+    aVisRectChangedIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_MEDIUM );
     aVisRectChangedIdle.SetIdleHdl(LINK(this,SvxIconChoiceCtrl_Impl,VisRectChangedHdl));
 
     Clear( true );
@@ -3393,7 +3393,7 @@ bool IcnViewEdit_Impl::PreNotify( NotifyEvent& rNEvt )
             ((!Application::GetFocusWindow()) || !IsChild(Application::GetFocusWindow())))
         {
             bCanceled = false;
-            aIdle.SetPriority(VCL_IDLE_PRIORITY_REPAINT);
+            aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_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 f014b6f..01c413b 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( VCL_IDLE_PRIORITY_HIGHEST );
+    aAsyncBeginDragIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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( VCL_IDLE_PRIORITY_LOWEST );
+    aEditIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
     aEditIdle.SetIdleHdl( LINK(this,SvImpLBox,EditTimerCall) );
 
     nMostRight = -1;
diff --git a/svtools/source/misc/filechangedchecker.cxx b/svtools/source/misc/filechangedchecker.cxx
index 33d5008..71382d3 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(VCL_IDLE_PRIORITY_LOWEST);
+    mIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
 }
 
 bool FileChangedChecker::getCurrentModTime(TimeValue& o_rValue) const
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx
index a2e3df8..3852aa0 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( VCL_IDLE_PRIORITY_LOW );
+    aUpdateIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOW );
     aUpdateIdle.SetIdleHdl( LINK( this, SvxSuperContourDlg, UpdateHdl ) );
 
-    aCreateIdle.SetPriority( VCL_IDLE_PRIORITY_RESIZE );
+    aCreateIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_RESIZE );
     aCreateIdle.SetIdleHdl( LINK( this, SvxSuperContourDlg, CreateHdl ) );
 }
 
diff --git a/svx/source/dialog/contimp.hxx b/svx/source/dialog/contimp.hxx
index 2e999e85..7b73b28 100644
--- a/svx/source/dialog/contimp.hxx
+++ b/svx/source/dialog/contimp.hxx
@@ -23,6 +23,7 @@
 #include "contwnd.hxx"
 #include <vcl/toolbox.hxx>
 #include <vcl/status.hxx>
+#include <vcl/idle.hxx>
 
 #define CONT_RESID(nId)  ResId( nId, DIALOG_MGR() )
 
diff --git a/svx/source/dialog/fontwork.cxx b/svx/source/dialog/fontwork.cxx
index 33abee5..f1abf50 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(VCL_IDLE_PRIORITY_LOWEST);
+    aInputIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
     aInputIdle.SetIdleHdl(LINK(this, SvxFontWorkDialog, InputTimoutHdl_Impl));
 }
 
diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx
index 61f5a31..0a64060 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( VCL_IDLE_PRIORITY_LOWEST );
+    aUpdateIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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 6866020..7ef4237 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( VCL_IDLE_PRIORITY_LOW );
+    pOwnData->aIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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 1118a09..bbb114f 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -22,6 +22,7 @@
 #include <vcl/wrkwin.hxx>
 #include <vcl/morebtn.hxx>
 #include <vcl/msgbox.hxx>
+#include <vcl/idle.hxx>
 #include <svl/slstitm.hxx>
 #include <svl/itemiter.hxx>
 #include <svl/style.hxx>
@@ -364,7 +365,7 @@ void SvxSearchDialog::Construct_Impl()
 {
     // temporary to avoid incompatibility
     pImpl = new SearchDlg_Impl();
-    pImpl->aSelectionIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+    pImpl->aSelectionIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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 55aebe3..2403991 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(VCL_IDLE_PRIORITY_LOWEST);
+    aFormatIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
     aFormatIdle.SetIdleHdl(LINK(this, SvxBmpNumValueSet, FormatHdl_Impl));
 }
 
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index f468add..01b79e1 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( VCL_IDLE_PRIORITY_LOWEST );
+        m_aResultIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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 725326c..238121a 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( VCL_IDLE_PRIORITY_LOWEST );
+    m_aTabActivationIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
     m_aTabActivationIdle.SetIdleHdl( LINK( this, FormController, OnActivateTabOrder ) );
 
     m_aFeatureInvalidationTimer.SetTimeout( 200 );
diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx
index a3459b8..eb665a1 100644
--- a/svx/source/inc/datanavi.hxx
+++ b/svx/source/inc/datanavi.hxx
@@ -28,6 +28,7 @@
 #include <vcl/tabctrl.hxx>
 #include <vcl/tabpage.hxx>
 #include <vcl/toolbox.hxx>
+#include <vcl/idle.hxx>
 #include <svtools/inettbc.hxx>
 #include <svtools/simptabl.hxx>
 #include <svtools/svmedit.hxx>
diff --git a/svx/source/inc/formcontroller.hxx b/svx/source/inc/formcontroller.hxx
index cac5459..c71b40b 100644
--- a/svx/source/inc/formcontroller.hxx
+++ b/svx/source/inc/formcontroller.hxx
@@ -75,6 +75,7 @@
 #include <comphelper/proparrhlp.hxx>
 #include <cppuhelper/propshlp.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 
 #ifndef INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_22
 #define INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_22
diff --git a/svx/source/stbctrls/modctrl.cxx b/svx/source/stbctrls/modctrl.cxx
index 7899bcb..63b58de 100644
--- a/svx/source/stbctrls/modctrl.cxx
+++ b/svx/source/stbctrls/modctrl.cxx
@@ -20,6 +20,7 @@
 #include <vcl/status.hxx>
 #include <vcl/image.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <svl/eitem.hxx>
 #include <sfx2/app.hxx>
 
@@ -57,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(VCL_IDLE_PRIORITY_LOWEST);
+        maIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
     }
 };
 
diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx
index a27b611..f8b9e6f 100644
--- a/svx/source/tbxctrls/grafctrl.cxx
+++ b/svx/source/tbxctrls/grafctrl.cxx
@@ -23,6 +23,7 @@
 #include <vcl/field.hxx>
 #include <vcl/fixed.hxx>
 #include <vcl/msgbox.hxx>
+#include <vcl/idle.hxx>
 #include <svl/intitem.hxx>
 #include <svl/eitem.hxx>
 #include <svl/whiter.hxx>
@@ -138,7 +139,7 @@ ImplGrafMetricField::ImplGrafMetricField( vcl::Window* pParent, const OUString&
         SetSpinSize( 1 );
     }
 
-    maIdle.SetPriority( VCL_IDLE_PRIORITY_LOW );
+    maIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOW );
     maIdle.SetIdleHdl( LINK( this, ImplGrafMetricField, ImplModifyHdl ) );
 }
 
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 6efdfd49..e8d71bd 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -25,6 +25,7 @@
 #include <com/sun/star/embed/XEmbeddedObject.hpp>
 #include <com/sun/star/embed/XStorage.hpp>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <sal/macros.h>
 #include "swdllapi.h"
 #include <swtypes.hxx>
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx
index 54e486a..0d9de32 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( VCL_IDLE_PRIORITY_LOWEST );
+    maOLEModifiedIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_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 7773d3d..9eb2712 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( VCL_IDLE_PRIORITY_LOWEST );
+    maStartNewThreadIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
     maStartNewThreadIdle.SetIdleHdl( LINK( this, ThreadManager, TryToStartNewThread ) );
 }
 
diff --git a/sw/source/core/inc/threadmanager.hxx b/sw/source/core/inc/threadmanager.hxx
index 54cb08b..0c6e827 100644
--- a/sw/source/core/inc/threadmanager.hxx
+++ b/sw/source/core/inc/threadmanager.hxx
@@ -21,6 +21,7 @@
 
 #include <ithreadlistenerowner.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <osl/mutex.hxx>
 #include <osl/interlck.h>
 #include <rtl/ref.hxx>
diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx
index 57abcde..3fabf31 100644
--- a/sw/source/ui/dbui/mmoutputtypepage.cxx
+++ b/sw/source/ui/dbui/mmoutputtypepage.cxx
@@ -64,6 +64,7 @@ IMPL_LINK_NOARG(SwMailMergeOutputTypePage, TypeHdl_Impl)
 #include <com/sun/star/mail/XSmtpService.hpp>
 #include <comphelper/string.hxx>
 #include <vcl/svapp.hxx>
+#include <vcl/idle.hxx>
 
 #include <helpid.h>
 #include <cmdid.h>
@@ -92,7 +93,7 @@ struct SwSendMailDialog_Impl
         nCurrentDescriptor(0),
         nDocumentCount(0)
              {
-                aRemoveIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
+                aRemoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
              }
 
     ~SwSendMailDialog_Impl()
diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx
index 98ba6f2..c202c30 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(VCL_IDLE_PRIORITY_LOWEST);
+    aPreviewIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
     aPreviewIdle.SetIdleHdl(LINK(this, SwLabFmtPage, PreviewHdl));
 }
 
diff --git a/sw/source/ui/envelp/labfmt.hxx b/sw/source/ui/envelp/labfmt.hxx
index a58c025..13dc533 100644
--- a/sw/source/ui/envelp/labfmt.hxx
+++ b/sw/source/ui/envelp/labfmt.hxx
@@ -22,6 +22,7 @@
 #include "swuilabimp.hxx"
 #include "labimg.hxx"
 #include <vcl/msgbox.hxx>
+#include <vcl/idle.hxx>
 class SwLabFmtPage;
 
 class SwLabPreview : public vcl::Window
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 5e3033b..de58958 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(VCL_IDLE_PRIORITY_LOWEST);
+    m_aTemplateIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_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 34ca992..666226b 100644
--- a/sw/source/uibase/docvw/srcedtw.cxx
+++ b/sw/source/uibase/docvw/srcedtw.cxx
@@ -514,7 +514,7 @@ void SwSrcEditWindow::CreateTextEngine()
     pOutWin->SetFont( aFont );
     pTextEngine->SetFont( aFont );
 
-    aSyntaxIdle.SetPriority( VCL_IDLE_PRIORITY_LOWER );
+    aSyntaxIdle.SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWER );
     aSyntaxIdle.SetIdleHdl( LINK( this, SwSrcEditWindow, SyntaxTimerHdl ) );
 
     pTextEngine->EnableUndo( true );
diff --git a/sw/source/uibase/inc/edtwin.hxx b/sw/source/uibase/inc/edtwin.hxx
index ff04909..cec0137 100644
--- a/sw/source/uibase/inc/edtwin.hxx
+++ b/sw/source/uibase/inc/edtwin.hxx
@@ -24,6 +24,7 @@
 #include <svx/svdobj.hxx>
 #include <tools/link.hxx>
 #include <vcl/timer.hxx>
+#include <vcl/idle.hxx>
 #include <vcl/window.hxx>
 #include <svtools/transfer.hxx>
 #include <swevent.hxx>
diff --git a/sw/source/uibase/inc/navipi.hxx b/sw/source/uibase/inc/navipi.hxx
index 386213b..f4be0a7 100644
--- a/sw/source/uibase/inc/navipi.hxx
+++ b/sw/source/uibase/inc/navipi.hxx
@@ -20,6 +20,7 @@
 #define INCLUDED_SW_SOURCE_UIBASE_INC_NAVIPI_HXX
 
 #include <vcl/lstbox.hxx>
+#include <vcl/idle.hxx>
 #include <svl/lstner.hxx>
 #include <svtools/transfer.hxx>
 #include <sfx2/childwin.hxx>
diff --git a/sw/source/uibase/inc/unotools.hxx b/sw/source/uibase/inc/unotools.hxx
index cd4574f..8d4220f 100644
--- a/sw/source/uibase/inc/unotools.hxx
+++ b/sw/source/uibase/inc/unotools.hxx
@@ -24,6 +24,7 @@
 #include <vcl/dialog.hxx>
 #include <vcl/fixed.hxx>
 #include <vcl/layout.hxx>
+#include <vcl/idle.hxx>
 #include <actctrl.hxx>
 #include <com/sun/star/frame/XController.hpp>
 #include <com/sun/star/text/XTextCursor.hpp>
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index bf04b61..c35957f 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -832,7 +832,7 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings,
         aContentTree.GrabFocus();
     UsePage(0);
     aPageChgIdle.SetIdleHdl(LINK(this, SwNavigationPI, ChangePageHdl));
-    aPageChgIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
+    aPageChgIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWEST);
 
     aContentTree.SetAccessibleName(SW_RESSTR(STR_ACCESS_TL_CONTENT));
     aGlobalTree.SetAccessibleName(SW_RESSTR(STR_ACCESS_TL_GLOBAL));
diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx
index 04813fd..d72e754 100644
--- a/sw/source/uibase/utlui/unotools.cxx
+++ b/sw/source/uibase/utlui/unotools.cxx
@@ -83,7 +83,7 @@ SwOneExampleFrame::SwOneExampleFrame( vcl::Window& rWin,
 
     // the controller is asynchronously set
     aLoadedIdle.SetIdleHdl(LINK(this, SwOneExampleFrame, TimeoutHdl));
-    aLoadedIdle.SetPriority(VCL_IDLE_PRIORITY_LOWER);
+    aLoadedIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_LOWER);
 
     CreateControl();
 
diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx
index 02d2ab9..2cbbaca 100644
--- a/vcl/generic/print/genprnpsp.cxx
+++ b/vcl/generic/print/genprnpsp.cxx
@@ -42,6 +42,7 @@
 #include "vcl/dialog.hxx"
 #include "vcl/edit.hxx"
 #include "vcl/fixed.hxx"
+#include "vcl/idle.hxx"
 #include "vcl/svapp.hxx"
 #include "vcl/print.hxx"
 #include "vcl/pdfwriter.hxx"
@@ -1327,7 +1328,7 @@ void PrinterUpdate::update(SalGenericInstance &rInstance)
     else if( ! pPrinterUpdateIdle )
     {
         pPrinterUpdateIdle = new Idle();
-        pPrinterUpdateIdle->SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+        pPrinterUpdateIdle->SetPriority( IdlePriority::VCL_IDLE_PRIORITY_LOWEST );
         pPrinterUpdateIdle->SetIdleHdl( STATIC_LINK( NULL, PrinterUpdate, UpdateTimerHdl ) );
         pPrinterUpdateIdle->Start();
     }
diff --git a/vcl/source/edit/textdat2.hxx b/vcl/source/edit/textdat2.hxx
index e93f785..81785cf 100644
--- a/vcl/source/edit/textdat2.hxx
+++ b/vcl/source/edit/textdat2.hxx
@@ -23,6 +23,7 @@
 #include <vcl/seleng.hxx>
 #include <vcl/virdev.hxx>
 #include <vcl/cursor.hxx>
+#include <vcl/idle.hxx>
 
 #include <boost/ptr_container/ptr_vector.hpp>
 


More information about the Libreoffice-commits mailing list