Tag: cws_dev300_rptchart02 User: oj Date: 2008-04-29 12:53:55+0000 Modified: dba/reportdesign/source/ui/report/ReportController.cxx
Log: #i88842# create ole object with default size File Changes: Directory: /dba/reportdesign/source/ui/report/ ============================================== File [changed]: ReportController.cxx Url: http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/report/ReportController.cxx?r1=1.12.4.3&r2=1.12.4.4 Delta lines: +8 -2 ------------------- --- ReportController.cxx 2008-04-16 06:30:32+0000 1.12.4.3 +++ ReportController.cxx 2008-04-29 12:53:53+0000 1.12.4.4 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ReportController.cxx,v $ - * $Revision: 1.12.4.3 $ + * $Revision: 1.12.4.4 $ * * This file is part of OpenOffice.org. * @@ -2918,6 +2918,12 @@ pNewControl = SdrObjFactory::MakeNewObject( ReportInventor, _nObjectId, pReportSection->getPage(),m_aReportModel.get() ); xShapeProp.set(pNewControl->getUnoShape(),uno::UNO_QUERY); pReportSection->createDefault(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("diamond")),pNewControl); // TODO: use real custom shape type + } // if ( _nObjectId == OBJ_CUSTOMSHAPE ) + else if ( _nObjectId == OBJ_OLE2 || OBJ_DLG_SUBREPORT == _nObjectId ) + { + pNewControl = SdrObjFactory::MakeNewObject( ReportInventor, _nObjectId, pReportSection->getPage(),m_aReportModel.get() ); + xShapeProp.set(pNewControl->getUnoShape(),uno::UNO_QUERY_THROW); + xShapeProp->setSize(awt::Size(5000,5000)); // switch height and width } else { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
