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


Hi all,

in connection with discussions in bug 108065, I looked at the export of transparency in charts.
https://bugs.documentfoundation.org/show_bug.cgi?id=108065
[FILESAVE DOCX] Gradient property of the data series not preserved when saved as DOCX

The problem has several reasons
a) void DrawingML::WriteGradientFill(awt::Gradient rGradient,
     const uno::Reference<beans::XPropertySet>& rXPropSet)
expects a property "FillTransparenceGradient" but in charts only "FillTransparenceGradientName" is available.
b) void ChartExport::exportFill( const Reference< XPropertySet >& xPropSet )
does not consider transparency gradient in case of solid fill.
c) import of a chart considers transparency only on data point filling.

What I have done so far is in https://gerrit.libreoffice.org/#/c/81165/1

My questions:
To get a gradient form "FillTransparenceGradientName", I have found "com.sun.star.drawing.TransparencyGradientTable". To use it, I need a model. That is available in class ChartExport, but not in the base class DrawingML. Is there a way to get the gradient itself from its name in DrawingML::WriteGradientFill()?

My idea for the export works for charts in Calc and Writer. But any (e.g. a default shape without any gradient or transparency) export from odp to pptx crashes. So I'm doing something fundamental wrong. But what?

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.