diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2009-12-04 10:11:06 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2009-12-04 10:11:06 +0100 |
commit | 9d2d7e247db83c9f48272929edd3d5d5c22a1f11 (patch) | |
tree | ec28dba07c41e63994f0e1f4e1587a9ca1728c0c /sw/source/ui/app/applab.cxx | |
parent | 957dccd072743e03971aa747f561d506eed1cf8a (diff) |
autorecovery: another client of InsertDocument_Impl died ...
SfxFrame::InsertDocument has been replaced with SfxViewFrame::LoadDocument, which now uses the UNO
loader to load the existing document into a frame, instead of going the direct (non-UNO-, pure-SFX-) way
Diffstat (limited to 'sw/source/ui/app/applab.cxx')
-rw-r--r-- | sw/source/ui/app/applab.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sw/source/ui/app/applab.cxx b/sw/source/ui/app/applab.cxx index 7e04e982d039..1f9f0b8dbfd9 100644 --- a/sw/source/ui/app/applab.cxx +++ b/sw/source/ui/app/applab.cxx @@ -237,14 +237,8 @@ static sal_uInt16 nBCTitleNo = 0; pDocSh->getIDocumentDeviceAccess()->setJobsetup(pPrt->GetJobSetup()); } - const SfxItemSet *pArgs = rReq.GetArgs(); - DBG_ASSERT( pArgs, "no arguments in SfxRequest"); - const SfxPoolItem* pFrameItem = 0; - if(pArgs) - pArgs->GetItemState(SID_DOCFRAME, FALSE, &pFrameItem); - - SfxFrame* pFrame = pFrameItem ? dynamic_cast< const SfxFrameItem& >( *pFrameItem ).GetFrame() : NULL; - SfxViewFrame* pViewFrame = SfxFrame::InsertDocument( *xDocSh, pFrame, 0, true ); + SFX_REQUEST_ARG( rReq, pFrameItem, SfxFrameItem, SID_DOCFRAME, FALSE ); + SfxViewFrame* pViewFrame = SfxViewFrame::LoadDocument( *xDocSh, pFrameItem ); SwView *pNewView = (SwView*) pViewFrame->GetViewShell(); pNewView->AttrChangedNotify( &pNewView->GetWrtShell() );//Damit SelectShell gerufen wird. |