Details

    • Type: Improvement
    • Status: Applied
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ODF 1.2
    • Fix Version/s: ODF 1.3
    • Component/s: Part 1 (Schema), Table
    • Labels:
      None
    • Environment:

      LibreOffice, Apache OpenOffice

    • Proposal:
      Hide

      1. RATIONALE

      1.1 Use cases:
      For larger spreadsheets users want to determine the number of
      horizontal and/or vertical pages where the printout should fit
      to.

      1.2 Alternatives considered:
      None.

      2. REQUESTED CHANGES TO THE ODF STANDARD

      2.1 Text changes/additions:

      20.346 style:scale-to-X

      The style:scale-to-X attribute specify the number of pages on which a document should be printed. The document is scaled to fit up to style:scale-to-X pages horizontally. If these attributes, style:scale-to-pages and style:scale-to are absent, a document is not scaled.
      The style:scale-to-X attribute is usable with the following element: <style:page-layout-properties>.
      The style:scale-to-X attribute has the data type positiveInteger.

      20.347 style:scale-to-Y
      The style:scale-to-Y attribute specify the number of pages on which a document should be printed. The document is scaled to fit up to style:scale-to-Y pages vertically. If these attributes, style:scale-to-pages and style:scale-to are absent, a document is not scaled.
      The style:scale-to-Y attribute is usable with the following element: <style:page-layout-properties>.
      The style:scale-to-Y attribute has the data type positiveInteger.

      Update: <style:page-layout-properties>, style:scale-to and style:scale-to-page sections should be updated, too, with the new style:scale-to-X and style:scale-to-Y attributes.

      2.2 Schema changes/additions:

      --- OpenDocument-v1.2-os-schema.rng	2015-03-19 10:26:06.218679000 +0100
      +++ OpenDocument-v1.2-os-schema-scale-to-XY.rng	2015-06-05 17:04:54.797031400 +0200
      @@ -14298,16 +14298,30 @@
       					</choice>
       				</attribute>
       			</optional>
      -			<optional>
      -				<attribute name="style:scale-to">
      -					<ref name="percent"/>
      -				</attribute>
      -			</optional>
      -			<optional>
      -				<attribute name="style:scale-to-pages">
      -					<ref name="positiveInteger"/>
      -				</attribute>
      -			</optional>
      +			<choice>
      +				<optional>
      +					<attribute name="style:scale-to">
      +						<ref name="percent"/>
      +					</attribute>
      +				</optional>
      +				<optional>
      +					<attribute name="style:scale-to-pages">
      +						<ref name="positiveInteger"/>
      +					</attribute>
      +				</optional>
      +				<group>
      +					<optional>
      +						<attribute name="style:scale-to-X">
      +							<ref name="positiveInteger"/>
      +						</attribute>
      +					</optional>
      +					<optional>
      +						<attribute name="style:scale-to-Y">
      +							<ref name="positiveInteger"/>
      +						</attribute>
      +					</optional>
      +				</group>
      +			</choice>
       			<optional>
       				<attribute name="style:table-centering">
       					<choice>
      
      

      3. IMPACTS

      3.1 Conformance:
      This proposal will not add any mandatory features or behaviors.

      3.2 Backwards compatibility:
      This element was not available in previous versions and is
      optional. Existing ODF processors may ignore it.

      3.3 Accessibility impact:
      None.

      Show
      1. RATIONALE 1.1 Use cases: For larger spreadsheets users want to determine the number of horizontal and/or vertical pages where the printout should fit to. 1.2 Alternatives considered: None. 2. REQUESTED CHANGES TO THE ODF STANDARD 2.1 Text changes/additions: 20.346 style:scale-to-X The style:scale-to-X attribute specify the number of pages on which a document should be printed. The document is scaled to fit up to style:scale-to-X pages horizontally. If these attributes, style:scale-to-pages and style:scale-to are absent, a document is not scaled. The style:scale-to-X attribute is usable with the following element: <style:page-layout-properties>. The style:scale-to-X attribute has the data type positiveInteger. 20.347 style:scale-to-Y The style:scale-to-Y attribute specify the number of pages on which a document should be printed. The document is scaled to fit up to style:scale-to-Y pages vertically. If these attributes, style:scale-to-pages and style:scale-to are absent, a document is not scaled. The style:scale-to-Y attribute is usable with the following element: <style:page-layout-properties>. The style:scale-to-Y attribute has the data type positiveInteger. Update: <style:page-layout-properties>, style:scale-to and style:scale-to-page sections should be updated, too, with the new style:scale-to-X and style:scale-to-Y attributes. 2.2 Schema changes/additions: --- OpenDocument-v1.2-os-schema.rng 2015-03-19 10:26:06.218679000 +0100 +++ OpenDocument-v1.2-os-schema-scale-to-XY.rng 2015-06-05 17:04:54.797031400 +0200 @@ -14298,16 +14298,30 @@ </choice> </attribute> </optional> - <optional> - <attribute name="style:scale-to"> - <ref name="percent"/> - </attribute> - </optional> - <optional> - <attribute name="style:scale-to-pages"> - <ref name="positiveInteger"/> - </attribute> - </optional> + <choice> + <optional> + <attribute name="style:scale-to"> + <ref name="percent"/> + </attribute> + </optional> + <optional> + <attribute name="style:scale-to-pages"> + <ref name="positiveInteger"/> + </attribute> + </optional> + <group> + <optional> + <attribute name="style:scale-to-X"> + <ref name="positiveInteger"/> + </attribute> + </optional> + <optional> + <attribute name="style:scale-to-Y"> + <ref name="positiveInteger"/> + </attribute> + </optional> + </group> + </choice> <optional> <attribute name="style:table-centering"> <choice> 3. IMPACTS 3.1 Conformance: This proposal will not add any mandatory features or behaviors. 3.2 Backwards compatibility: This element was not available in previous versions and is optional. Existing ODF processors may ignore it. 3.3 Accessibility impact: None.

      Description

      Fit Print Ranges To Width/Height feature was implemented in OpenOffice.org in 2004, see https://issues.apache.org/ooo/show_bug.cgi?id=8868.

      However, the style:scale-to-X and style:scale-to-Y attributes are missing from the ODF standard.

        Attachments

          Activity

            People

            • Assignee:
              timar Andras Timar
              Reporter:
              timar Andras Timar
            • Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: