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-3704

Consolidate 3.15.2 <office:styles> and 3.15.3 <office:automatic-styles>

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: ODF 1.2 COS 1
    • Fix Version/s: ODF 1.3 CSD 02
    • Component/s: Styles
    • Labels:
      None
    • Proposal:
      Hide

      To consolidate <office:style> and <office:automatic-styles> into <office:styles> as follows:

      3.15.1 General

      Styles for a document are defined by <office:styles> 3.15.2 and <office:master-styles> 3.15.n elements.

      Page layouts and styles are defined by <style:page-layout> 17.2 and <style:master-page> 16.9 elements, respectively.

      3.15.2 <office:styles>

      The <office:styles> element contains non-master styles used in a document.

      The <office:styles> element is usable within the following elements: <office:document> 3.1.2, <office:document-content> 3.1.3.2 and <office:document-styles> 3.1.3.3. (the numbering may change after other edits)

      The <office:styles> element has no attributes.

      The <office:styles> element has the following child elements: <draw:fill-image> 16.40.6, <draw:gradient> 16.40.1, <draw:hatch> 16.40.5, <draw:marker> 16.40.8, <draw:opacity> 16.40.7, <draw:stroke-dash> 16.40.9, <number:boolean-style> 16.27.23, <number:currency-style> 16.27.7, <number:date-style> 16.27.10, <number:number-style> 16.27.2, <number:percentage-style> 16.27.9, <number:text-style> 16.27.25, <number:time-style> 16.27.18, <style:default-page-layout> 16.8, <style:default-style> 16.4, <style:page-layout> 16.5, <style:presentation-page-layout> 16.41, <style:style> 16.2, <svg:linearGradient> 16.40.2, <svg:radialGradient> 16.40.3, <table:table-template> 16.18, <text:bibliography-configuration> 16.29.6, <text:linenumbering-configuration> 16.29.1, <text:list-style> 16.30, <text:notes-configuration> 16.29.3 and <text:outline-style> 16.34. (added <style:page-layout> 16.5)

      Plus necessary schema changes.

      Show
      To consolidate <office:style> and <office:automatic-styles> into <office:styles> as follows: 3.15.1 General Styles for a document are defined by <office:styles> 3.15.2 and <office:master-styles> 3.15.n elements. Page layouts and styles are defined by <style:page-layout> 17.2 and <style:master-page> 16.9 elements, respectively. 3.15.2 <office:styles> The <office:styles> element contains non-master styles used in a document. The <office:styles> element is usable within the following elements: <office:document> 3.1.2, <office:document-content> 3.1.3.2 and <office:document-styles> 3.1.3.3. (the numbering may change after other edits) The <office:styles> element has no attributes. The <office:styles> element has the following child elements: <draw:fill-image> 16.40.6, <draw:gradient> 16.40.1, <draw:hatch> 16.40.5, <draw:marker> 16.40.8, <draw:opacity> 16.40.7, <draw:stroke-dash> 16.40.9, <number:boolean-style> 16.27.23, <number:currency-style> 16.27.7, <number:date-style> 16.27.10, <number:number-style> 16.27.2, <number:percentage-style> 16.27.9, <number:text-style> 16.27.25, <number:time-style> 16.27.18, <style:default-page-layout> 16.8, <style:default-style> 16.4, <style:page-layout> 16.5, <style:presentation-page-layout> 16.41, <style:style> 16.2, <svg:linearGradient> 16.40.2, <svg:radialGradient> 16.40.3, <table:table-template> 16.18, <text:bibliography-configuration> 16.29.6, <text:linenumbering-configuration> 16.29.1, <text:list-style> 16.30, <text:notes-configuration> 16.29.3 and <text:outline-style> 16.34. (added <style:page-layout> 16.5) Plus necessary schema changes.
    • Resolution:
      Hide

      Member-proposed enhancement for ODF 1.3

      Show
      Member-proposed enhancement for ODF 1.3

      Description

      ODF 1.2, Section 3.15 Styles, defines three container elements for common, automatic and master styles.

      The only difference between 3.15.2 <office:styles> and 3.15.3 <office:automatic-styles> is that the latter can be used in <office:document-content> 3.1.3.2, whereas <office:styles> cannot and <office:automatic-styles> has the child element <style:page-layout> 16.5, which <office:styles> does not. (<office:styles> has a number of child elements that <office:automatic-styles> does not.)

      The division represents application behavior as detailed by:

      <office:styles> "A common style is a style chosen by a user for a document or portion thereof."

      <office:automatic-styles> "Common and automatic styles behave differently in OpenDocument editing consumers. Common styles are presented to the user as a named set of formatting properties. The formatting properties of an automatic style are presented to a user as properties of the object to which the style is applied."

      **********
      Commentary:

      3.15.4 <office:master-styles>

      I am not altogether happy with the style vs. master style distinction but have kept it for discussion. If you compare <style:master-page> 16.9 and 17.2 <style:page-layout-properties> you will notice that <style:master-page> is mostly composed of draw objects and <style:page-layout-properties> is mostly what we would consider to be page formatting properties. The "master style" isn't really a "master" style but one for mostly draw objects and handout documents.

      If we want to have specific style masters for handouts, for example, 10.2.1, that's great, but let's call it that and not invent the concept of a master style that isn't.

      The other reason I mention this is because a style should be able to specify both formatting and objects to "appear" in a document.

        Attachments

          Activity

            People

            • Assignee:
              patrick Patrick Durusau
              Reporter:
              patrick Patrick Durusau
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: