[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Proposal for extending stroke dashed
Hi, please find below a proposal for extending stroke dashes. The author of the proposal is Christian Lippka, from the OOo Impress team. Best regards Michael ----------------------------------------------------------------------- Stroke dashes can currently only configured to have a fixed length for dashes. It is reasonable to also allow to set the length of dashes relative to the width of the stroke. So if the width of the stroke changes size the dashes are changing size also. This would also be needed for the distance between dashes or dots. So I propose to change ODF v1.2 draft 3 section 14.14.7.4 and 14.14.7.5 as follows: 14.14.7.4 Dots The attribute pairs draw:dots1, draw:dots1-length and draw:dots2, draw:dots2-length each define a repeating sequence of dots that are used to render a dash. Both sequences are used alternating. The draw:dots1 attribute specifies the number of dots for the first sequence and the draw:dots1-length attribute specifies the length of each of these dots. The draw:dots2 and draw:dots2-length attributes specify the number of dots for the second sequence and their length. If the length are given as percentage values, the length will be calculated as percentages from the with of the line that gets stroked. <define name="draw-stroke-dash-attlist" combine="interleave"> <optional> <attribute name="draw:dots1"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="draw:dots1-length"> <choice> <ref name="length"/> <ref name="percent"/> </choice> </attribute> </optional> <optional> <attribute name="draw:dots2"> <ref name="integer"/> </attribute> </optional> <optional> <attribute name="draw:dots2-length"> <choice> <ref name="length"/> <ref name="percent"/> </choice> </attribute> </optional> </define> 14.14.7.5 Distance The draw:distance attribute specifies the distance between the dots of a dash. If the length is given as a percentage value, the length will be calculated as percentages from the with of the line that gets stroked. <define name="draw-stroke-dash-attlist" combine="interleave"> <optional> <attribute name="draw:distance"> <choice> <ref name="length"/> <ref name="percent"/> </choice> </attribute> </optional> </define> -- Michael Brauer, Technical Architect Software Engineering StarOffice/OpenOffice.org Sun Microsystems GmbH Nagelsweg 55 D-20097 Hamburg, Germany michael.brauer@sun.com http://sun.com/staroffice +49 40 23646 500 http://blogs.sun.com/GullFOSS Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]