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


Hi Regina,

comments inline :-)

Am 10.04.2016 um 00:46 schrieb Regina Henschel:
Hi all,

I have put a patch to Gerrit https://gerrit.libreoffice.org/#/c/23946/
It does only rendering, MetaActions are missing. But it is already so large, that I think a review would be good before I continue. Because I can only build and test on Windows, I would be glad, if you would test and review it for Linux and MacOSX.

I cannot help with Mac - have no possibility to build currently myself.
I can do a linux build - you can do that too on a VirtualMachine, I use that ;-)




For the warning-break [1] on MacOSX from Jenkins I need some help. I cannot compile or test on Mac. The value fMiterMinimumAngle has to be used in case eLineJoin == basegfx::B2DLineJoin::Miter in OpenGLSalGraphicsImpl::DrawPolyLine around line 886.
In content this has to happen in that place:
if ('current miter length' > 'miter limit')
then use the same statements as in case Bevel
else use the statement in line 892.

But I'm not sure about the meaning of variable 'length' in line#885.


The MetaPolyLineAction gets a LineInfo and a tools::Polygon, but LineInfo does neither contain miter minimum angle nor miter limit. Therefore my question is, how to resolve it. Making a total new MetaAction? Or extend LineInfo (similar as ExtLineInfo in pdfwriter)? Or extend MetaPolyLineAction to take a PolygonStrokePrimitive2D or a B2DPolyPolygon plus the needed line and stroke information separate?

Hard to say. It belongs logically to LineInfo, so I would opt to put it there. MetaActions support new versions, so the old will ignore the new values, the new can read them. It is necessary to set useful defaults when old Metafile is loaded, not to forget!


The module com::sun::star::rendering has a struct StrokeAttributes, which would contain all needed information. How is that currently used? Is it useful?

A fast grep shows that it is used in canvas and cppcanvas. It uses sal_Int8 for Cap and Join types, this makes it less useful from my POV...


Regards,
Armin


Kind regards
Regina


[1]
/Users/tdf/lode/jenkins/workspace/lo_gerrit_master/Gerrit/Gerrit/Platform/MacOSX/vcl/opengl/gdiimpl.cxx:770:167: error: unused parameter 'fMiterMinimumAngle' [-Werror,-Wunused-parameter] void OpenGLSalGraphicsImpl::DrawPolyLine(const basegfx::B2DPolygon& rPolygon, float fLineWidth, basegfx::B2DLineJoin eLineJoin, css::drawing::LineCap eLineCap, float fMiterMinimumAngle)


--
--
ALG (PGP Key: EE1C 4B3F E751 D8BC C485 DEC1 3C59 F953 D81C F4A2)


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.