<html>
    <head>
      <base href="https://bugs.documentfoundation.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - automatic row height in reports"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=45789#c44">Comment # 44</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - automatic row height in reports"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=45789">bug 45789</a>
              from <span class="vcard"><a class="email" href="mailto:lionel@mamane.lu" title="Lionel Elie Mamane <lionel@mamane.lu>"> <span class="fn">Lionel Elie Mamane</span></a>
</span></b>
        <pre>(In reply to kerem from <a href="show_bug.cgi?id=45789#c43">comment #43</a>)
<span class="quote">> In <a href="show_bug.cgi?id=45789#c24">comment 24</a>, reportbuilder creates an odt file, not through Writer. I
> can't this. How to create odt file?</span >

An ODT file is basically a ZIP structure with XML in it.

In reportbuilder, the Java top-level class that does the process seems to be in
file
reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
(in combination with the external jfreereport), but that is not where you will
need to intervene, but in the code that creates a table row.

The code responsible for a cell is basically
reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/TableCellLayoutController.java

My original idea was to find the code responsible for a row and inject the
attribute for "fit to size" row height there. However, now that I take a fresh
look at it, I realise that the <table:table-row> tags are probably copied
unchanged from the report definition. So it might be easier to change the way
the report definition is saved rather than the way it is processed.

The saving of the report definition happens in C++, in
reportdesign/source/filter/xml/
I think it is particularly in reportdesign/source/filter/xml/xmlExport.cxx
function void ORptExport::exportContainer(const Reference< XSection>&
_xSection)
looks relevant; need to set the right attribute or style for "automatic height"
there.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>