diff options
author | Jennifer Liebel <jliebel94@gmail.com> | 2015-01-14 09:25:30 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-06 12:27:06 +0000 |
commit | 49524c6dcf04b9dadef8d2b084cf26abcf70b8a9 (patch) | |
tree | 88702970cd6437b0e1e25ef15e46a58b696b1eb7 /sfx2 | |
parent | 826143684d2697a8620373dce18fa5f24332d5cb (diff) |
idle includes and enum use
Change-Id: I8a280c54d81c7da74c9ab03ff3fc788e373ca4e4
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appcfg.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/control/dispatch.cxx | 7 | ||||
-rw-r--r-- | sfx2/source/dialog/basedlgs.cxx | 7 | ||||
-rw-r--r-- | sfx2/source/dialog/dockwin.cxx | 7 |
4 files changed, 14 insertions, 10 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index 14897f8411d5..59ab0f950acb 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -54,6 +54,7 @@ #include <unotools/localfilehelper.hxx> #include <rtl/strbuf.hxx> #include <rtl/ustrbuf.hxx> +#include <vcl/idle.hxx> #include <sfx2/app.hxx> #include <sfx2/docfile.hxx> @@ -114,7 +115,7 @@ SfxEventAsyncer_Impl::SfxEventAsyncer_Impl( const SfxEventHint& rHint ) StartListening( *rHint.GetObjShell() ); pIdle = new Idle; pIdle->SetIdleHdl( LINK(this, SfxEventAsyncer_Impl, TimerHdl) ); - pIdle->SetPriority( VCL_IDLE_PRIORITY_HIGHEST ); + pIdle->SetPriority( IdlePriority::VCL_IDLE_PRIORITY_HIGHEST ); pIdle->Start(); } diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 930ed0b07d83..1bd1ab42902a 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -58,6 +58,7 @@ #include <svl/whiter.hxx> #include <svtools/helpopt.hxx> #include <vcl/wrkwin.hxx> +#include <vcl/idle.hxx> #include <appdata.hxx> #include <sfxtypes.hxx> @@ -336,7 +337,7 @@ void SfxDispatcher::Construct_Impl( SfxDispatcher* pParent ) xImp->xPoster = new SfxHintPoster(aGenLink); - xImp->aIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM); + xImp->aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM); xImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) ); } @@ -472,7 +473,7 @@ void SfxDispatcher::Pop(SfxShell& rShell, sal_uInt16 nMode) if(!pSfxApp->IsDowning() && !xImp->aToDoStack.empty()) { // No immediate update is requested - xImp->aIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM); + xImp->aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM); xImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) ); xImp->aIdle.Start(); } @@ -683,7 +684,7 @@ void SfxDispatcher::DoActivate_Impl(bool bMDI, SfxViewFrame* /* pOld */) if(!xImp->aToDoStack.empty()) { // No immediate update is requested - xImp->aIdle.SetPriority(VCL_IDLE_PRIORITY_MEDIUM); + xImp->aIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_MEDIUM); xImp->aIdle.SetIdleHdl( LINK(this, SfxDispatcher, EventHdl_Impl ) ); xImp->aIdle.Start(); } diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index be56e6c8516b..cde726766a33 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -26,6 +26,7 @@ #include <svl/eitem.hxx> #include <unotools/viewoptions.hxx> #include <svtools/controldims.hrc> +#include <vcl/idle.hxx> #include <sfx2/basedlgs.hxx> #include <sfx2/viewfrm.hxx> @@ -318,7 +319,7 @@ void SfxModelessDialog::Init(SfxBindings *pBindinx, SfxChildWindow *pCW) SetUniqueId( GetHelpId() ); if ( pBindinx ) pImp->StartListening( *pBindinx ); - pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxModelessDialog,TimerHdl)); } @@ -457,7 +458,7 @@ SfxFloatingWindow::SfxFloatingWindow( SfxBindings *pBindinx, SetHelpId(""); if ( pBindinx ) pImp->StartListening( *pBindinx ); - pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxFloatingWindow,TimerHdl)); } @@ -478,7 +479,7 @@ SfxFloatingWindow::SfxFloatingWindow( SfxBindings *pBindinx, if ( pBindinx ) pImp->StartListening( *pBindinx ); - pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxFloatingWindow,TimerHdl)); } diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx index f7367ed0fbef..d7b685c9c476 100644 --- a/sfx2/source/dialog/dockwin.cxx +++ b/sfx2/source/dialog/dockwin.cxx @@ -23,6 +23,7 @@ #include <vcl/svapp.hxx> #include <vcl/timer.hxx> +#include <vcl/idle.hxx> #include <rtl/instance.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <comphelper/processfactory.hxx> @@ -888,7 +889,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW, pImp->nPos = pImp->nDockPos = 0; pImp->bNewLine = false; pImp->SetLastAlignment(SFX_ALIGN_NOALIGNMENT); - pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl)); } @@ -939,7 +940,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW, pImp->nPos = pImp->nDockPos = 0; pImp->bNewLine = false; pImp->SetLastAlignment(SFX_ALIGN_NOALIGNMENT); - pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl)); } @@ -987,7 +988,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW, pImp->nPos = pImp->nDockPos = 0; pImp->bNewLine = false; pImp->SetLastAlignment(SFX_ALIGN_NOALIGNMENT); - pImp->aMoveIdle.SetPriority(VCL_IDLE_PRIORITY_RESIZE); + pImp->aMoveIdle.SetPriority(IdlePriority::VCL_IDLE_PRIORITY_RESIZE); pImp->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl)); } |