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

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ODF 1.3
    • Fix Version/s: ODF 1.4
    • Component/s: Forms, Graphics, Part (Schema)
    • Labels:
      None
    • 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 attribute 20.125 draw:fill-image-ref-point 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 attribute 20.125 draw:fill-image-ref-point 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>

      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: