[Libreoffice] [GSoC 2011][svgexport] weekly report #1
Thorsten Behrens
thb at documentfoundation.org
Mon May 30 00:43:33 PDT 2011
Hi Marco,
great you're making progress -
you asked:
> (1)
> is "api.openoffice.org" the right place where to look for API
> documentation ?
>
Yep.
> (2)
> what is the difference between: XShape, SdrObject (and derived classes)
> and Graphic ? Which are their roles ?
>
XShape is an interface, SdrObject the actual representation of that
model - it is facaded towards XShape via SvxShape.
> (3)
> what is the GDIMetafile associated with an object of type Graphic ?
> (and what are MetaActions ?)
>
It's like a Windows Metafile (WMF) - a list of "drawing" actions,
recorded from rendering that shape. MetaActions are the atomic
drawing primitives, i.e. set a color, draw a polygon, render some
text etc.
> (1)
> OutputDevice::LogicToLogic( rSize100thmm, MAP_100TH_MM, aMapMode )
>
Yep, that's sadly missing documentation - would be wonderful if you
could add doxygen-style inline documentation to the header files,
whenever you encounter such omissions. In this case, it's a
conversion between coordinate systems (see vcl/outdev.hxx for the
prototypes): rSize100thmm is converted from the "MAP_100TH_MM"
coordinate system (i.e. one unit is a hundreth of a millimeter) to
the aMapMode coordinate system.
> (2)
> xDrawPages->getByIndex( nDefaultPage ) >>= mxDefaultPage;
>
> if( mxDefaultPage.is() )
> {
> SvxDrawPage* pSvxDrawPage = SvxDrawPage::getImplementation(
> mxDefaultPage );
>
> if( pSvxDrawPage )
> {
> mpDefaultSdrPage = pSvxDrawPage->GetSdrPage();
> mpSdrModel = mpDefaultSdrPage->GetModel();
>
> if( mpSdrModel )
> {
> SdrOutliner& rOutl = mpSdrModel->GetDrawOutliner(NULL);
>
> maOldFieldHdl = rOutl.GetCalcFieldValueHdl();
> rOutl.SetCalcFieldValueHdl( LINK( this, SVGFilter,
> CalcFieldHdl) );
> }
> }
> }
>
What's your concrete question? ;)
Cheers,
-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110530/50334ea4/attachment.pgp>
More information about the LibreOffice
mailing list