<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#c49">Comment # 49</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#c45">comment #45</a>)
<span class="quote">> (In reply to Lionel Elie Mamane from <a href="show_bug.cgi?id=45789#c44">comment #44</a>)</span >
<span class="quote">>> 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.</span >
<span class="quote">> Okey I understand. So I change something in function void
> ORptExport::exportContainer(const Reference< XSection>&_xSection). I change
> that about the "automatic height", is true? In addition to, are there any
> your suggestions? </span >
Sorry it took me so long to answer. Basically, yes, that is my guess, but that
is about step 3 from <a href="show_bug.cgi?id=45789#c22">comment 22</a>. We also (first?) need to do steps 1 and 2 from
<a href="show_bug.cgi?id=45789#c22">comment 22</a>. See also <a href="show_bug.cgi?id=45789#c24">comment 24</a> and <a href="show_bug.cgi?id=45789#c26">comment 26</a>.
To summarise: the work is to add a property "AutoGrow" to every control. It
needs to be added to the control models and to the UI that allows to user to
set that property. Then, in RptExport::exportContainer, if any of the controls
of this row has "AutoGrow" set to true, then set the "automatic row height"
attribute" on the whole row.
Code pointers are in <a href="show_bug.cgi?id=45789#c22">comment 22</a>, except that in step 3, the code pointer is
probably wrong and should be replaced by what I say in <a href="show_bug.cgi?id=45789#c44">comment 44</a>. Steps 1 and
2 are still valid. Sorry for the mixup.</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>