diff options
author | Rüdiger Timm <rt@openoffice.org> | 2003-09-19 06:58:55 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2003-09-19 06:58:55 +0000 |
commit | 5f7251607089ab5ee7504e0165e3a65140729810 (patch) | |
tree | 4c947271aca8863f228b6ef18eef76838a3d9caf /sfx2 | |
parent | c27b27b9dbc681d475ee96322311e93eae91c3e8 (diff) |
INTEGRATION: CWS fwkq1 (1.12.210); FILE MERGED
2003/08/22 14:56:13 mba 1.12.210.1: #110843#: execute slot request directly with dispatch arguments
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/request.cxx | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/sfx2/source/control/request.cxx b/sfx2/source/control/request.cxx index bb2e2dee2b5a..3f859acb1ecf 100644 --- a/sfx2/source/control/request.cxx +++ b/sfx2/source/control/request.cxx @@ -2,7 +2,7 @@ // class SfxRequest // // (C) 1996 - 2000 StarDivision GmbH, Hamburg, Germany -// $Author: mba $ $Date: 2002-08-29 12:25:22 $ $Revision: 1.12 $ +// $Author: rt $ $Date: 2003-09-19 07:58:55 $ $Revision: 1.13 $ // $Logfile: T:/sfx2/source/control/request.cxv $ $Workfile: REQUEST.CXX $ //------------------------------------------------------------------*/ @@ -56,6 +56,7 @@ #include "viewfrm.hxx" #include "macro.hxx" #include "objface.hxx" +#include "appuno.hxx" //=================================================================== @@ -248,6 +249,30 @@ SfxRequest::SfxRequest pImp->bUseTarget = FALSE; } +SfxRequest::SfxRequest +( + const SfxSlot* pSlot, // auszuf"uhrende <Slot-Id> + const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& rArgs, + SfxCallMode nMode, // Synch/API/... + SfxItemPool& rPool // ggf. f"ur das SfxItemSet f"ur Parameter +) +: nSlot(pSlot->GetSlotId()), + pArgs(new SfxAllItemSet(rPool)), + pImp( new SfxRequest_Impl(this) ) +{ + DBG_MEMTEST(); + + pImp->bDone = FALSE; + pImp->bIgnored = FALSE; + pImp->SetPool( &rPool ); + pImp->pRetVal = 0; + pImp->pShell = 0; + pImp->pSlot = 0; + pImp->nCallMode = nMode; + pImp->bUseTarget = FALSE; + TransformParameters( nSlot, rArgs, *pArgs, pSlot ); +} + //----------------------------------------------------------------------- SfxRequest::SfxRequest |