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


Hi Krisztian,

I've created a commit that removes the need for SetMapMode for
ScOutputData::DrawGrid(), hopefully it will make it easier for you to do
the rest:

http://cgit.freedesktop.org/libreoffice/core/commit/?id=f76b2b3b1184383695a35fa104470fa3027e477b

It was quite a struggle to understand what is going on: Apparently
ScOutputData is initialized (and works) in pixels when it is initialized
with OUTTYPE_WINDOW, but in logic units, when it is initialized with
OUTTYPE_PRINTER.

For the moment, we unfortunately have to distinguish the pixel and
non-pixel cases, it's not possible to there a common case.  So let's
first continue with this and convert the rest of the methods so that
they don't need SetMapMode(MAP_PIXEL) any more.

Please do them one-by-one, and always test with the normal rendering,
rendering via gtktiledviewer, and export to PDF.

When we have that, the next will be to switch the ScOutputData's that
are initialized with OUTTYPE_WINDOW to use the logic units internally
too; there is just few of them - but I am sure that'll lead to some
other things to sort out too.

Thanks a lot,
Kendy


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.