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


Hallo Miklos,

Miklos Vajna schrieb am 27-Feb-19 um 09:22:
(Or just do the same using the UI: open the document in question, close
it, and see the preview metafile in the start center.)

Saving in the UI creates the Thumbnails folder with the preview. But when I use "save" (that from SdModelTestBase), the resulting file has no Thumbnails folder at all.

compareWithShapesDump(xDocShRef, "myFirstShapesDump", true /*bCreate*/);
verifies, that the shape is indeed contained in the loaded file. And I see, that the shape properties "Coordinates" and "Segments" are correct.

The error is not in the model, but in rendering.

Further observations:
I can get a
SdrObjCustomShape* pCustomShapeObj

But
basegfx::B2DPolyPolygon aLineGeometry = pCustomShapeObj->GetLineGeometry(true /*bBezierAllowed*/);
does not work.

The shape members mXRenderedCustomShape and mxCustomShapeEngine are empty. I have tried to generate them by calling GetSdrObjectFromCustomShape(). It sets "com.sun.star.drawing.EnhancedCustomShapeEngine" as engine. But in the given context the servicemanager has it neither in data_.services nor in data_.namedImplementations.


I will now try to work in svx/qa. I can get an xShape from the file and now try to get a B2DPolyPolygon via CreateLineGeometry().

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.