Uploaded image for project: 'OASIS Open Document Format for Office Applications (OpenDocument) TC'
  1. OASIS Open Document Format for Office Applications (OpenDocument) TC
  2. OFFICE-4106

19.515 style:repeat, add value "scale" for isotropic scaling

    XMLWordPrintable

    Details

    • Proposal:
      Hide

      in 20.341 style:repeat (NOT 19.515 style:repeat) replace the item "stretch" and add new item:

      • stretch: image should be scaled anisotropically to fill the background completely
      • scale: image should be scaled isotropically to fill the background along one axis. By default, the image is centered on the other axis, unless the draw:fill-image-ref-point {ref} attribute exists and specifies the alignment on the other axis.
      diff --git a/src/main/resources/odf1.3/OpenDocument-v1.3-schema.rng b/src/main/r
      esources/odf1.3/OpenDocument-v1.3-schema.rng
      index 87a8698..cec3e4a 100644
      --- a/src/main/resources/odf1.3/OpenDocument-v1.3-schema.rng
      +++ b/src/main/resources/odf1.3/OpenDocument-v1.3-schema.rng
      @@ -10812,24 +10812,25 @@
             </rng:optional>
             <rng:optional>
               <rng:attribute name="draw:fill-image-name">
                 <rng:ref name="styleNameRef"/>
               </rng:attribute>
             </rng:optional>
             <rng:optional>
               <rng:attribute name="style:repeat">
                 <rng:choice>
                   <rng:value>no-repeat</rng:value>
                   <rng:value>repeat</rng:value>
                   <rng:value>stretch</rng:value>
      +            <rng:value>scale</rng:value>
                 </rng:choice>
               </rng:attribute>
             </rng:optional>
             <rng:optional>
               <rng:attribute name="draw:fill-image-width">
                 <rng:choice>
                   <rng:ref name="length"/>
                   <rng:ref name="percent"/>
                 </rng:choice>
               </rng:attribute>
             </rng:optional>
             <rng:optional>
      
      Show
      in 20.341 style:repeat (NOT 19.515 style:repeat) replace the item "stretch" and add new item: stretch: image should be scaled anisotropically to fill the background completely scale: image should be scaled isotropically to fill the background along one axis. By default, the image is centered on the other axis, unless the draw:fill-image-ref-point {ref} attribute exists and specifies the alignment on the other axis. diff --git a/src/main/resources/odf1.3/OpenDocument-v1.3-schema.rng b/src/main/r esources/odf1.3/OpenDocument-v1.3-schema.rng index 87a8698..cec3e4a 100644 --- a/src/main/resources/odf1.3/OpenDocument-v1.3-schema.rng +++ b/src/main/resources/odf1.3/OpenDocument-v1.3-schema.rng @@ -10812,24 +10812,25 @@ </rng:optional> <rng:optional> <rng:attribute name="draw:fill-image-name"> <rng:ref name="styleNameRef"/> </rng:attribute> </rng:optional> <rng:optional> <rng:attribute name="style:repeat"> <rng:choice> <rng:value>no-repeat</rng:value> <rng:value>repeat</rng:value> <rng:value>stretch</rng:value> + <rng:value>scale</rng:value> </rng:choice> </rng:attribute> </rng:optional> <rng:optional> <rng:attribute name="draw:fill-image-width"> <rng:choice> <rng:ref name="length"/> <rng:ref name="percent"/> </rng:choice> </rng:attribute> </rng:optional> <rng:optional>
    • Resolution:
      Hide

      20.345 style:repeat

      The style:repeat attribute specifies if an image can be repeated or stretched over an area.

      The defined values for the style:repeat attribute are:

      • no-repeat: image should not be repeated.
      • repeat: image should be repeated.
      • stretch: image should be scaled anisotropically to fill the background completely.
      • scale: image should be scaled isotropically to fill the background along one axis. By default, the image is centered on the other axis, unless the draw:fill-image-ref-point 20.128 attribute exists and specifies the alignment on the other axis.
      Show
      20.345 style:repeat The style:repeat attribute specifies if an image can be repeated or stretched over an area. The defined values for the style:repeat attribute are: no-repeat : image should not be repeated. repeat : image should be repeated. stretch : image should be scaled anisotropically to fill the background completely. scale : image should be scaled isotropically to fill the background along one axis. By default, the image is centered on the other axis, unless the draw:fill-image-ref-point 20.128 attribute exists and specifies the alignment on the other axis.

      Description

      <quote>
      20.341 style:repeat
      The style:repeat attribute specifies if an image can be repeated or stretched over an area.
      The defined values for the style:repeat attribute are:
      • no-repeat: image should not be repeated.
      • repeat: image should be repeated.
      • stretch: image should be stretched over an area.
      </quote>

      Form controls since OOo 3.1 may have an additional value "scale", which means isotropic scaling; "stretch" means anisotropic scaling (filling the background completely)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              michaelstahl Michael Stahl
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: