[Libreoffice-bugs] [Bug 126648] Arrow Style sorting after size

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 2 17:14:51 UTC 2019


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

--- Comment #11 from Regina Henschel <rb.henschel at t-online.de> ---
(In reply to andreas_k from comment #10)
> I had a look into source file
> https://opengrok.libreoffice.org/xref/core/extras/source/palettes/standard.
> soe?r=b15fef02
> 
> Is there an reason that each viewbox is different?

The viewBox defines a coordinate system for its content. It allows to exactly
determine the position and and size of its content parts in regard to other
content parts. Because it is pure vector graphic, it does not have any "size".
The author of a marker can use a viewBox as he likes.

 how the size will be
> defined? from the viewbox (and there size) it's not possible to define the
> arow size.

The size is determined by the style of the object, which uses the arrow. The
style has parts 'draw:marker-start="Circle" draw:marker-start-width="1cm"', for
example. That means: Use the marker with name "Circle" and scale it so, that
its width is 1cm. The rectangle given be the viewBox (third and forth value of
it) is scaled with keeping ratio, so that the width of the viewBox is 1cm.

This width is set in the UI in the "Line" dialog for direct formatting or in a
graphic style in tab "Line". The default width, when switching on a marker, is
determined by the thickness of the line. When changing the line width the
marker width is adapted automatically, but you can set a different value
manually. 

 And if there is somewhere an parameter for the size in the code,
> than it should be not to complicated to add an size drop down menu to the
> array dialog window.

The drop-down menu for the type of the marker is not a good place for it. But I
can think of a section in the side bar, which provides a simplified UI. Keep in
mind, that you have the option "center" in addition to the width, and that in
ODF you can use an arbitrary value for the width and use arbitrary paths for
the marker, only that it needs to be closed.

The situation is different in OOXML. There you are restricted to a fix set of 6
marker types (incl. none) and a fix set of the three size values: large,
medium, small. See 20.1.10.32 to 20.1.10.34 in the OOXML standard.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190802/d37ff056/attachment.html>


More information about the Libreoffice-bugs mailing list