[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: action item #0013: improved proposal for style:join-border
Dear TC members, according to action item #0013 I will give an improved proposal for already accepted paragraph property style:join-border: <improved proposal> Use the style:join-border property to specify, that the border is to be extended around the next paragraph, if the borders and the margins of both paragraphs are holding the following conditions: (1) Values of properties fo:border-top, fo:border-bottom, fo:border-left and fo:border-right are the same - these values can also be given by property fo:border. (2) Values of properties style:border-line-width-top, style:border-line-width-bottom, style:border-line-width-left and style:border-line-width-right are the same - these values can also be given by property style:border-line-width. (3) Values of properties fo:padding-left and fo:padding-right are the same - these values can also be given by property fo:padding. (4) Values of property fo:margin-right are the same - these values can also be given by property fo:margin. (5) Values of properties fo:margin-left - can also be given by property fo:margin - and fo:text-indent fulfill one of the following conditions: (a) All values are the same. (b) Values of property fo:margin-left are the same and values of property fo:text-indent are non-negative. (c) Value of property fo:margin-left of one paragraph whose value of property fo:text-indent is non-negative equals the sum of values of properties fo:margin-left and fo:text-indent of the other paragraph whose value of property fo:text-indent is negative. (d) Both values of property fo:text-indent are negative and the sums of values of the properties fo:margin-left and fo:text-indent are equal. Borders are joined by default. <define name="style-paragraph-properties-attlist" combine="interleave"> <optional> <attribute name="style:join-border"> <ref name="boolean"/> </attribute> </optional> </define> </improved proposal> Comment on the above given conditions: Holding the above given conditions for the borders and the margins assures (A) that the border lines of the paragraphs are the same - conditions (1) and (2) - and (B) that the areas taken by each of these paragraphs are equal on its left and right according to the box model given by the W3C for CSS - see http://www.w3.org/TR/REC-CSS2/box.html, chapter 8.1 - conditions (3), (4) and (5). An extension of the border of a paragraph around its next paragraph only makes sense, if these conditions are hold. Best regards, Oliver. -- ======================================================================= Sun Microsystems GmbH Oliver-Rainer Wittmann Nagelsweg 55 Software Engineer - OpenOffice.org/StarOffice 20097 Hamburg Phone: (+49 40) 23 646 670 Germany Fax: (+49 40) 23 646 550 http://www.sun.de mailto:oliver-rainer.wittmann@sun.com ----------------------------------------------------------------------- Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering ======================================================================= Oliver-Rainer Wittmann (od) - OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]