Tobias Koenig wrote:
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?
ImpSdPPtImport::ProcessObj is the correct one.
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...
The following should do what we want:
If ( !pObj->GetStyleSheet() )
pObj->NbcSetStyleSheet( pSdrModel->GetDefaultStyleSheet(), TRUE );
Sven
Ciao,
Tobias
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]