summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-05-31Skip EPSImport recordsHEADmasterDavid Tardon3-0/+12
This is completely experimental, based on a single v.7 (Mac) document. Change-Id: Id6ca4cea735a3f74093fefe3b02246900d8b8a67
2021-05-31Stop parsing when an unknown record is encounteredDavid Tardon1-0/+5
The current code just emits a debug message and continues with the next record, which is parsed at the same position as the skipped record, therefore it's almost certain that the result of parsing it--and all the following records--is going to be garbage. IMHO it's better to stop right away and hope that enough has been parsed to produce a meaningful output. Change-Id: I07a5e45950ac3243b99a049b782f45a027fbeb18
2021-05-31Show uknown dictionary entries in debug outputDavid Tardon1-2/+7
Change-Id: I406c4e64681abd22ebaae77def37455371523b54
2019-11-03drop unneeded includeDavid Tardon1-2/+0
Change-Id: I33e02655c8463470924dc5b43988a16f4ad6dcad
2019-11-03avoid unnecessary copyingDavid Tardon1-1/+1
Change-Id: If1963b8a3e6851e02b95973967ffafd4afb2c977
2019-10-18Fix -Wdeprecated-copy warningAlbert Astals Cid2-4/+3
FHCollector.cpp: In member function ‘void libfreehand::FHCollector::collectXform(unsigned int, double, double, double, double, double, double)’: FHCollector.cpp:285:68: warning: implicitly-declared ‘constexpr libfreehand::FHTransform& libfreehand::FHTransform::operator=(const libfreehand::FHTransform&)’ is deprecated [-Wdeprecated-copy] 285 | m_transforms[recordId] = FHTransform(m11, m21, m12, m22, m13, m23); | ^ In file included from FHCollector.h:18, from FHCollector.cpp:14: FHTransform.h:22:3: note: because ‘libfreehand::FHTransform’ has user-provided ‘libfreehand::FHTransform::FHTransform(const libfreehand::FHTransform&)’ 22 | FHTransform(const FHTransform &trafo); | ^~~~~~~~~~~ Change-Id: I8b3c7e00aff715662af13995aa4c623d33346b3c Reviewed-on: https://gerrit.libreoffice.org/80602 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Miklos Vajna <vmiklos@collabora.com>
2019-10-07Add missing semicolon to fix build with icu 65.1Heiko Becker1-1/+1
Change-Id: I7a0b0d600e9f7770245a7485813a944bfac4f088 Reviewed-on: https://gerrit.libreoffice.org/80224 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Miklos Vajna <vmiklos@collabora.com>
2019-02-07Fix too small loop variablesMiklos Vajna1-2/+2
These loop variables had narrower type than the iteration's upper bound. Change-Id: I39bc481450dafec153a93d540e64585ec6125401
2018-05-05disable werror by defaultDavid Tardon1-1/+1
Change-Id: I84c08aac30ce0b9abbbc1a6f5e57b4a114c73d47
2018-02-01WaE: unnecessary parentheses in declaration of ‘padding’David Tardon1-1/+1
Change-Id: I6de141c5ec2520538f8232bd524d29e25710bef5
2018-01-28fix the name of the font name propertyDavid Tardon1-3/+3
Change-Id: I8f10fc506012f0f393b75f11d2079873d785871f
2018-01-15ofz#5295 fix division by 0David Tardon1-7/+10
Change-Id: I2df174d871ec721210988f5348ebb719cd4a100d
2017-11-10Use auto when declaring iterators and when initializing with a castMiklos Vajna2-17/+17
Change-Id: I445a63541970ee7d9f316cf8760411fda6d30f57
2017-10-28drop outdated MSVC project filesDavid Tardon5-411/+0
Change-Id: I9764491510748a46ad6576934ab637fe6bf914a2
2017-10-28rely on pkg-config to find zlibDavid Tardon1-6/+1
Change-Id: I7483b5662a376ab7e4dbd481eb8fb1ef9fc6e67a
2017-09-28avoid output from fuzzerDavid Tardon1-2/+2
Change-Id: I80483d8e859164129134c9adfc039c7964afc7a2
2017-09-16bump releaseDavid Tardon1-1/+1
Change-Id: Ic0fa6f32af706d5e1c8cb5e957f2f686c5344e9b
2017-09-16ignore test-driverlibfreehand-0.1.2David Tardon1-0/+1
Change-Id: I544a0f55210652fe40b9c59f94365361e46c025c
2017-09-16add unit test for the internal streamDavid Tardon7-2/+218
Change-Id: Iedf880acedbad9d42f4926c71360f21f02e34e3c
2017-09-16impl. seek-to-end in internal streamDavid Tardon1-0/+2
Change-Id: Ideab55a0e52d537246960e0652ceb9cca0fff0a2
2017-09-16reserve required sizeDavid Tardon1-0/+1
Change-Id: I7f7d1cf7dd0a8d54446be445d06bb098267750ac
2017-09-16cid#1219695 sanitize loop boundDavid Tardon1-0/+2
Change-Id: Ie611c0413bdaec407f970a2be78a4ee3eeb75bce
2017-09-16reserve required sizeDavid Tardon1-0/+1
Change-Id: I4e0a9bd703083d1d9b99e23a079a7d89986badaa
2017-09-16cid#1219691 sanitize loop boundDavid Tardon1-0/+2
Change-Id: Ida9e320b3d8ac3d811548b7e5f485c2849b46a78
2017-09-16reserve required sizeDavid Tardon1-0/+1
Change-Id: I56bd0c6af4d9c1784d153f704a990e14b95caf26
2017-09-16cid#1219687 sanitize loop boundDavid Tardon1-0/+2
Change-Id: I6448038bdc54c7dd6a6e906d8d51a19c4a1a1ef3
2017-09-16reserve required sizeDavid Tardon1-0/+1
Change-Id: Iedd92f37b7b80f8ac7b2b877b53fcb0d076cb963
2017-09-16cid#1219683 sanitize loop boundDavid Tardon1-0/+2
Change-Id: Iada90b4cef5e35e465e385b45ef1e61dd1265c9d
2017-09-16reserve required sizeDavid Tardon1-0/+1
Change-Id: I34f2a3bb02e046a22a9207492a06f2a56682d618
2017-09-16cid#1219682 sanitize loop boundDavid Tardon1-0/+2
Change-Id: Ifa4db921d7123379caf542e66e7c075de3f87ab3
2017-09-16add coverity to NEWSDavid Tardon1-0/+1
Change-Id: Ie493416230b8aa3e4b76671838d1f70d4f9d6cfd
2017-09-16cid#1417723 sanitize loop boundDavid Tardon1-0/+2
Change-Id: Ic7596aa673a2cb7e702566b246437b42526173ac
2017-09-16drop unneeded checkDavid Tardon1-9/+6
Change-Id: I4e0e8b6e7d8ebdfea8cb94ace4ccf857d63a7c82
2017-09-16limit scope of varDavid Tardon1-1/+1
Change-Id: I6e803134b361920a9ee772587db3929f4d8f9cd6
2017-09-16reserve required sizeDavid Tardon1-0/+1
Change-Id: I18a929d8fe267a8ed8d0750cb348af4af1240b6c
2017-09-16cid#1306208 sanitize loop boundDavid Tardon1-0/+2
Change-Id: I33d0013a193f4d9a2f92332cde71ce2d00bd02a4
2017-09-16reserve required sizeDavid Tardon1-0/+1
Change-Id: I8a94b655476fca16cad36edcb76fb22e5e726e10
2017-09-16cid#1306206 sanitize loop boundDavid Tardon1-0/+2
Change-Id: I10b8c3fdf81c526394eca87b6b23b0955827aef3
2017-09-16cid#1219677 sanitize loop boundDavid Tardon3-0/+27
Change-Id: Id1f3e84c21b31256e03da591d2f856818b084f1a
2017-09-14prepare for releaseDavid Tardon2-1/+20
Change-Id: Ia5859777f6129d6695f9bbefe626ae0aa8e2ef8c
2017-09-10m4: MSVC defines __cplusplus as 199711L stillMiklos Vajna1-1/+1
See e.g. <https://stackoverflow.com/questions/37503029/cplusplus-is-equal-to-199711-in-msvc-does-it-support-c11>, on MSVC we can't depend on the value of __cplusplus, since that one is a too low value, even if everything else works fine.
2017-09-08assume modern enough ICU is availableDavid Tardon1-14/+1
Change-Id: If55510fcb94e91fa91e10813928de8ca80dab4e6
2017-09-01Convert explicit for loops to range-based ones where possibleMiklos Vajna2-38/+38
This is most useful in libfreehand::FHCollector::_outputTextObject() to avoid repeating ourselves. Change-Id: I8e62bd02d2c058a45b449741759f73d2e051dd9a
2017-08-31Convert 0 to nullptr where it's used as a pointer valueMiklos Vajna7-90/+90
To make the code easier to read, because this means the remaining zeros all mean numbers. Change-Id: Iaacefbd691007ec6ffe360b810df5997952cc87e
2017-08-30Mark overriding member functions as 'override'Miklos Vajna2-51/+51
This does not affect the generated code (API or ABI), but: 1) Makes sure that in case the signature of one of these functions would change by accident, the build breaks as the function no longer overrides a base function. 2) Makes the code readable by explicitly marking all overriding functions as 'override', where previously the reader had to read the interface of the base class(es) as well to find out if the function is virtual or not. 3) Since 'override' implies 'virtual', remove the 'virtual' keyword where 'override' is present. Change-Id: Idc42f6babb9070436dd7b08f2332bd05e2c2d49d
2017-08-15ofz#2716 fix signed integer overflowDavid Tardon1-3/+3
Change-Id: Iad5123c7ae487a252cdf066bc237cbcc8444017c
2017-07-19v3: try to retrieve the text effect, v4: try to retrieve more complex textboxosnola5-82/+344
Note: The v4’s textboxes are some tables which can contain many rows and many columns. Currently, when a textbox contains several cells, I set its size to the table’s dimension. If we can chain textbox, we can do better (i.e. I begin to code it, look for HAVE_CHAINED_TEXTBOX in FHCollector.cpp) Change-Id: I886911f4bc5cc3a6aa878c0be96699030862d3f8
2017-07-19Try to retrieve more line/fill styles + correct textbox's rotation center.osnola4-25/+195
Change-Id: I7fccc17b00e5e0d82dcca572ac600fb5bbdb6744
2017-07-19Read BlendObject zone + try to retrieve the paragraph attributes...osnola7-37/+317
Change-Id: I4e9fad2a51ef568d607414d5edfb36d1d2d7a3dc
2017-07-13try to improve the parsing of v3 filesosnola8-44/+393
Change-Id: I59011935ce87d14309ff0265218b3f383f857ebd