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


Hi,

Tomaž Vajngerl schrieb am 20-Mar-20 um 18:13:

Hi,

    Do you know a specific case where that actually matters? My personal
    position
    on integers is "use int, unless you explicitly need something else".


We are dealing with 100th-mm or twip units, which can get quite big (in writer we are always referencing relative from page 1 AFAIK) and could go to use EMU in the future (because it resolves lovely both imperial and metric, so my hope is that we could get rid of MapMode nonsense), so I would go with sal_Int64. Anyway, a compiler / architecture dependent type is the last one I would use.

The problem for huge values is not Writer but Calc. For example, make a sheet with row height 10cm on all rows. Insert a shape in A2000 and look at the position information in the status bar. (Shapes are anchored to page as default). Then insert a shape in A3000 and look again, then in A10000. And the sheet goes up to A1048576!

Kind regards
Regina

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.