diff options
45 files changed, 71 insertions, 84 deletions
diff --git a/dbaccess/source/ui/control/RelationControl.cxx b/dbaccess/source/ui/control/RelationControl.cxx index 4988943f8af0..cfb56b67c323 100644 --- a/dbaccess/source/ui/control/RelationControl.cxx +++ b/dbaccess/source/ui/control/RelationControl.cxx @@ -193,9 +193,9 @@ namespace dbaui bool ORelationControl::PreNotify(NotifyEvent& rNEvt) { if (rNEvt.GetType() == MouseNotifyEvent::LOSEFOCUS && !HasChildPathFocus() ) - PostUserEvent(LINK(this, ORelationControl, AsynchDeactivate)); + PostUserEvent(LINK(this, ORelationControl, AsynchDeactivate), NULL, true); else if (rNEvt.GetType() == MouseNotifyEvent::GETFOCUS) - PostUserEvent(LINK(this, ORelationControl, AsynchActivate)); + PostUserEvent(LINK(this, ORelationControl, AsynchActivate), NULL, true); return EditBrowseBox::PreNotify(rNEvt); } diff --git a/dbaccess/source/ui/control/TableGrantCtrl.cxx b/dbaccess/source/ui/control/TableGrantCtrl.cxx index e370a91f4cb3..a23925ae254d 100644 --- a/dbaccess/source/ui/control/TableGrantCtrl.cxx +++ b/dbaccess/source/ui/control/TableGrantCtrl.cxx @@ -156,13 +156,13 @@ bool OTableGrantControl::PreNotify(NotifyEvent& rNEvt) { if (m_nDeactivateEvent) Application::RemoveUserEvent(m_nDeactivateEvent); - m_nDeactivateEvent = Application::PostUserEvent(LINK(this, OTableGrantControl, AsynchDeactivate)); + m_nDeactivateEvent = Application::PostUserEvent(LINK(this, OTableGrantControl, AsynchDeactivate), NULL, true); } if (rNEvt.GetType() == MouseNotifyEvent::GETFOCUS) { if (m_nDeactivateEvent) Application::RemoveUserEvent(m_nDeactivateEvent); - m_nDeactivateEvent = Application::PostUserEvent(LINK(this, OTableGrantControl, AsynchActivate)); + m_nDeactivateEvent = Application::PostUserEvent(LINK(this, OTableGrantControl, AsynchActivate), NULL, true); } return EditBrowseBox::PreNotify(rNEvt); } diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx index 13a5565a55b6..d8346df0259f 100644 --- a/dbaccess/source/ui/control/dbtreelistbox.cxx +++ b/dbaccess/source/ui/control/dbtreelistbox.cxx @@ -133,7 +133,7 @@ void DBTreeListBox::RequestingChildren( SvTreeListEntry* pParent ) // an error occurred. The method calling us will reset the entry flags, so it can't be expanded again. // But we want that the user may do a second try (i.e. because he misstypes a password in this try), so // we have to reset these flags controlling the expand ability - PostUserEvent(LINK(this, DBTreeListBox, OnResetEntry), pParent); + PostUserEvent(LINK(this, DBTreeListBox, OnResetEntry), pParent, true); } } } diff --git a/dbaccess/source/ui/dlg/directsql.cxx b/dbaccess/source/ui/dlg/directsql.cxx index eddc0949f2cf..190d4a71c8d0 100644 --- a/dbaccess/source/ui/dlg/directsql.cxx +++ b/dbaccess/source/ui/dlg/directsql.cxx @@ -110,7 +110,7 @@ namespace dbaui aError->Execute(); } - PostUserEvent(LINK(this, DirectSQLDialog, OnClose)); + PostUserEvent(LINK(this, DirectSQLDialog, OnClose), NULL, true); } sal_Int32 DirectSQLDialog::getHistorySize() const diff --git a/dbaccess/source/ui/dlg/indexdialog.cxx b/dbaccess/source/ui/dlg/indexdialog.cxx index 7abbb17ef6bb..72456c0d17e7 100644 --- a/dbaccess/source/ui/dlg/indexdialog.cxx +++ b/dbaccess/source/ui/dlg/indexdialog.cxx @@ -631,7 +631,7 @@ namespace dbaui updateToolbox(); m_bEditAgain = true; - PostUserEvent(LINK(this, DbaIndexDialog, OnEditIndexAgain), _pEntry); + PostUserEvent(LINK(this, DbaIndexDialog, OnEditIndexAgain), _pEntry, true); return 0L; } diff --git a/dbaccess/source/ui/querydesign/TableWindowListBox.cxx b/dbaccess/source/ui/querydesign/TableWindowListBox.cxx index 4db24a60cec6..173d85f0366c 100644 --- a/dbaccess/source/ui/querydesign/TableWindowListBox.cxx +++ b/dbaccess/source/ui/querydesign/TableWindowListBox.cxx @@ -63,7 +63,7 @@ void OTableWindowListBox::dragFinished( ) // second look for ui activities which should happen after d&d if (m_nUiEvent) Application::RemoveUserEvent(m_nUiEvent); - m_nUiEvent = Application::PostUserEvent(LINK(this, OTableWindowListBox, LookForUiHdl)); + m_nUiEvent = Application::PostUserEvent(LINK(this, OTableWindowListBox, LookForUiHdl), NULL, true); } OTableWindowListBox::~OTableWindowListBox() @@ -311,7 +311,7 @@ sal_Int8 OTableWindowListBox::ExecuteDrop( const ExecuteDropEvent& _rEvt ) if (m_nDropEvent) Application::RemoveUserEvent(m_nDropEvent); - m_nDropEvent = Application::PostUserEvent(LINK(this, OTableWindowListBox, DropHdl)); + m_nDropEvent = Application::PostUserEvent(LINK(this, OTableWindowListBox, DropHdl), NULL, true); return DND_ACTION_LINK; } diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx index cc134b2872cc..eb0c16fb4d3c 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.cxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx @@ -665,7 +665,7 @@ void OTableEditorCtrl::CellModified( long nRow, sal_uInt16 nColId ) else pActRow->SetFieldType( GetView()->getController().getTypeInfoFallBack() ); - nInvalidateTypeEvent = Application::PostUserEvent( LINK(this, OTableEditorCtrl, InvalidateFieldType) ); + nInvalidateTypeEvent = Application::PostUserEvent( LINK(this, OTableEditorCtrl, InvalidateFieldType), NULL, true ); pActFieldDescr = pActRow->GetActFieldDescr(); pDescrWin->DisplayData( pActFieldDescr ); GetUndoManager().AddUndoAction( new OTableEditorTypeSelUndoAct(this, nRow, nColId+1, TOTypeInfoSP()) ); @@ -1222,7 +1222,7 @@ void OTableEditorCtrl::cut() { if (nCutEvent) Application::RemoveUserEvent(nCutEvent); - nCutEvent = Application::PostUserEvent(LINK(this, OTableEditorCtrl, DelayedCut)); + nCutEvent = Application::PostUserEvent(LINK(this, OTableEditorCtrl, DelayedCut), NULL, true); } } @@ -1245,7 +1245,7 @@ void OTableEditorCtrl::paste() { if( nPasteEvent ) Application::RemoveUserEvent( nPasteEvent ); - nPasteEvent = Application::PostUserEvent( LINK(this, OTableEditorCtrl, DelayedPaste) ); + nPasteEvent = Application::PostUserEvent( LINK(this, OTableEditorCtrl, DelayedPaste), NULL, true ); } else if(m_eChildFocus == NAME) { @@ -1433,12 +1433,12 @@ void OTableEditorCtrl::Command(const CommandEvent& rEvt) case SID_DELETE: if( nDeleteEvent ) Application::RemoveUserEvent( nDeleteEvent ); - nDeleteEvent = Application::PostUserEvent( LINK(this, OTableEditorCtrl, DelayedDelete) ); + nDeleteEvent = Application::PostUserEvent( LINK(this, OTableEditorCtrl, DelayedDelete), NULL, true ); break; case SID_TABLEDESIGN_INSERTROWS: if( nInsNewRowsEvent ) Application::RemoveUserEvent( nInsNewRowsEvent ); - nInsNewRowsEvent = Application::PostUserEvent( LINK(this, OTableEditorCtrl, DelayedInsNewRows) ); + nInsNewRowsEvent = Application::PostUserEvent( LINK(this, OTableEditorCtrl, DelayedInsNewRows), NULL, true ); break; case SID_TABLEDESIGN_TABED_PRIMARYKEY: SetPrimaryKey( !IsPrimaryKey() ); diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx index 010229251335..92b802fc4fdc 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx @@ -659,12 +659,12 @@ bool DialogHelper::installForAllUsers( bool &bInstallForAll ) const return true; } -void DialogHelper::PostUserEvent( const Link<>& rLink, void* pCaller ) +void DialogHelper::PostUserEvent( const Link<>& rLink, void* pCaller, bool bReferenceLink ) { if ( m_nEventID ) Application::RemoveUserEvent( m_nEventID ); - m_nEventID = Application::PostUserEvent( rLink, pCaller ); + m_nEventID = Application::PostUserEvent( rLink, pCaller, bReferenceLink ); } // ExtMgrDialog @@ -1020,7 +1020,7 @@ void ExtMgrDialog::showProgress( bool _bStart ) OSL_TRACE( "showProgress stop!" ); } - DialogHelper::PostUserEvent( LINK( this, ExtMgrDialog, startProgress ), reinterpret_cast<void*>(bStart) ); + DialogHelper::PostUserEvent( LINK( this, ExtMgrDialog, startProgress ), reinterpret_cast<void*>(bStart), true ); } @@ -1342,7 +1342,7 @@ void UpdateRequiredDialog::showProgress( bool _bStart ) OSL_TRACE( "showProgress stop!" ); } - DialogHelper::PostUserEvent( LINK( this, UpdateRequiredDialog, startProgress ), reinterpret_cast<void*>(bStart) ); + DialogHelper::PostUserEvent( LINK( this, UpdateRequiredDialog, startProgress ), reinterpret_cast<void*>(bStart), true ); } diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.hxx b/desktop/source/deployment/gui/dp_gui_dialog2.hxx index 46a0c9e3f448..6e8037f42ab2 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.hxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.hxx @@ -66,7 +66,7 @@ public: void openWebBrowser( const OUString & sURL, const OUString & sTitle ) const; Dialog* getWindow() const { return m_pVCLWindow; }; - void PostUserEvent( const Link<>& rLink, void* pCaller ); + void PostUserEvent( const Link<>& rLink, void* pCaller, bool bReferenceLink = false ); void clearEventID() { m_nEventID = 0; } virtual void showProgress( bool bStart ) = 0; diff --git a/extensions/source/bibliography/bibview.cxx b/extensions/source/bibliography/bibview.cxx index 9e62d154ec1b..d1a8b95642de 100644 --- a/extensions/source/bibliography/bibview.cxx +++ b/extensions/source/bibliography/bibview.cxx @@ -153,7 +153,7 @@ namespace bib } if(bExecute) { - Application::PostUserEvent( LINK( this, BibView, CallMappingHdl ) ); + Application::PostUserEvent( LINK( this, BibView, CallMappingHdl ), NULL, true ); } } } diff --git a/extensions/source/propctrlr/formlinkdialog.cxx b/extensions/source/propctrlr/formlinkdialog.cxx index 3f02bd3a0b0c..7101fe6fee12 100644 --- a/extensions/source/propctrlr/formlinkdialog.cxx +++ b/extensions/source/propctrlr/formlinkdialog.cxx @@ -195,7 +195,7 @@ namespace pcr m_aRow3->SetLinkChangeHandler( LINK( this, FormLinkDialog, OnFieldChanged ) ); m_aRow4->SetLinkChangeHandler( LINK( this, FormLinkDialog, OnFieldChanged ) ); - PostUserEvent( LINK( this, FormLinkDialog, OnInitialize ) ); + PostUserEvent( LINK( this, FormLinkDialog, OnInitialize ), NULL, true ); updateOkButton(); } diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx index 7f3e6f7b3b16..c620f383fb32 100644 --- a/formula/source/ui/dlg/funcutl.cxx +++ b/formula/source/ui/dlg/funcutl.cxx @@ -422,7 +422,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt ) else { nResult=Control::PreNotify(rNEvt); - Application::PostUserEvent( LINK( this, EditBox, ChangedHdl ) ); + Application::PostUserEvent( LINK( this, EditBox, ChangedHdl ), NULL, true ); } } @@ -433,7 +433,7 @@ bool EditBox::PreNotify( NotifyEvent& rNEvt ) if(nSwitch==MouseNotifyEvent::MOUSEBUTTONDOWN || nSwitch==MouseNotifyEvent::MOUSEBUTTONUP) { bMouseFlag=true; - Application::PostUserEvent( LINK( this, EditBox, ChangedHdl ) ); + Application::PostUserEvent( LINK( this, EditBox, ChangedHdl ), NULL, true ); } } return nResult; diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx index f272491c3b87..5eb045690386 100644 --- a/reportdesign/source/ui/dlg/GroupsSorting.cxx +++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx @@ -748,7 +748,7 @@ void OFieldExpressionControl::Command(const CommandEvent& rEvt) case SID_DELETE: if( m_nDeleteEvent ) Application::RemoveUserEvent( m_nDeleteEvent ); - m_nDeleteEvent = Application::PostUserEvent( LINK(this, OFieldExpressionControl, DelayedDelete) ); + m_nDeleteEvent = Application::PostUserEvent( LINK(this, OFieldExpressionControl, DelayedDelete), NULL, true ); break; default: break; @@ -855,7 +855,7 @@ void OFieldExpressionControl::paste() { if( m_nPasteEvent ) Application::RemoveUserEvent( m_nPasteEvent ); - m_nPasteEvent = Application::PostUserEvent( LINK(this, OFieldExpressionControl, DelayedPaste) ); + m_nPasteEvent = Application::PostUserEvent( LINK(this, OFieldExpressionControl, DelayedPaste), NULL, true ); } } @@ -1166,7 +1166,7 @@ IMPL_LINK_NOARG_TYPED( OGroupsSortingDialog, OnFormatAction, ToolBox*, void ) } if ( nCommand == m_nDeleteId ) { - Application::PostUserEvent( LINK(m_pFieldExpression, OFieldExpressionControl, DelayedDelete) ); + Application::PostUserEvent( LINK(m_pFieldExpression, OFieldExpressionControl, DelayedDelete), NULL, true ); } else { diff --git a/reportdesign/source/ui/report/propbrw.cxx b/reportdesign/source/ui/report/propbrw.cxx index ba805f1163ee..6706c74cfe85 100644 --- a/reportdesign/source/ui/report/propbrw.cxx +++ b/reportdesign/source/ui/report/propbrw.cxx @@ -487,7 +487,7 @@ void PropBrw::Update( OSectionView* pNewView ) if ( m_bInitialStateChange ) { // if we're just newly created, we want to have the focus - PostUserEvent( LINK( this, PropBrw, OnAsyncGetFocus ) ); + PostUserEvent( LINK( this, PropBrw, OnAsyncGetFocus ), NULL, true ); m_bInitialStateChange = false; // and additionally, we want to show the page which was active during // our previous incarnation diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx index 4027ff79448e..37ec636a2bb0 100644 --- a/sc/source/ui/condformat/condformatdlg.cxx +++ b/sc/source/ui/condformat/condformatdlg.cxx @@ -293,7 +293,7 @@ IMPL_LINK(ScCondFormatList, TypeListHdl, ListBox*, pBox) //If we call maEntries.replace here then the pBox will be deleted before it //has finished Select and will crash on accessing its deleted this. So Post //to do the real work after the Select has completed - Application::PostUserEvent(LINK(this, ScCondFormatList, AfterTypeListHdl), pBox); + Application::PostUserEvent(LINK(this, ScCondFormatList, AfterTypeListHdl), pBox, true); return 0; } diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index e6f607a97767..571dfd63a8bb 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -573,7 +573,7 @@ void ScContentTree::Command( const CommandEvent& rCEvt ) // den StarView MouseMove-Handler, der Command() aufruft, umbringen. // Deshalb Drag&Drop asynchron: - Application::PostUserEvent( LINK( this, ScContentTree, ExecDragHdl ) ); + Application::PostUserEvent( LINK( this, ScContentTree, ExecDragHdl ), NULL, true ); bDone = true; break; diff --git a/sc/source/ui/pagedlg/tphf.cxx b/sc/source/ui/pagedlg/tphf.cxx index 70a5efcdcfbb..cf1918e2403e 100644 --- a/sc/source/ui/pagedlg/tphf.cxx +++ b/sc/source/ui/pagedlg/tphf.cxx @@ -165,7 +165,7 @@ IMPL_LINK_NOARG(ScHFPage, BtnHdl) // the GrabFocus from the Edit-Dialog under OS/2 doesn't work.(Bug #41805#). // With the new StarView, this workaround should be again considered! - Application::PostUserEvent( LINK( this, ScHFPage, HFEditHdl ) ); + Application::PostUserEvent( LINK( this, ScHFPage, HFEditHdl ), NULL, true ); return 0; } diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx index 54c186492a99..020f7400b267 100644 --- a/sc/source/ui/view/preview.cxx +++ b/sc/source/ui/view/preview.cxx @@ -898,7 +898,7 @@ void ScPreview::DoInvalidate() // The Invalidate must come behind asynchronously if (bInGetState) - Application::PostUserEvent( LINK( this, ScPreview, InvalidateHdl ) ); + Application::PostUserEvent( LINK( this, ScPreview, InvalidateHdl ), NULL, true ); else StaticInvalidate(); // Immediately } diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index 15224d50b84e..616533c6e3dd 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -706,7 +706,8 @@ EventListener::firing(const ScriptEvent& evt) throw(RuntimeException, std::excep // needs some logic to check if the event handler is oneway or not // if not oneway then firing_Impl otherwise... as below acquire(); - Application::PostUserEvent( LINK( this, EventListener, OnAsyncScriptEvent ), new ScriptEvent( evt ) ); + Application::PostUserEvent( LINK( this, EventListener, OnAsyncScriptEvent ), + new ScriptEvent( evt ) ); #else firing_Impl( evt ); #endif diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 485f3924c72e..59b9d0f45df8 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -1171,7 +1171,7 @@ void SdPageObjsTLB::StartDrag( sal_Int8 nAction, const Point& rPosPixel) // another document type), but that would kill the StarView MouseMove // Handler which is calling Command(). // For this reason, Drag&Drop is asynchronous. - Application::PostUserEvent( LINK( this, SdPageObjsTLB, ExecDragHdl ) ); + Application::PostUserEvent( LINK( this, SdPageObjsTLB, ExecDragHdl ), NULL, true ); } } diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx index 0165b8b82ba2..0b202ca8c815 100644 --- a/sfx2/source/control/recentdocsviewitem.cxx +++ b/sfx2/source/control/recentdocsviewitem.cxx @@ -219,7 +219,7 @@ void RecentDocsViewItem::OpenDocument() pLoadRecentFile->aTargetURL = aTargetURL; pLoadRecentFile->aArgSeq = aArgsList; - Application::PostUserEvent(LINK(0, RecentDocsView, ExecuteHdl_Impl), pLoadRecentFile); + Application::PostUserEvent(LINK(0, RecentDocsView, ExecuteHdl_Impl), pLoadRecentFile, true); } } diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 43a186a620ce..833a8afedae7 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -269,7 +269,7 @@ sal_Int8 DropListBox_Impl::ExecuteDrop( const ExecuteDropEvent& rEvt ) { if ( aDesc.maClassName == pDocShell->GetFactory().GetClassId() ) { - PostUserEvent( LINK( this, DropListBox_Impl, OnAsyncExecuteDrop ), 0 ); + PostUserEvent( LINK( this, DropListBox_Impl, OnAsyncExecuteDrop ), 0, true ); bFormatFound = true; nRet = rEvt.mnAction; diff --git a/svtools/source/brwbox/editbrowsebox.cxx b/svtools/source/brwbox/editbrowsebox.cxx index ba465af81899..56155ddce018 100644 --- a/svtools/source/brwbox/editbrowsebox.cxx +++ b/svtools/source/brwbox/editbrowsebox.cxx @@ -1072,7 +1072,7 @@ namespace svt // release the controller (asynchronously) if (nEndEvent) Application::RemoveUserEvent(nEndEvent); - nEndEvent = Application::PostUserEvent(LINK(this,EditBrowseBox,EndEditHdl)); + nEndEvent = Application::PostUserEvent(LINK(this,EditBrowseBox,EndEditHdl), NULL, true); } } @@ -1106,7 +1106,7 @@ namespace svt { if (nCellModifiedEvent) Application::RemoveUserEvent(nCellModifiedEvent); - nCellModifiedEvent = Application::PostUserEvent(LINK(this,EditBrowseBox,CellModifiedHdl)); + nCellModifiedEvent = Application::PostUserEvent(LINK(this,EditBrowseBox,CellModifiedHdl), NULL, true); return 0; } @@ -1293,7 +1293,7 @@ namespace svt Application::RemoveUserEvent(nStartEvent); m_pFocusWhileRequest = Application::GetFocusWindow(); - nStartEvent = Application::PostUserEvent(LINK(this,EditBrowseBox,StartEditHdl)); + nStartEvent = Application::PostUserEvent(LINK(this,EditBrowseBox,StartEditHdl), NULL, true); } diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index 44e3096b2ab2..8704ab41cd66 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -1377,7 +1377,7 @@ void SvxIconChoiceCtrl_Impl::Resize() if ( ! nUserEventAdjustScrBars ) nUserEventAdjustScrBars = Application::PostUserEvent( LINK( this, SvxIconChoiceCtrl_Impl, UserEventHdl), - EVENTID_ADJUST_SCROLLBARS); + EVENTID_ADJUST_SCROLLBARS); VisRectChanged(); } @@ -2080,7 +2080,7 @@ void SvxIconChoiceCtrl_Impl::SetCursor( SvxIconChoiceCtrlEntry* pEntry, bool bSy if( !nUserEventShowCursor ) nUserEventShowCursor = Application::PostUserEvent( LINK( this, SvxIconChoiceCtrl_Impl, UserEventHdl), - EVENTID_SHOW_CURSOR ); + EVENTID_SHOW_CURSOR ); } } } diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 9431266717df..56f9cbae9055 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -902,7 +902,8 @@ void SvImpLBox::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect aVerSBar->SetThumbPos( 0 ); StopUserEvent(); ShowCursor(true); - nCurUserEvent = Application::PostUserEvent(LINK(this, SvImpLBox, MyUserEvent), reinterpret_cast<void*>(1)); + nCurUserEvent = Application::PostUserEvent(LINK(this, SvImpLBox, MyUserEvent), + reinterpret_cast<void*>(1)); return; } } diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index 83c78b691832..0e68c79c57fe 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -1483,7 +1483,7 @@ void Ruler::ImplUpdate( bool bMustCalc ) { mnUpdateFlags |= RULER_UPDATE_DRAW; if (!mnUpdateEvtId) - mnUpdateEvtId = Application::PostUserEvent(LINK( this, Ruler, ImplUpdateHdl), NULL ); + mnUpdateEvtId = Application::PostUserEvent(LINK( this, Ruler, ImplUpdateHdl), NULL, true); } } @@ -2196,7 +2196,7 @@ void Ruler::Resize() Invalidate(); mnUpdateFlags |= RULER_UPDATE_LINES; if ( !mnUpdateEvtId ) - mnUpdateEvtId = Application::PostUserEvent( LINK( this, Ruler, ImplUpdateHdl ), NULL ); + mnUpdateEvtId = Application::PostUserEvent( LINK( this, Ruler, ImplUpdateHdl ), NULL, true ); } mbFormat = true; @@ -2340,7 +2340,7 @@ void Ruler::Activate() // update positionlies - draw is delayed mnUpdateFlags |= RULER_UPDATE_LINES; if ( !mnUpdateEvtId ) - mnUpdateEvtId = Application::PostUserEvent( LINK( this, Ruler, ImplUpdateHdl ), NULL ); + mnUpdateEvtId = Application::PostUserEvent( LINK( this, Ruler, ImplUpdateHdl ), NULL, true ); } void Ruler::Deactivate() diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index a0a0fe38cd31..fb736eb3582b 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -427,7 +427,7 @@ bool TabBarEdit::PreNotify( NotifyEvent& rNEvt ) { if ( !mbPostEvt ) { - if ( PostUserEvent( LINK( this, TabBarEdit, ImplEndEditHdl ), reinterpret_cast<void*>(sal_False) ) ) + if ( PostUserEvent( LINK( this, TabBarEdit, ImplEndEditHdl ), reinterpret_cast<void*>(sal_False), true ) ) mbPostEvt = true; } return true; @@ -436,7 +436,7 @@ bool TabBarEdit::PreNotify( NotifyEvent& rNEvt ) { if ( !mbPostEvt ) { - if ( PostUserEvent( LINK( this, TabBarEdit, ImplEndEditHdl ), reinterpret_cast<void*>(sal_True) ) ) + if ( PostUserEvent( LINK( this, TabBarEdit, ImplEndEditHdl ), reinterpret_cast<void*>(sal_True), true ) ) mbPostEvt = true; } return true; @@ -451,7 +451,7 @@ void TabBarEdit::LoseFocus() { if ( !mbPostEvt ) { - if ( PostUserEvent( LINK( this, TabBarEdit, ImplEndEditHdl ), reinterpret_cast<void*>(sal_False) ) ) + if ( PostUserEvent( LINK( this, TabBarEdit, ImplEndEditHdl ), reinterpret_cast<void*>(sal_False), true ) ) mbPostEvt = true; } diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index fdcb5251dea0..88f079a38274 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -655,7 +655,7 @@ void AssignmentPersistentData::ImplCommit() for (sal_Int32 i = 0; i<nAdjustedTokenCount; ++i) m_pImpl->aLogicalFieldNames.push_back(sLogicalFieldNames.getToken(i, ';')); - PostUserEvent(LINK(this, AddressBookSourceDialog, OnDelayedInitialize)); + PostUserEvent(LINK(this, AddressBookSourceDialog, OnDelayedInitialize), NULL, true); // so the dialog will at least show up before we do the loading of the // configuration data and the (maybe time consuming) analysis of the data source/table to select diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx index 71290f056130..413bae057c39 100644 --- a/svx/source/fmcomp/fmgridcl.cxx +++ b/svx/source/fmcomp/fmgridcl.cxx @@ -363,7 +363,7 @@ sal_Int8 FmGridHeader::ExecuteDrop( const ExecuteDropEvent& _rEvt ) m_pImpl->xDroppedStatement = xStatement; m_pImpl->xDroppedResultSet = xResultSet; - PostUserEvent(LINK(this, FmGridHeader, OnAsyncExecuteDrop)); + PostUserEvent(LINK(this, FmGridHeader, OnAsyncExecuteDrop), NULL, true); } catch (Exception&) { diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index df26ebbc65f6..76920e17650c 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -2679,7 +2679,7 @@ void DbGridControl::PostExecuteRowContextMenu(sal_uInt16 /*nRow*/, const PopupMe // delete asynchronously if (m_nDeleteEvent) Application::RemoveUserEvent(m_nDeleteEvent); - m_nDeleteEvent = Application::PostUserEvent(LINK(this,DbGridControl,OnDelete)); + m_nDeleteEvent = Application::PostUserEvent(LINK(this,DbGridControl,OnDelete), NULL, true); break; case SID_FM_RECORD_UNDO: Undo(); @@ -3258,7 +3258,7 @@ bool DbGridControl::PreNotify(NotifyEvent& rEvt) // delete asynchronously if (m_nDeleteEvent) Application::RemoveUserEvent(m_nDeleteEvent); - m_nDeleteEvent = Application::PostUserEvent(LINK(this,DbGridControl,OnDelete)); + m_nDeleteEvent = Application::PostUserEvent(LINK(this,DbGridControl,OnDelete), NULL, true); return true; } } @@ -3434,7 +3434,7 @@ void DbGridControl::implAdjustInSolarThread(bool _bRows) ::osl::MutexGuard aGuard(m_aAdjustSafety); if (::osl::Thread::getCurrentIdentifier() != Application::GetMainThreadIdentifier()) { - m_nAsynAdjustEvent = PostUserEvent(LINK(this, DbGridControl, OnAsyncAdjust), reinterpret_cast< void* >( _bRows )); + m_nAsynAdjustEvent = PostUserEvent(LINK(this, DbGridControl, OnAsyncAdjust), reinterpret_cast< void* >( _bRows ), true); m_bPendingAdjustRows = _bRows; if (_bRows) SAL_INFO("svx.fmcomp", "posting an AdjustRows"); diff --git a/svx/source/form/delayedevent.cxx b/svx/source/form/delayedevent.cxx index f06fc1d0c3ea..1063d0fc526e 100644 --- a/svx/source/form/delayedevent.cxx +++ b/svx/source/form/delayedevent.cxx @@ -17,20 +17,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include "delayedevent.hxx" - #include <vcl/svapp.hxx> - namespace svxform { - - - - //= DelayedEvent - - void DelayedEvent::Call( void* _pArg ) { CancelPendingCall(); @@ -39,7 +30,6 @@ namespace svxform m_nEventId = Application::PostUserEvent( LINK( this, DelayedEvent, OnCall ), _pArg ); } - void DelayedEvent::CancelPendingCall() { if ( m_nEventId ) @@ -47,15 +37,11 @@ namespace svxform m_nEventId = 0; } - IMPL_LINK( DelayedEvent, OnCall, void*, _pArg ) { m_nEventId = 0; return m_aHandler.Call( _pArg ); } - - } - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx index 98e1f45a3277..0ac78dfb6d07 100644 --- a/svx/source/form/filtnav.cxx +++ b/svx/source/form/filtnav.cxx @@ -1212,7 +1212,7 @@ bool FmFilterNavigator::EditedEntry( SvTreeListEntry* pEntry, const OUString& rN if (aText.isEmpty()) { // deleting the entry asynchron - PostUserEvent(LINK(this, FmFilterNavigator, OnRemove), pEntry); + PostUserEvent(LINK(this, FmFilterNavigator, OnRemove), pEntry, true); } else { diff --git a/svx/source/form/fmPropBrw.cxx b/svx/source/form/fmPropBrw.cxx index 3d86527ba7f8..427a16a9c6aa 100644 --- a/svx/source/form/fmPropBrw.cxx +++ b/svx/source/form/fmPropBrw.cxx @@ -648,7 +648,7 @@ void FmPropBrw::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPool if ( m_bInitialStateChange ) { // if we're just newly created, we want to have the focus - PostUserEvent( LINK( this, FmPropBrw, OnAsyncGetFocus ) ); + PostUserEvent( LINK( this, FmPropBrw, OnAsyncGetFocus ), NULL, true ); // and additionally, we want to show the page which was active during // our previous incarnation diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx index 938c166b6156..95152e42cfb9 100644 --- a/svx/source/form/navigatortree.cxx +++ b/svx/source/form/navigatortree.cxx @@ -1473,7 +1473,7 @@ namespace svxform if( !bRes ) { m_pEditEntry = pEntry; - nEditEvent = Application::PostUserEvent( LINK(this, NavigatorTree, OnEdit) ); + nEditEvent = Application::PostUserEvent( LINK(this, NavigatorTree, OnEdit), NULL, true ); } else SetCursor(pEntry, true); diff --git a/svx/source/gallery2/galbrws1.cxx b/svx/source/gallery2/galbrws1.cxx index 854ce84c2f3b..24c20e4a9cbc 100644 --- a/svx/source/gallery2/galbrws1.cxx +++ b/svx/source/gallery2/galbrws1.cxx @@ -324,7 +324,7 @@ void GalleryBrowser1::ImplEndGalleryThemeProperties( VclAbstractDialog2* pDialog } // destroy mpThemeProps asynchronously - Application::PostUserEvent( LINK( this, GalleryBrowser1, DestroyThemePropertiesDlgHdl ), pDialog ); + Application::PostUserEvent( LINK( this, GalleryBrowser1, DestroyThemePropertiesDlgHdl ), pDialog, true ); } IMPL_LINK( GalleryBrowser1, EndNewThemePropertiesDlgHdl, VclAbstractDialog2*, pDialog ) @@ -509,7 +509,7 @@ void GalleryBrowser1::Notify( SfxBroadcaster&, const SfxHint& rHint ) void GalleryBrowser1::ShowContextMenu() { - Application::PostUserEvent( LINK( this, GalleryBrowser1, ShowContextMenuHdl ), this ); + Application::PostUserEvent( LINK( this, GalleryBrowser1, ShowContextMenuHdl ), this, true ); } bool GalleryBrowser1::KeyInput( const KeyEvent& rKEvt, vcl::Window* pWindow ) diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx index 0796f53e7b0d..54f7260d9af0 100644 --- a/svx/source/tbxctrls/colrctrl.cxx +++ b/svx/source/tbxctrls/colrctrl.cxx @@ -150,7 +150,7 @@ void SvxColorValueSet_docking::Command(const CommandEvent& rCEvt) void SvxColorValueSet_docking::StartDrag( sal_Int8 , const Point& ) { - Application::PostUserEvent(LINK(this, SvxColorValueSet_docking, ExecDragHdl)); + Application::PostUserEvent(LINK(this, SvxColorValueSet_docking, ExecDragHdl), NULL, true); } void SvxColorValueSet_docking::DoDrag() diff --git a/sw/source/ui/config/mailconfigpage.cxx b/sw/source/ui/config/mailconfigpage.cxx index da580302fe18..3c16c99f512e 100644 --- a/sw/source/ui/config/mailconfigpage.cxx +++ b/sw/source/ui/config/mailconfigpage.cxx @@ -254,7 +254,7 @@ SwTestAccountSettingsDialog::SwTestAccountSettingsDialog(SwMailConfigPage* pPare m_pStopPB->SetClickHdl(LINK(this, SwTestAccountSettingsDialog, StopHdl)); - Application::PostUserEvent( LINK( this, SwTestAccountSettingsDialog, TestHdl ), this ); + Application::PostUserEvent( LINK( this, SwTestAccountSettingsDialog, TestHdl ), this, true ); } SwTestAccountSettingsDialog::~SwTestAccountSettingsDialog() diff --git a/sw/source/ui/dbui/addresslistdialog.cxx b/sw/source/ui/dbui/addresslistdialog.cxx index 550b626e5bf8..0ca561c54bf5 100644 --- a/sw/source/ui/dbui/addresslistdialog.cxx +++ b/sw/source/ui/dbui/addresslistdialog.cxx @@ -475,7 +475,7 @@ IMPL_LINK_NOARG(SwAddressListDialog, ListBoxSelectHdl_Impl) { SvTreeListEntry* pSelect = m_pListLB->FirstSelected(); Application::PostUserEvent( LINK( this, SwAddressListDialog, - StaticListBoxSelectHdl_Impl ), pSelect ); + StaticListBoxSelectHdl_Impl ), pSelect, true ); return 0; } diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx index 84b62ba2344c..7819538d730c 100644 --- a/sw/source/ui/dbui/mmoutputtypepage.cxx +++ b/sw/source/ui/dbui/mmoutputtypepage.cxx @@ -540,7 +540,7 @@ void SwSendMailDialog::IterateMails() void SwSendMailDialog::ShowDialog() { Application::PostUserEvent( LINK( this, SwSendMailDialog, - StartSendMails ), this ); + StartSendMails ), this, true ); ModelessDialog::Show(); } @@ -564,7 +564,7 @@ void SwSendMailDialog::DocumentSent( uno::Reference< mail::XMailMessage> xMessag m_pImpl->xMailDispatcher.is() && m_pImpl->xMailDispatcher->isStarted()) { Application::PostUserEvent( LINK( this, SwSendMailDialog, - StopSendMails ), this ); + StopSendMails ), this, true ); } Image aInsertImg = m_aImageList.GetImage( bResult ? FN_FORMULA_APPLY : FN_FORMULA_CANCEL ); diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index 0c9b091cbe37..9178fd23692d 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -2582,7 +2582,7 @@ bool SwTransferable::_PasteFileName( TransferableDataHelper& rData, pSect->SetProtectFlag( true ); Application::PostUserEvent( LINK( &rSh, SwWrtShell, - InsertRegionDialog ), pSect ); + InsertRegionDialog ), pSect ); nRet = true; } else if( SW_PASTESDR_SETATTR == nAction || diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx index e6cf4393e8e6..6b8149650964 100644 --- a/sw/source/uibase/docvw/SidebarWin.cxx +++ b/sw/source/uibase/docvw/SidebarWin.cxx @@ -1027,7 +1027,7 @@ void SwSidebarWin::DeactivatePostIt() if ( !IsProtected() && Engine()->GetEditEngine().GetText().isEmpty() ) { - mnEventId = Application::PostUserEvent( LINK( this, SwSidebarWin, DeleteHdl), 0 ); + mnEventId = Application::PostUserEvent( LINK( this, SwSidebarWin, DeleteHdl), 0, true ); } } @@ -1071,7 +1071,7 @@ void SwSidebarWin::ExecuteCommand(sal_uInt16 nSlot) case FN_DELETE_COMMENT: //Delete(); // do not kill the parent of our open popup menu - mnEventId = Application::PostUserEvent( LINK( this, SwSidebarWin, DeleteHdl), 0 ); + mnEventId = Application::PostUserEvent( LINK( this, SwSidebarWin, DeleteHdl), 0, true ); break; case FN_FORMAT_ALL_NOTES: case FN_DELETE_ALL_NOTES: diff --git a/sw/source/uibase/shells/textsh2.cxx b/sw/source/uibase/shells/textsh2.cxx index 0622645c4215..671c9e3b653d 100644 --- a/sw/source/uibase/shells/textsh2.cxx +++ b/sw/source/uibase/shells/textsh2.cxx @@ -155,7 +155,7 @@ void SwTextShell::ExecDB(SfxRequest &rReq) pNew->xConnection = xConnection; Application::PostUserEvent( LINK( this, SwBaseShell, - InsertDBTextHdl ), pNew ); + InsertDBTextHdl ), pNew ); // the pNew will be removed in InsertDBTextHdl !! } } diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx index e068da231e33..e622d5812722 100644 --- a/sw/source/uibase/utlui/glbltree.cxx +++ b/sw/source/uibase/utlui/glbltree.cxx @@ -1179,8 +1179,7 @@ void SwGlobalTree::OpenDoc(const SwGlblDocContent* pCont) { bFound = true; SwGlobalTree::SetShowShell(pCurr); - Application::PostUserEvent( LINK( - this, SwGlobalTree, ShowFrameHdl ) ); + Application::PostUserEvent( LINK( this, SwGlobalTree, ShowFrameHdl ), NULL, true ); pCurr = 0; } else diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index 0872760cff53..c3abce92e64b 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -217,7 +217,7 @@ IMPL_LINK_TYPED( SwNavigationPI, ToolBoxSelectHdl, ToolBox *, pBox, void ) { // #i75416# move the execution of the search to an asynchronously called static link bool* pbNext = new bool( FN_DOWN == nCurrItemId ); - Application::PostUserEvent( LINK(pView, SwView, MoveNavigationHdl), pbNext ); + Application::PostUserEvent( LINK(pView, SwView, MoveNavigationHdl), pbNext, true ); } break; case FN_SHOW_ROOT: diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 063e96f0c8a9..9cf90b560856 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -604,7 +604,7 @@ bool Dialog::Notify( NotifyEvent& rNEvt ) // like e.g. SfxModelessDialog which destroy themselves inside Close() // post this Close asynchronous so we can leave our key handler before // we get destroyed - PostUserEvent( LINK( this, Dialog, ImplAsyncCloseHdl ), this , true); + PostUserEvent( LINK( this, Dialog, ImplAsyncCloseHdl ), this, true); return true; } } |