Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


Hello.

I would like to implement, increasing maximum footnote height, to resolve
issue:
https://bugs.documentfoundation.org/show_bug.cgi?id=73977

The footnote height could be set manually and with custom height.
Both are limited in theory by page height, but in practice there is some
magic number which limite footnote height

I found that most of the UI is implemented there:
https://cgit.freedesktop.org/libreoffice/core/tree/sw/source/ui/misc/pgfnote.cxx#n355

But there is nothing about maximum value, except:
     lMaxHeight *= 8;
     lMaxHeight /= 10;

     // set maximum values
     HeightModify(*m_pMaxHeightEdit);

Unfortunately it is only changes maximum UI values which could be set via
Format->Page...->Footnote...->Maximum footnote height.
It it not changing a maximum height of footnote at all.

In
https://cgit.freedesktop.org/libreoffice/core/tree/sw/source/core/layout/pagechg.cxx#n173
If Height is set to 0 (for automatic footnote height mode), then height is
set to LONG_MAX


    SetMaxFootnoteHeight( pPgDsc->GetFootnoteInfo().GetHeight() ?

                     pPgDsc->GetFootnoteInfo().GetHeight() : LONG_MAX );


Is that mean that the limitiation of footnote height is set by
LONG_MAX (SwTwips ) type ?

I would like to resolve that issue, but currently I have stuck.
Does anyone knows some more details about that?

Thanks in advance
Bartosz

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.