[Libreoffice] [GSoC 2011][svgexport] weekly report #1
thb at documentfoundation.org
Mon May 30 00:43:33 PDT 2011
great you're making progress -
> is "api.openoffice.org" the right place where to look for API
> documentation ?
> 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.
> 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
> 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.
> 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? ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the LibreOffice