Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11091

Additional style name/type properties

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • None
    • ODF Writer
    • None

    Description

      Currently when writing QTextDocument to ODT all styles are saved as "autostyles" (in content.xml file). Therefore these styles are not visible when ODT is opened in any office application. Therefore it is difficult to reformat resulting file by applying some style changes.

      It is possible and not too difficult to extend QTextOdfWriter class to write some styles to styles.xml file. But in order to do that some additional properties are required in QTextFormat class:
      1. QString style name - to represent name of style as used/visible in resulting odt file (possibly but not necessarily splitting it to "style name" and "display style name" as defined in ODF format).
      2. enum style type - with values say "auto" (style saved in content.xml), "style" (style saved in style.xml).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            zander tho (closed Nokia identity) (Inactive)
            tomasstraupis Tomas Straupis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes