[Libreoffice-ux-advise] [Bug 100596] Would like to be able to create and edit block arcs numerically.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 5 15:32:49 UTC 2016


Regina Henschel <rb.henschel at t-online.de> changed:

           What    |Removed                     |Added
                 CC|                            |rb.henschel at t-online.de

--- Comment #4 from Regina Henschel <rb.henschel at t-online.de> ---
Created attachment 126078
  --> https://bugs.documentfoundation.org/attachment.cgi?id=126078&action=edit
Basic macro for setting arc and radius numerically

I have attached a document, which contains a Basic library 'BlockArrowEditor'.
For a block arc use the subroutine 'EditBlockArc' from module 'Arc', for a
circular arrow (which is very similar) use the subroutine 'EditCirculaArrow'
from module 'Arrow'. To get the macros to your environment, open the file, then
with organizer for Basic export the library and then import it to 'My Macros'
for example.

The solution has a dialog to set the angles in degree. And it has an input
field to enter a factor for the inner radius.

The path of a custom shape is first drawn on a base square of 21600 internal
units. Then it is scaled to the size, which you set in the Position&Size
dialog. And other transformations like flipping, rotating, or shearing might be
applied in addition.  But the values from the handles are directly used in the
path calculation. Therefore it is not easily possible the make a dialog, which
refers to the shape as you see it on screen. It would need some matrix
operations. (I have currently not the time to do it.)

Therefore I have created the dialog so, that you specify the inner radius by a
factor. If the untransformed shape has a width of 4cm, then the outer radius is
4cm. If you then want an inner radius of 3cm, you have to enter the factor
0.75, because 3cm = 0.75 * 4cm.

The angles always refer to a square shape, their value is in degrees.

I know it is not perfect, but it might help you until someone will implement a

For implementation I would prefer a more general solution. The Position&Size
dialog should get a new tab page "Custom Shape Adjudgment", which is shown in
case a selected custom shape has handles. So not a special solution for a block
arc, but a general solution for all custom shapes having handles.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Libreoffice-ux-advise mailing list