View | Details | Raw Unified | Return to issue 120030
Collapse All | Expand All

(-)sfx2/inc/sfx2/objsh.hxx (+3 lines)
Lines 203-208 Link Here
203
	SfxObjectCreateMode 		eCreateMode;		// Zweck des Objekts
203
	SfxObjectCreateMode 		eCreateMode;		// Zweck des Objekts
204
	sal_Bool					bHasName :1,		// sal_True := bestehendes Objekt, sal_False := es ist ein neues Objekt
204
	sal_Bool					bHasName :1,		// sal_True := bestehendes Objekt, sal_False := es ist ein neues Objekt
205
                                bIsTmp :1;          // temp. Storage
205
                                bIsTmp :1;          // temp. Storage
206
        sal_Bool 		bIsInGenerateThumbnail;	//optimize thumbnail generate and store procedure to improve odt saving performance, i120030
206
207
207
private:
208
private:
208
//#if 0 // _SOLAR__PRIVATE
209
//#if 0 // _SOLAR__PRIVATE
Lines 439-444 Link Here
439
									sal_Bool bIsTemplate,
440
									sal_Bool bIsTemplate,
440
									const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xStream );
441
									const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xStream );
441
442
443
	sal_Bool					IsInGenerateAndStoreThumbnail() const {return bIsInGenerateThumbnail;}//optimize thumbnail generate and store procedure to improve odt saving performance, i120030
444
442
	// Transfer IFace
445
	// Transfer IFace
443
	void                        AbortImport();
446
	void                        AbortImport();
444
	sal_Bool                    IsAbortingImport() const;
447
	sal_Bool                    IsAbortingImport() const;
(-)sfx2/source/doc/objstor.cxx (+4 lines)
Lines 3692-3697 Link Here
3692
                                                    const uno::Reference< embed::XStorage >& xStor )
3692
                                                    const uno::Reference< embed::XStorage >& xStor )
3693
{
3693
{
3694
    RTL_LOGFILE_CONTEXT( aLog, "sfx2 (mv76033) SfxObjectShell::GenerateAndStoreThumbnail" );
3694
    RTL_LOGFILE_CONTEXT( aLog, "sfx2 (mv76033) SfxObjectShell::GenerateAndStoreThumbnail" );
3695
	
3696
    bIsInGenerateThumbnail = sal_True;//optimize thumbnail generate and store procedure to improve odt saving performance, i120030
3695
3697
3696
    sal_Bool bResult = sal_False;
3698
    sal_Bool bResult = sal_False;
3697
3699
Lines 3716-3721 Link Here
3716
    catch( uno::Exception& )
3718
    catch( uno::Exception& )
3717
    {
3719
    {
3718
    }
3720
    }
3721
	
3722
    bIsInGenerateThumbnail = sal_False;//optimize thumbnail generate and store procedure to improve odt saving performance, i120030
3719
3723
3720
    return bResult;
3724
    return bResult;
3721
}
3725
}
(-)sw/source/core/layout/paintfrm.cxx (+14 lines)
Lines 3522-3527 Link Here
3522
3522
3523
void SwFlyFrm::Paint(SwRect const& rRect, SwPrintData const*const) const
3523
void SwFlyFrm::Paint(SwRect const& rRect, SwPrintData const*const) const
3524
{
3524
{
3525
	//begin:optimize thumbnail generate and store procedure to improve odt saving performance, i120030
3526
	ViewShell *pShell = getRootFrm()->GetCurrShell();
3527
	if (pShell && pShell->GetDoc() && pShell->GetDoc()->GetDocShell())
3528
	{
3529
		sal_Bool bInGenerateThumbnail = pShell->GetDoc()->GetDocShell()->IsInGenerateAndStoreThumbnail();
3530
		if (bInGenerateThumbnail)
3531
		{
3532
			SwRect aVisRect = pShell->VisArea();
3533
			if (!aVisRect.IsOver(Frm()))
3534
				return;
3535
		}
3536
	}
3537
	//end:i120030
3538
3525
    //wegen der Ueberlappung von Rahmen und Zeichenobjekten muessen die
3539
    //wegen der Ueberlappung von Rahmen und Zeichenobjekten muessen die
3526
	//Flys ihre Umrandung (und die der Innenliegenden) direkt ausgeben.
3540
	//Flys ihre Umrandung (und die der Innenliegenden) direkt ausgeben.
3527
	//z.B. #33066#
3541
	//z.B. #33066#

Return to issue 120030