Kaydet (Commit) ff09ed09 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

INTEGRATION: CWS ab53 (1.26.112); FILE MERGED

2008/06/20 06:47:28 tkr 1.26.112.1: #i47763# synchronous html import
üst ecc7a924
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: htmlform.cxx,v $ * $RCSfile: htmlform.cxx,v $
* $Revision: 1.26 $ * $Revision: 1.27 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -706,6 +706,7 @@ void SwHTMLParser::SetControlSize( const uno::Reference< drawing::XShape >& rSha ...@@ -706,6 +706,7 @@ void SwHTMLParser::SetControlSize( const uno::Reference< drawing::XShape >& rSha
sal_Bool bMinHeight, sal_Bool bMinHeight,
int nToken ) int nToken )
{ {
nToken = 0;
if( !rTextSz.Width() && !rTextSz.Height() && !bMinWidth && !bMinHeight ) if( !rTextSz.Width() && !rTextSz.Height() && !bMinWidth && !bMinHeight )
return; return;
...@@ -721,35 +722,14 @@ void SwHTMLParser::SetControlSize( const uno::Reference< drawing::XShape >& rSha ...@@ -721,35 +722,14 @@ void SwHTMLParser::SetControlSize( const uno::Reference< drawing::XShape >& rSha
// one, no view shell will be created. That for, we have to do that of // one, no view shell will be created. That for, we have to do that of
// our own. This happens if a linked section is inserted or refreshed. // our own. This happens if a linked section is inserted or refreshed.
SwDocShell *pDocSh = pDoc->GetDocShell(); SwDocShell *pDocSh = pDoc->GetDocShell();
if( pDocSh && SFX_CREATE_MODE_INTERNAL == pDocSh->GetCreateMode() ) if( pDocSh )
{ {
SfxViewFrame::CreateViewFrame( *pDocSh, 0, sal_True );
pTempViewFrame = SfxViewFrame::CreateViewFrame( *pDocSh, 0, sal_True );
CallStartAction(); CallStartAction();
pDoc->GetEditShell( &pVSh ); pDoc->GetEditShell( &pVSh );
} }
} }
if( !pVSh )
{
// If there is no view shell by now, but the document is loaded
// asynchronous, the view shell will be created delayed because
// the view was locked during the call to DocumentDetected. If this
// is the case we wait until another call to our DataAvailable
// link, because the SFX calls it if it creates the view.
ASSERT( bDocInitalized, "DocumentDetected nocht nicht augerufen" );
ASSERT( !IsParserWorking() || nEventId,
"Keine ViewShell bei nicht gesetztem DataAvailable-Link" );
if( IsParserWorking() && bDocInitalized && nEventId )
{
pPendStack = new SwPendingStack( nToken, pPendStack );
pPendStack->pData =
new SwHTMLFormPendingStackData_Impl( rShape, rTextSz,
bMinWidth, bMinHeight );
SaveState( nToken );
eState = SVPAR_PENDING;
}
return;
}
uno::Reference< XUnoTunnel> xTunnel( xPropSet, UNO_QUERY ); uno::Reference< XUnoTunnel> xTunnel( xPropSet, UNO_QUERY );
SwXShape *pSwShape = xTunnel.is() ? SwXShape *pSwShape = xTunnel.is() ?
...@@ -768,8 +748,7 @@ void SwHTMLParser::SetControlSize( const uno::Reference< drawing::XShape >& rSha ...@@ -768,8 +748,7 @@ void SwHTMLParser::SetControlSize( const uno::Reference< drawing::XShape >& rSha
ASSERT( pObj, "SdrObject nicht gefunden" ); ASSERT( pObj, "SdrObject nicht gefunden" );
ASSERT( FmFormInventor == pObj->GetObjInventor(), "falscher Inventor" ); ASSERT( FmFormInventor == pObj->GetObjInventor(), "falscher Inventor" );
const SdrView* pDrawView = pVSh->GetDrawView(); const SdrView* pDrawView = pVSh ? pVSh->GetDrawView() : 0;
ASSERT( pDrawView, "DrawView not found" );
SdrUnoObj *pFormObj = PTR_CAST( SdrUnoObj, pObj ); SdrUnoObj *pFormObj = PTR_CAST( SdrUnoObj, pObj );
uno::Reference< awt::XControl > xControl; uno::Reference< awt::XControl > xControl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment