https://bugs.documentfoundation.org/show_bug.cgi?id=103298
Buovjaga <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected],
| |[email protected]
--- Comment #1 from Buovjaga <[email protected]> ---
(In reply to jan d from comment #0)
> Steps to Reproduce:
> 1. Try to create a custom shape with elements with different fill colors
This report is about a fairly esoteric subject and that single repro step does
not really do justice to the complexity involved.
The creation of custom shapes is described in these articles:
http://books.evc-cit.info/odbook/custom_shapes_article.pdf
https://wiki.openoffice.org/wiki/Create_a_New_Custom_Shape_in_Source_in_File
I took a look at Mark Lautman's "GUI Elements and Controls".
The scrollbar is defined like this in the content.xml:
<draw:custom-shape draw:name="Scrollbar" draw:style-name="UIBlack"
draw:text-style-name="P1" draw:layer="layout" svg:width="4cm"
svg:height="0.6cm" svg:x="10cm" svg:y="12.5cm">
<text:p/>
<draw:enhanced-geometry svg:viewBox="0 0 1000 150"
draw:type="NonPrimitive" draw:modifiers="870" draw:enhanced-path="M 0 0 L ?f0 0
?f0 150 0 150 F Z N M 150 0 L 150 150 F Z N M $0 0 L $0 150 F Z N M 40 75 L 100
40 100 110 Z N M ?f1 75 L ?f2 40 ?f2 110 Z N">
<draw:equation draw:name="f0" draw:formula="$0+150"/>
<draw:equation draw:name="f1" draw:formula="$0+100"/>
<draw:equation draw:name="f2" draw:formula="$0+40"/>
<draw:handle draw:handle-position="$0 0"
draw:handle-range-x-minimum="150"/>
</draw:enhanced-geometry>
</draw:custom-shape>
We can see that all the elements of the shape are drawn in one path definition.
"Z" means "Close subĀpath by drawing a line to the beginning point of
subĀpath."
"N" means "End subpath".
To use different fill colors for the scrollbar background and buttons, we would
have to use separate draw:custom-shape elements. However, the problem appears
to be that the handle and equations cannot be shared by different shapes.
Regina: what do you think about this? Wouldn't this involve changing the ODF
spec?
Btw. thanks for educating me, Jan: I had no idea this was even possible. The
use for GUI elements is really intriguing and I have to show this to the
LibreOffice design team.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs