<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 7/4/19 8:06 AM, Thorsten Behrens
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20190704120617.qcr7bh2lsex5lidl@thinkpad.thebehrens.net">
      <pre class="moz-quote-pre" wrap="">Hi Uwe,

Uwe Brauer wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Is there somebody with enough knownledge in macros to translate those
macros to LO 6.2?

</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">Perhaps - I'd suggest you upload them somewhere (provided they are
available under an open source license) & post a link here.

Preferably as a bug report at bugs.documentfoundation.org; you can
include a description on how to run them / what is expected to work
there.

All the best,

-- Thorsten
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
LibreOffice mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/libreoffice">https://lists.freedesktop.org/mailman/listinfo/libreoffice</a></pre>
    </blockquote>
    <p>I see in the two threads on this topic that there is a much
      discussion without looking at what is the basics of the ODT
      layout. I this is a mistake, and here is why.</p>
    <p>I have some .sxw files from which I had earlier an .odt copy.
      From them I obtained the following information:</p>
    <p>This is the ODT layout:</p>
    <p>Which types of data source can OpenOffice.org use? <br>
          • A database server  using Java Database Connectivity (JDBC).<br>
          • A database server using Open Database Connectivity (ODBC).<br>
          • The built-in dbase source.<br>
          • The built-in Adabas source.<br>
          • ActiveX data objects (ADO) -only available on Windows.<br>
          • Text files.<br>
          • Spreadsheets.<br>
          • Address Books.<br>
      The help manual that comes with OpenOffice.org does a good job of
      describing these data sources and how to connect to them. Use
      Help>Contents>Database Functionality>Data Sources.</p>
    <p>This is the styles markup of it:</p>
    <p><text:p text:style-name="P3">Which types of data source can
      OpenOffice.org use? <br>
       </text:p><br>
       <text:unordered-list text:style-name="L1"><br>
            <text:list-item><br>
                 <text:p text:style-name="P4">A database server <br>
                     <text:s/>using Java Database Connectivity
      (JDBC).<br>
                  </text:p><br>
          </text:list-item><br>
          <text:list-item><br>
              <text:p text:style-name="P4">A database server using
      Open Database Connectivity (ODBC).<br>
              </text:p><br>
          </text:list-item><br>
          <text:list-item><br>
               <text:p text:style-name="P4">The built-in dbase
      source.    <br>
               </text:p><br>
          </text:list-item><br>
          <text:list-item><br>
              <text:p text:style-name="P4">The built-in Adabas
      source.<br>
              </text:p><br>
          </text:list-item><br>
          <text:list-item><br>
              <text:p text:style-name="P4">ActiveX data objects
      (ADO) -only available on Windows.<br>
              </text:p><br>
          </text:list-item><br>
          <text:list-item><br>
              <text:p text:style-name="P4">Text files.<br>
              </text:p><br>
          </text:list-item><br>
          <text:list-item><br>
              <text:p text:style-name="P4">Spreadsheets.<br>
              </text:p><br>
          </text:list-item><br>
          <text:list-item><br>
              <text:p text:style-name="P3">Which types of data
      source can OpenOffice.org use? </text:p><br>
      <text:unordered-list text:style-name="L1"><br>
          <text:list-item><text:p text:style-name="P4">A
      database server <br>
              <text:s/>using Java Database Connectivity (JDBC).<br>
          </text:p><br>
          </text:list-item><text:list-item><br>
              <text:p text:style-name="P4">A database server using
      Open Database Connectivity (ODBC).<br>
              </text:p><br>
          </text:list-item><text:list-item><br>
              <text:p text:style-name="P4">The built-in dbase
      source.    <br>
              </text:p><br>
          </text:list-item><text:list-item><br>
              <text:p text:style-name="P4">The built-in Adabas
      source.<br>
              </text:p><br>
          </text:list-item><text:list-item><br>
              <text:p text:style-name="P4">ActiveX data objects
      (ADO) -only available on Windows.<br>
             
      </text:p></text:list-item><text:list-item><br>
              <text:p text:style-name="P4">Text files.<br>
              </text:p><br>
          </text:list-item><text:list-item><br>
              <text:p text:style-name="P4">Spreadsheets.<br>
              </text:p><br>
          </text:list-item><text:list-item><br>
              <text:p text:style-name="P4">Address Books.<br>
              </text:p><br>
          </text:list-item></text:unordered-list><br>
              <text:p text:style-name="P5">The help manual that
      comes with OpenOffice.org does a good job of describing these data
      sources and how to connect to them. Use
      Help&gt;Contents&gt;Database Functionality&gt;Data
      Sources.<br>
              </text:p>Address Books.<br>
              </text:p><br>
          </text:list-item><br>
      </text:unordered-list><br>
      <text:p text:style-name="P5">The help manual that comes with
      OpenOffice.org does a good job of describing these data sources
      and how to connect to them. Use
      Help&gt;Contents&gt;Database Functionality&gt;Data
      Sources.<br>
      </text:p></p>
    <p>The markup comes directly from the Content.xml file of either the
      .sxw or .odt file. I should mention for those who wondered but did
      not know: the mark up for both files (.sxw, its .odt copy) is
      identical. To open the Content.xml, rename the .odt or .sxw file
      to .zip. Then unzip it. When opening Content.xml, use a browser or
      similar program which will give you an outline layout.</p>
    <p>Each of these styles (L1, P3, P4, P5) are defined in the
      beginning lines of Content.xml. For example, L1 contains the
      styles for "List 1"; P3 contains the styles for "Heading 3". P4
      and P5 both use the paragraph style "text body"; P4 also contains
      the list-item style "L1". Search for P4 in the Content.xml
      beginning from the top to see this.<br>
    </p>
    <p>Looking at the markup above, I do not see any way to get "reveal
      codes". I do think a macro is possible which would reveal the
      styles used for a given part of a document in outline form as
      above. It would have to gather that information from the
      Content.xml file. Could it then expand the name of given style
      such as L1, P3, P4, p5 so that it would appear in place of the
      style name?</p>
    <p>For example, <text:p text:style-name="P4"> becomes<br>
      <style:style style:name="P4" style:family="paragraph"
      style:parent-style-name="Text body" style:list-style-name="L1">
      (This would replace the tag used in the text with the tag used in
      the list of definitions at the beginning of Content.xml.<br>
    </p>
    <p>Comments: Perhaps this could be called "reveal styles"? Also one
      personal point that I learned back when OOo 1.14 was the latest
      version: Do not use direct formatting for any reason. That is what
      styles are for. In the long run, direct formatting does not save
      any time even when you make no errors with them. But needing to
      change some of the direct formatting can be very time consuming!</p>
    <p>A few years ago, someone needed a "pamphlet" formatted which I
      did for her using styles. Later she wanted to change some of the
      characteristics of a heading. All I had to do was to change the
      settings for that heading style. This took seconds, and all of
      that particular heading now had been changed. Going through over
      50 pages to change each heading separately would have taken much
      longer. (OK, I will get down off my soapbox now.)</p>
    <p>Dan<br>
    </p>
  </body>
</html>