summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-04-14tdf#98994 Fixes parsing CDR7 files with no bbox surrounding text objectsHEADmasterAndrey Sobolev1-0/+7
As of now, libcdr gets the coordinates of a text object from the BoundingBox (bbox entry) corresponding to the object. However, there are certain CDR version 700 files that do not contain bounding boxes for text objects. In this case the coordinates of the text object can be found from the transform (trfd entry) for the text object. This commit provides the coordinates from trfd if the bbox coordinates of the object are 0 (the case with no bbox). Change-Id: I68a7aefbb8a8e2b24466f9dd3fd5e460e28ad9e7
2021-03-29debug build with maximum werrorFridrich Štrba3-22/+22
Change-Id: I09a451d7841ef049bbefb399a7319df4167952b0
2021-03-29Build with maximum werrorFridrich Štrba13-149/+151
Change-Id: I44ca70cc7c0ce726b91cccfb11128b163e7e4a4b
2021-03-29We don't want to enumerate all lcms enum values when we use only 2Fridrich Štrba1-1/+1
Change-Id: If3f8bddd56c5336092297797c91674b434ffa4e5
2021-03-27Silence doxygen warningsFridrich Štrba1-2/+2
Change-Id: Ie08458b218ad56d7ee10466b3cf0c418c838c1d8
2021-03-26Unused value + some more meaningful debug outputFridrich Štrba1-3/+4
Change-Id: Ic8e94d97a8e85efd47c5e4f6ed9dcd87dedaa570
2021-03-26Start release cycle 0.1.8 by bumping the versionFridrich Štrba1-1/+1
Change-Id: I058962c08a0b1f7feb57771bcd4e0336971bef40
2021-03-26Sync the code closer with txsm16 in oletoylibcdr-0.1.7Fridrich Štrba1-40/+36
Change-Id: I276a4b844418c2ffa818560bd8b93258d539dbaa
2021-03-26Fixes of txsm for 7 - 15Fridrich Štrba1-10/+68
Change-Id: I212fa6a5a5243d57e6941d3398b20f830de4b26c
2021-03-26Fixes for text-on-path in txsm6Fridrich Štrba1-2/+18
Change-Id: Iae442c48ea153436a9e588313d109b2f91acc06c
2021-03-25silence warnings of newer boost in json parserFridrich Štrba1-0/+3
Change-Id: Icfbd31cb08c994c494758dcd86b72ea68b4f54b0
2021-03-25Fixes for omnibus txsmFridrich Štrba1-51/+30
Change-Id: I227aef5ff9ef68f1a377181c6779358383971507
2021-03-25Some advance in txsm6Fridrich Štrba1-62/+66
Change-Id: Ib81df0f50fa81d0c9b573d5b276ea66d2212e9b2
2021-03-25Default style id for txsm5Fridrich Štrba1-2/+2
Change-Id: Ia7ada38f62d17abebc3d7d29d023750aac4dd451
2021-03-25Some advance in txsm5Fridrich Štrba1-61/+72
Change-Id: I52e03639bd8357cae4d1ad382089ddbf73512c7e
2021-03-23Add debug output to see immediately if grammar failsFridrich Štrba1-0/+3
Change-Id: I46402402931dad2190ef8aa405dd146a2d0fcf16
2021-03-23Fix the spirit grammar to cater for more casesFridrich Štrba1-2/+4
Change-Id: I8dd86e35c71e7657128ebd63a7cafe730c0daf47
2021-03-22Parse and use fallback colours if they existFridrich Štrba1-6/+13
Change-Id: I970bfbe0c00032ad196dd06bf27d32e341afc3f6
2021-03-22Revert "use boost spirit in unicode when appropriate"Fridrich Štrba1-8/+5
This reverts commit e2b0c8a788ec124a58a63ddc56d77fa317624bf5.
2021-03-22use boost spirit in unicode when appropriateFridrich Štrba1-5/+8
Change-Id: I9c97f3010ba7d4ec38dde0825e61fca6c7bce62e
2021-03-22Read the json as utf-8 for versions 17+Fridrich Štrba3-1/+11
Change-Id: I4fa754ba03be06594e421de1d03be25aec0e5c1e
2021-03-22use the iso8859_1 to parse coloursFridrich Štrba1-5/+6
The standard parser chokes on some characters due to conversion of codes >127 into negative numbers Change-Id: I3e5ac008376997c0b9b657016c293d5702bf75ec
2021-03-22A possible fix of multi-paragraph text in frameFridrich Štrba1-1/+14
Change-Id: I8a6a455b2dd57b9aa0d2fa3a0e3298f623f1586d
2020-11-04Fix icu-68.1 buildMiklos Vajna1-1/+1
This is really similar to LibreOffice core.git <https://gerrit.libreoffice.org/c/core/+/105151>. Change-Id: I91c5a9a5f573086d06428b16a459852d993ea31f
2020-02-19Some more colour model and palette id mappingsFridrich Štrba1-0/+7
Change-Id: Ic91d9631687208351d24d57677df834bc752523e
2020-02-19Some progress with multiparagraph text in versions x6 and moreFridrich Štrba1-48/+55
Change-Id: I4ecb2af0918bfe5a3f925ecf6e60cf72a2bbc282
2020-02-19Move debug messages inside the _resolveColorPalette functionFridrich Štrba1-4/+5
Change-Id: I07aff123bf56d5202acca17233d525cf572a5ffc
2020-02-19Some more palettes for text x6+Fridrich Štrba1-0/+3
Change-Id: I614ce56b773b136aa2fb08fb5e527066cc352bd9
2020-02-18Resolve colour palettes for x6 text colours tooFridrich Štrba1-1/+7
Change-Id: I88ba199fa77913e0bb075004f052bf8226efec52
2020-02-18Extract palette resolution into a separate functionFridrich Štrba3-451/+458
Change-Id: Ifd7e8c42c1ff2cd0986a467a27335af6b441b2f8
2020-02-09Some progress of reading palettes in x16+ text coloursFridrich Štrba1-12/+23
Change-Id: I6d08021d222b21c43cd0f29a1ed8d4aad21a45a5
2020-02-06Some more work on parsing CDRx6+ character coloursFridrich Štrba2-14/+46
Change-Id: Ia80c4efe9b6c3282a9ee92d9b75c9c16e1bfdc50
2020-02-06Typo in debug outputFridrich Štrba1-1/+1
Change-Id: Ia7762b1946ba50d71a4d53bbcffb963701d3b320
2020-02-06More robust parsing of x3 fillsFridrich Štrba2-8/+50
Change-Id: Ib383d22dc33f494d69cee30f3b6100f1617cc034
2020-02-05Simplify the parseColourString function a bitFridrich Štrba1-27/+14
Change-Id: I000c8ad4dfdaa7cc250687d542284585e2a903ea
2020-02-04Fix txsm reading for versions 16 and aboveFridrich Štrba1-1/+3
Change-Id: I7f03558e5aa5aa73fdb22f58d29eeb64342c198d
2020-02-04boost::property_tree::ptree::count does not recurse into childrenFridrich Štrba1-2/+6
Change-Id: I6892218152d14036b468826fc91f763787554ee3
2020-02-04Extend colour string parsing to RBG255 modelFridrich Štrba1-10/+32
Change-Id: I935d553727aef0e9ee21bac254c6fdc24349c93f
2020-02-04astyleFridrich Štrba1-1/+1
Change-Id: Ibe31785f36920fc43de52833be25a1b82be9832c
2020-02-03bump versionFridrich Štrba1-1/+1
Change-Id: Ib9861375302237d2d96c32fea5604064c395f68d
2020-02-02Fix txsm for version 15libcdr-0.1.6Fridrich Štrba1-1/+1
Change-Id: I188be62b02807f6704ce78ef2a9b1011667ed46a
2020-02-02improve readFild for versions 13 and upFridrich Štrba1-32/+12
Change-Id: I9d5d2f92da990b9e46998517bdf1b750ddb00315
2019-10-09CDROutputElementList::draw: Micro perfomance improvementAlbert Astals Cid1-1/+1
make the auto variable of the for loop const &, otherwise there's a copy involved. Copying a shared_ptr is not very expensive but not copying it is cheaper :) Change-Id: I861e8b58441b45e2e7aa045e2aa7c0521c73ebbe Reviewed-on: https://gerrit.libreoffice.org/80303 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Miklos Vajna <vmiklos@collabora.com>
2019-10-08Fix -Wdeprecated-copy warningsAlbert Astals Cid3-14/+8
New gcc complains when you're using the default defined operator= but your class has an explicitely defined copy constructor. This is because if you implemented the copy constructor is usually because you needed something special, so you'll need that special in the assignment operator. In the cases here it's not really a problem since the explicitely defined constructors where just doing the same as the default so i've just marked them as default as well as the assignment operator Example: CDRParser.cpp: In member function ‘void libcdr::CDRParser::readFont(librevenge::RVNGInputStream*, unsigned int)’: CDRParser.cpp:2550:53: warning: implicitly-declared ‘libcdr::CDRFont& libcdr::CDRFont::operator=(const libcdr::CDRFont&)’ is deprecated [-Wdeprecated-copy] 2550 | m_fonts[fontId] = CDRFont(fontName, fontEncoding); | ^ In file included from CDRParser.h:18, from CDRParser.cpp:10: CDRTypes.h:372:3: note: because ‘libcdr::CDRFont’ has user-provided ‘libcdr::CDRFont::CDRFont(const libcdr::CDRFont&)’ 372 | CDRFont(const CDRFont &font) | ^~~~~~~ Change-Id: I3011f415cc1e44222509d69a2d5a791a3e3e91e1 Reviewed-on: https://gerrit.libreoffice.org/80302 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Miklos Vajna <vmiklos@collabora.com>
2019-07-02Avoid UB converting from double to int via unsignedStephan Bergmann1-15/+15
See <https://gerrit.libreoffice.org/#/c/73181/> "external/libcdr: Avoid UB converting from double to int via unsigned" for details. Change-Id: I667dbca60674c183b0b7bee50deb0324becd6b21 Reviewed-on: https://gerrit.libreoffice.org/73182 Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Tested-by: Michael Stahl <Michael.Stahl@cib.de>
2019-01-29Fix too small loop variablesMiklos Vajna3-6/+6
These loop variables had narrower type than the iteration's upper bound. Change-Id: I5a2b4b41d52c931ab2de476b41957b30b22b0344
2019-01-28Add missing includeMiklos Vajna1-0/+1
CMXParser.cpp:42:43: error: expected ')' CDR_DEBUG_MSG(("invalid tag length %" PRIu16 "\n", tagLength)); ^ CMXParser.cpp:42:19: note: to match this '(' CDR_DEBUG_MSG(("invalid tag length %" PRIu16 "\n", tagLength)); ^ 1 error generated. Change-Id: I9575a96327a62dc6c44950d35a8740242e1a4433
2018-12-29fix conditionalDavid Tardon1-2/+2
Change-Id: I29bad8c1e96f17bf8304729baff8305584371a33
2018-12-29bump micro versionDavid Tardon1-1/+1
Change-Id: I1e013489374d6f36d2b299c78464a3ebaf8eadbe
2018-12-29fix var namelibcdr-0.1.5David Tardon1-1/+1
Change-Id: I7bd39a4aa5b7dd0a267225787463804c7e274ec6