[Libreoffice-bugs] [Bug 111785] PPTX: Hatch fill background color is not exported to PPTX

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 7 09:24:41 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=111785

--- Comment #6 from Tamás Zolnai <zolnaitamas2000 at gmail.com> ---
(In reply to Shinnok from comment #5)
> Tamas, could you provide a bit more detailed code pointers for this easyHack?

Of course.
The documentation of the fill API properties is here:
com/sun/star/drawing/FillProperties.idl
Where you see a xPropSet->getPropertyValue( "FillStyle" ) call, this means the
code get an API property of the shape.
It's also a good idea to check how the Area dialog sets the fill properties for
hatch (context menu -> Area -> Hatch tab):
cui/source/tabpages/tphatch.cxx
You can check what properties are set when a background is specified for a
hatch fill (use some debugging for this). This code uses the internal items to
set fill properties not the API.
The internal items are mapped to API properties here:
include/svx/unoshprp.hxx, check the block starting with "#define
FILL_PROPERTIES".
For example XATTR_FILLHATCH is the ID of the internally used item which defines
the hatch type and this is mapped to "FillHatch" API property.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170907/79ef91b0/attachment.html>


More information about the Libreoffice-bugs mailing list