[Libreoffice-commits] core.git: Branch 'feature/priorities' - chart2/source cui/source editeng/source include/svtools include/svx include/vcl sc/inc sc/source sd/source sfx2/source svtools/source svx/inc svx/source vcl/source

Jennifer Liebel jliebel94 at gmail.com
Wed Jan 14 01:30:18 PST 2015


 chart2/source/view/charttypes/GL3DBarChart.cxx          |    2 +-
 chart2/source/view/inc/GL3DBarChart.hxx                 |    1 +
 cui/source/tabpages/macroass.cxx                        |    3 ++-
 editeng/source/editeng/impedit.hxx                      |    1 +
 editeng/source/editeng/impedit2.cxx                     |    2 +-
 include/svtools/treelistbox.hxx                         |    1 +
 include/svtools/wizdlg.hxx                              |    1 +
 include/svx/sidebar/PanelLayout.hxx                     |    1 +
 include/svx/svdpntv.hxx                                 |    1 +
 include/vcl/edit.hxx                                    |    1 +
 include/vcl/syswin.hxx                                  |    1 +
 sc/inc/chartlis.hxx                                     |    1 +
 sc/inc/scmod.hxx                                        |    1 +
 sc/source/core/tool/chartlis.cxx                        |    2 +-
 sc/source/ui/app/scmod.cxx                              |    2 +-
 sc/source/ui/dbgui/sfiltdlg.cxx                         |    3 ++-
 sc/source/ui/docshell/autostyl.cxx                      |    2 +-
 sc/source/ui/inc/acredlin.hxx                           |    2 +-
 sc/source/ui/inc/autostyl.hxx                           |    1 +
 sd/source/ui/dlg/brkdlg.cxx                             |    2 +-
 sd/source/ui/inc/BreakDlg.hxx                           |    1 +
 sd/source/ui/inc/View.hxx                               |    1 +
 sd/source/ui/slidesorter/controller/SlsAnimator.cxx     |    2 +-
 sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx |    1 +
 sd/source/ui/view/sdview.cxx                            |    4 ++--
 sfx2/source/appl/appcfg.cxx                             |    3 ++-
 sfx2/source/control/dispatch.cxx                        |    7 ++++---
 sfx2/source/dialog/basedlgs.cxx                         |    7 ++++---
 sfx2/source/dialog/dockwin.cxx                          |    7 ++++---
 svtools/source/contnr/imivctl1.cxx                      |    1 +
 svtools/source/contnr/treelistbox.cxx                   |    2 +-
 svtools/source/control/asynclink.cxx                    |    3 ++-
 svtools/source/control/tabbar.cxx                       |    2 +-
 svtools/source/dialogs/wizdlg.cxx                       |    2 +-
 svx/inc/sdr/overlay/overlaymanagerbuffered.hxx          |    3 ++-
 svx/inc/svdibrow.hxx                                    |    1 +
 svx/source/sdr/overlay/overlaymanagerbuffered.cxx       |    2 +-
 svx/source/sidebar/PanelLayout.cxx                      |    2 +-
 svx/source/svdraw/svdibrow.cxx                          |    2 +-
 svx/source/svdraw/svdpntv.cxx                           |    2 +-
 vcl/source/window/dockmgr.cxx                           |    5 +++--
 vcl/source/window/dockwin.cxx                           |    5 +++--
 vcl/source/window/syswin.cxx                            |    2 +-
 vcl/source/window/toolbox.cxx                           |    2 +-
 vcl/source/window/window.cxx                            |    4 ++--
 45 files changed, 65 insertions(+), 39 deletions(-)

New commits:
commit 33183fdc65f53c55041fa22904a6ad5532a11bc6
Author: Jennifer Liebel <jliebel94 at gmail.com>
Date:   Wed Jan 14 09:25:30 2015 +0000

    idle includes and enum use
    
    Change-Id: I8a280c54d81c7da74c9ab03ff3fc788e373ca4e4

diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index 407c34f..473718b 100755
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -560,7 +560,7 @@ GL3DBarChart::GL3DBarChart(
         {
             mbAutoFly = atoi(aAutoFly);
         }
-        maIdle.SetPriority(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 0daeed0..e6d1514 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 233b9b9..a4a23b2 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 2f78c5a..7f1afe4 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 dd6126b..d63d9968 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 9a6c24d..962bba2 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 382403a..93d19ad 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 c696a62..6eac3d3 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 25d8e08..a26db2c 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 e61d31f..122a4a5 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 1f29d45..790ac18 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 85356ed..4fa17c6 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 2c513a9..7ba6021 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 2bdb2b1..6fb7582 100644
--- a/sc/source/core/tool/chartlis.cxx
+++ b/sc/source/core/tool/chartlis.cxx
@@ -588,7 +588,7 @@ void ScChartListenerCollection::FreeUno( const uno::Reference< chart::XChartData
 
 void ScChartListenerCollection::StartTimer()
 {
-    aIdle.SetPriority( 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 2ffd647..d70d49e 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 c889b72..2d13078 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 d7b9374..7b1af95 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 4080022..5f10898 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 6ffd437..edfc646 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 f79002f..1bc6627 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 2159e8b..bddf639 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 e9630c7..9030f06 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 d0594b9..381d6bd 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 0eb10ce..9bed85a 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 ff3c666..1ec93a6 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 2a8c7a3..e750a87 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 b42f32a..7fb09aa 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 )
 
     pImp->xPoster = new SfxHintPoster(aGenLink);
 
-    pImp->aIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM);
+    pImp->aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM);
     pImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) );
 }
 
@@ -472,7 +473,7 @@ void SfxDispatcher::Pop(SfxShell& rShell, sal_uInt16 nMode)
     if(!pSfxApp->IsDowning() && !pImp->aToDoStack.empty())
     {
         // No immediate update is requested
-        pImp->aIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM);
+        pImp->aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM);
         pImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) );
         pImp->aIdle.Start();
     }
@@ -683,7 +684,7 @@ void SfxDispatcher::DoActivate_Impl(bool bMDI, SfxViewFrame* /* pOld */)
     if(!pImp->aToDoStack.empty())
     {
         // No immediate update is requested
-        pImp->aIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM);
+        pImp->aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM);
         pImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) );
         pImp->aIdle.Start();
     }
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index 8be4a17..b14ecb5 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 e0d7363..4a18793 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 a0059dd..c8b6c6b 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 28de122..64420a4 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 1efd934..d2a5b1e 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>
 
 
@@ -60,7 +61,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 629e52d6..411b86f 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -330,7 +330,7 @@ IMPL_LINK( TabBarEdit, ImplEndEditHdl, void*, pCancel )
     // when it shows the context menu or the insert symbol dialog
     if ( !HasFocus() && HasChildPathFocus( true ) )
     {
-        maLoseFocusIdle.SetPriority( 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 eb2e62d..aab7546 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 7379597..35c8d66 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 c2a032c..bd5d8d4 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 218ad26..2fb4df2 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 6630d7a..fb062ff 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 2b0dc96..14acf29 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 0643992..e491df2 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -190,7 +190,7 @@ void SdrPaintView::ImpClearVars()
     pDefaultStyleSheet=NULL;
     bSomeObjChgdFlag=false;
     nGraphicManagerDrawMode = GRFMGR_DRAW_STANDARD;
-    aComeBackIdle.SetPriority(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 722b96d..18796e8 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 6d9186e..7568396 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 538c7c0..67ef351 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 0654bff..be0f7a9 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -1407,7 +1407,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 3b8cde2..ffcd75b 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -1030,10 +1030,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;
 


More information about the Libreoffice-commits mailing list