Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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

Attachment: pgpcd3YaF1H8T.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.