Drawing a rectangle with 2 radiused corners

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
User avatar
bartjeman
Posts: 177
Joined: Sun Jan 03, 2010 6:23 am
Location: Toronto

Drawing a rectangle with 2 radiused corners

Post by bartjeman »

I've used "com.sun.star.drawing.RectangleShape" and "com.sun.star.drawing.PolyPolygonShape" to good effect.
But I have a new project that requires a rectangle with 2 sharp corners, and 2 radiused corners.

When I look at the API I can see
RecatangleShape -> LineProperties -> PolyPolygonBezierCoords LineStart and PolyPolygonBezierCoords LineEnd
But I am no closer to a solution

Can someone get me started?
OpenOffice 4.1.7 on Windows 10
Bidouille
Volunteer
Posts: 577
Joined: Mon Nov 19, 2007 10:58 am
Location: France

Re: Drawing a rectangle with 2 radiused corners

Post by Bidouille »

Draw the desired shape.
Inspect object with MRI or XRay.
User avatar
bartjeman
Posts: 177
Joined: Sun Jan 03, 2010 6:23 am
Location: Toronto

Re: Drawing a rectangle with 2 radiused corners

Post by bartjeman »

I will give that a try, sure to be back here with questions :-)
OpenOffice 4.1.7 on Windows 10
Post Reply