diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-01-14 10:21:20 +0100 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-06 12:27:05 +0000 |
commit | 826143684d2697a8620373dce18fa5f24332d5cb (patch) | |
tree | 88be6f99b02c8c9fea849c3125b9e23a18be65f9 /sfx2 | |
parent | d8305248f687ffa522b56955508d82d60ad5b8c6 (diff) |
Timer: Adapted all idle includes and enum uses
Change-Id: Id4ef36d6c80ad62306bdbaa7094c2cb0b8ff77da
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/newhelp.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/appl/newhelp.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/dialog/filedlgimpl.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/new.cxx | 3 |
7 files changed, 13 insertions, 10 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx index e5f2ab135b42..743b9dba9e6d 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 95b879438614..4ccf236b2049 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 13b92e2ff3d2..dd4b0173f762 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -1398,9 +1398,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 527354b44e86..d30e1a47d63c 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -984,7 +984,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; @@ -1001,7 +1001,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 cfd8e3ad89bb..b947ca9adecd 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 439ce0822334..015dc3ed437f 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -1481,7 +1481,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 703e7b943105..069796b19180 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); |