Hi Frank, you wrote: > > All the expressive power you need is in B2DHomMatrix. We can even add > > additional convenience functions, if you miss anything. > > Okay, and now the version for the developer writing a component in > Basic. Well, extensions of that kind in Basic might be unusual, so: > Python. Or Ruby. Or ... you get the idea. > > We're talking about a UNO API here, so only UNO services are allowed :) > Ok, I'll think about it. But in this broad sense, that's something unrelated to XSimpleCanvas (the same argument applies to XCanvas), and in fact quite abundant also for other UNO interfaces (i.e. that useful helper functionality is only available in C++).
I'd then proceed keeping setTransformation(), and take providing a transformation modification service as a separate task. > > /** Retrieve current clip rect > > */ > > com::sun::star::geometry::RealRectangle2D getCurrentClipRect(); > > thinking more about it (sorry :): Do we need this? What happens when the > current clip region isn't a rectangle? Should we just have a "getClip" > returning the complete thing? Finally, retrieval is much more seldom > than setting it, probably. > You explicitely requested removal of setClip( PolyPolygon ), thus: a clip on an XSimpleCanvas is always rectangular (with empty/null clip being a special case of rectangular, naturally). Regarding the usefulness of the method: we should IMO either provide getters for _all_ the state, or none. Either the client needs to store what she's set at XSimpleCanvas by herself (if she later needs the state), or the interface is able to provide all of it (personally, I slightly prefer not providing the getters - because it clutters the interface, and, as you suggest, one probably needs it rather seldomly. Or maybe only provide the getRender/ViewState ones, as most of the information can be deduced from that. Hm). What do you think? -- Thorsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
