Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-04-18 | move writerfilter inside sw | Noel Grandin | |
writerfilter wants to convert incoming RTF and OOXML files into writer's document model. But it currently has to do so by manipulating the limited subset that we expose through the UNO API. This is both slower and less accurate than having access to the full document model. So move it inside, and then we can strip out various hacks, and optimise imports. Change-Id: Ie1114d28130ef5f9a786531bc552cb8ee7768015 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165953 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> | |||
2024-02-13 | tdf#155663 writerfilter: RTF import: don't lose \piccrop* | Michael Stahl | |
For DOCX the a:srcRect is imported in oox module in BlipFillContext and set on the XShape; obviously that doesn't work for RTF. The crop was already taken into account in RTFDocumentImpl::resolvePict(), but only to set the size of the picture; to actually set a crop effect, set shape's "GraphicsCrop" property in dmapper::GraphicImport::lcl_attribute(). Change-Id: Ib12853724744542a09b0073fefc42ad32bb2ff19 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163310 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> | |||
2024-01-17 | tdf#158950 Paste as RTF loses char color and paragraph alignment from styles | Noel Grandin | |
This logic partially originated in commit 8e8f9388c323ad3c32cef3f91609ad19386b7d56 Author: Miklos Vajna <vmiklos@collabora.co.uk> Date: Tue Apr 22 12:53:24 2014 +0200 Related: fdo#77600 RTF import: RTFValue::equals: compare attribute content But it is rather weird to compare RTFSprms this way, comparing each attribute to a parent RTFValue. Making the comparison more "normal" fixes the reported bug while not breaking fdo#77600 Change-Id: Iee224c7bc9542c359f8a71086230e4b53c1c3e16 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162164 Reviewed-by: Regina Henschel <rb.henschel@t-online.de> Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com> |