<div dir="ltr">Hello.<div><br></div><div>I would like to implement, increasing maximum footnote height, to resolve issue:</div><div><a href="https://bugs.documentfoundation.org/show_bug.cgi?id=73977">https://bugs.documentfoundation.org/show_bug.cgi?id=73977</a><br></div><div><br></div><div>The footnote height could be set manually and with custom height.</div><div>Both are limited in theory by page height, but in practice there is some magic number which limite footnote height</div><div><br></div><div>I found that most of the UI is implemented there:</div><div><a href="https://cgit.freedesktop.org/libreoffice/core/tree/sw/source/ui/misc/pgfnote.cxx#n355">https://cgit.freedesktop.org/libreoffice/core/tree/sw/source/ui/misc/pgfnote.cxx#n355</a><br></div><div><br></div><div>But there is nothing about maximum value, except:</div><div><div><font face="monospace, monospace">     lMaxHeight *= 8;</font></div><div><font face="monospace, monospace">     lMaxHeight /= 10;</font></div><div><font face="monospace, monospace"> <br></font></div><div><font face="monospace, monospace">     // set maximum values</font></div><div><font face="monospace, monospace">     HeightModify(*m_pMaxHeightEdit);</font></div></div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px"></pre><div>Unfortunately it is only changes maximum UI values which could be set via Format->Page...->Footnote...->Maximum footnote height.</div></div><div>It it not changing a maximum height of footnote at all.</div><div><br></div><div>In</div><div><a href="https://cgit.freedesktop.org/libreoffice/core/tree/sw/source/core/layout/pagechg.cxx#n173">https://cgit.freedesktop.org/libreoffice/core/tree/sw/source/core/layout/pagechg.cxx#n173</a><br></div><div>If Height is set to 0 (for automatic footnote height mode), then height is set to LONG_MAX</div><div>
<p style="margin:0px"><br></p>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(0,0,0)">SetMaxFootnoteHeight</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">pPgDsc</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">GetFootnoteInfo</span><span style="color:rgb(0,0,0)">().</span><span style="color:rgb(0,0,0)">GetHeight</span><span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">?</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">                     </span><span style="color:rgb(0,0,0)">pPgDsc</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">GetFootnoteInfo</span><span style="color:rgb(0,0,0)">().</span><span style="color:rgb(0,0,0)">GetHeight</span><span style="color:rgb(0,0,0)">()</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">:</span><span style="color:rgb(192,192,192)"> </span>LONG_MAX<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">);</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><div style="font-family:arial,sans-serif;white-space:normal">Is that mean that the limitiation of footnote height is set by LONG_MAX (<span style="color:rgb(128,0,128)">SwTwips ) type ?</span></div><div style="font-family:arial,sans-serif;white-space:normal"><br></div><div style="font-family:arial,sans-serif;white-space:normal">I would like to resolve that issue, but currently I have stuck.</div><div style="font-family:arial,sans-serif;white-space:normal">Does anyone knows some more details about that?</div><div style="font-family:arial,sans-serif;white-space:normal"><br></div><div style="font-family:arial,sans-serif;white-space:normal">Thanks in advance</div><div style="font-family:arial,sans-serif;white-space:normal">Bartosz </div><div><br></div><div style="font-family:arial,sans-serif;white-space:normal"></div></pre></div></div>