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


https://bugs.documentfoundation.org/show_bug.cgi?id=100596

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

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

--- Comment #4 from Regina Henschel <rb.henschel@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
solution.

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.

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.