On Wed, Feb 24, 2010 at 11:01:13AM +0100, Sven Jacobi wrote: > Hi, Hej, > At the moment, styles are set at ApplyTextObj, which is called for > each shape that is containing text, this is good for shapes with text, but we > are missing shapes without text, so this seems to be the problem here. > > I think each application is having its own style handling for > objects, so the right place to set the style would be at the end > of each ProcessObj method Ok, now I'm a bit confused :)
I find 3 occurences of ProcessObj methods that have something to do with PPT: SvxMSDffManager::ProcessObj (svx/source/msfilter/msdffimp.cxx) SdrEscherImport::ProcessObj (svx/source/svdraw/svdfppt.cxx) ImplSdPPTImport::ProcessObj (sd/source/filters/ppt/pptin.cxx) what is the right one to set the style? My current patch (see attachment) sets the style at the end of ImplSdPPTImport without the check of what type the object is. I guess there is also a check needed whether the style is already set... Ciao, Tobias -- credativ GmbH, HRB Mönchengladbach 12080 Hohenzollernstr. 133, 41061 Mönchengladbach Geschäftsführung: Dr. Michael Meskes, Jörg Folz
diff --git a/source/filter/ppt/pptin.cxx b/source/filter/ppt/pptin.cxx index c25ae67..6b0f2e7 100644 --- a/source/filter/ppt/pptin.cxx +++ b/source/filter/ppt/pptin.cxx @@ -2742,6 +2742,10 @@ SdrObject* ImplSdPPTImport::ProcessObj( SvStream& rSt, DffObjData& rObjData, voi } } } + + // setup the default style + pObj->NbcSetStyleSheet( pSdrModel->GetDefaultStyleSheet(), TRUE ); + return pObj; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
