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


Hi Miklos,

I didn't understand the swap thing, indeed, both use rInf.GetTextHeight(  ):

    810 bool SwFieldFormCheckboxPortion::Format( SwTextFormatInfo & rInf )
    811 {
    812     SwPosition const aPosition(rInf.GetTextFrame()->MapViewToModelPos(rInf.GetIdx()));     813     IFieldmark const*const pBM = rInf.GetTextFrame()->GetDoc().getIDocumentMarkAccess()->getFieldmarkAt(aPosition);     814     OSL_ENSURE(pBM && pBM->GetFieldname( ) == ODF_FORMCHECKBOX, "Where is my form field bookmark???");
    815     if (pBM && pBM->GetFieldname( ) == ODF_FORMCHECKBOX)
    816     {
    817         Width( rInf.GetTextHeight(  ) );
    818         Height( rInf.GetTextHeight(  ) );
    819         SetAscent( rInf.GetAscent(  ) );
    820     }
    821     return false;
    822 }

So putting "Height" first would change nothing.

    817         Height( rInf.GetTextHeight(  ) );
    818         Width( rInf.GetTextHeight(  ) );

Julien

On 18/11/2019 09:18, Miklos Vajna wrote:
Hi Julien,

I would just swap the width/height and wait for the first use-case that
indeed wants a vertical (rotated) checkbox.

Regards,

Miklos

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.