From ec273935ab84bd2d12b69bb0486e342fb9a483b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Mon, 16 Jun 2008 12:31:48 +0000 Subject: [PATCH] INTEGRATION: CWS rptchart02 (1.4.4); FILE MERGED 2008/04/16 06:28:10 oj 1.4.4.2: RESYNC: (1.4-1.5); FILE MERGED 2008/03/12 09:45:16 oj 1.4.4.1: impl chart handling --- .../source/core/sdr/ReportDrawPage.cxx | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/reportdesign/source/core/sdr/ReportDrawPage.cxx b/reportdesign/source/core/sdr/ReportDrawPage.cxx index 794eca5180bd..fe003ed8d07e 100644 --- a/reportdesign/source/core/sdr/ReportDrawPage.cxx +++ b/reportdesign/source/core/sdr/ReportDrawPage.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ReportDrawPage.cxx,v $ - * $Revision: 1.5 $ + * $Revision: 1.6 $ * * This file is part of OpenOffice.org. * @@ -35,6 +35,8 @@ #include #include #include +#include + #include #include #include @@ -73,6 +75,7 @@ uno::Reference< drawing::XShape > OReportDrawPage::_CreateShape( SdrObject *pOb if ( xSection.is() ) xFactory.set(xSection->getReportDefinition(),uno::UNO_QUERY); uno::Reference< drawing::XShape > xRet; + uno::Reference< drawing::XShape > xShape; if ( xFactory.is() ) { bool bChangeOrientation = false; @@ -125,7 +128,17 @@ uno::Reference< drawing::XShape > OReportDrawPage::_CreateShape( SdrObject *pOb if ( pObj->ISA(OUnoObject) ) { OUnoObject* pUnoObj = dynamic_cast(pObj); - bChangeOrientation = pUnoObj->getObjectId() == OBJ_DLG_HFIXEDLINE; + bChangeOrientation = pUnoObj->GetObjIdentifier() == OBJ_DLG_HFIXEDLINE; + + SvxShapeControl* pShape = new SvxShapeControl( pObj ); + xShape.set(*pShape,uno::UNO_QUERY); + pShape->setShapeKind(pObj->GetObjIdentifier()); + } + else if ( pObj->ISA(OCustomShape) ) + { + SvxCustomShape* pShape = new SvxCustomShape( pObj ); + xShape.set(*pShape,uno::UNO_QUERY); + pShape->setShapeKind(pObj->GetObjIdentifier()); } else if ( pObj->ISA(SdrOle2Obj) ) { @@ -155,9 +168,14 @@ uno::Reference< drawing::XShape > OReportDrawPage::_CreateShape( SdrObject *pOb awt::Size aSz( aTmp.Width(), aTmp.Height() ); xObj->setVisualAreaSize( nAspect, aSz ); } + SvxOle2Shape* pShape = new SvxOle2Shape( pObj ); + xShape.set(*pShape,uno::UNO_QUERY); + pShape->setShapeKind(pObj->GetObjIdentifier()); + //xShape = new SvxOle2Shape( pOle2Obj ); } - uno::Reference< drawing::XShape > xShape( SvxDrawPage::_CreateShape( pObj ) ); + if ( !xShape.is() ) + xShape.set( SvxDrawPage::_CreateShape( pObj ) ); try {