# clang-format 5946eedfb78e250a40f14ae1e5b709e827b2504c b536e10390c171e96b6477c04d66023a1da543c4 78aa5db6999b8e8881f65ec10518110296840ff2 fd6150915253e382a7e9f674fe23a72a9a801761 d8efc393bff9c0ed38eac00f48ce1d525e1d08ce 1647bfa019124aefd34d8ad231d19399e93a6096 1dd4590f817cce0b9e973c4767551067067702b5 17407f808ed0ca5d65a98da186f7e2ab60dc641b ac4ea366ec040cdb68f93d42045cba5780852d9f 8815acd18f8995cbbf45c2a70629379cb9bfbf15 9eb929aa8cb3f5b0fee1264119a55cdd8cbe8f0e 5ea91ed27342766f2b6103ddb64f07e35af54e50 e539a492597c7312a8d0cccb4b386341bd4ec84a 42cbd5aa43f52d4de489fe0828bce4c5a324f9a0 4866a441cab472c1f44360abdc7074097aad1a26 0631c5da4257a657f923663bda851cf8bb3a8507 4e0be0c35024fc35d4815d2665e12f9ebf241025 06b1e244ff9502664fe79dc27346e4fd9968afbc 83f3706bf489a3ed37880353ca5ea90638c38fe7 298284f4a6578aefc4268b7f4b5de6c2e4203465 405809f566833315b624eee6cdb0cd86c56b65ef 40431b12b86aa8ede3a6d065645781c8e7710570 e1a42835d948b21f9d99d23feef5ae0f56ae3563 e73819983c45188ca990ca2b37f9bcf31fe0a2c7 9afa666120d8bb045f3569a77475a58c368c03a1 b86ca947115f2ef61dd71c7a43e7a3ec1f1cf3b0 4c1479d63972aaea0b1bfee1ffb56b530ca05655 349c525fd30121ad2148f6061d155815b8c83303 6dc2e26e0103137863f4e2d8c1f0c6511b164b66 7da92c6fff9549ebbea5e527b72ffd89faa46f71 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfvalue.cxx
AgeCommit message (Collapse)Author
2024-04-18move writerfilter inside swNoel 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-13tdf#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-17tdf#158950 Paste as RTF loses char color and paragraph alignment from stylesNoel 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>