summaryrefslogtreecommitdiff
path: root/cppcanvas
AgeCommit message (Collapse)AuthorFilesLines
2014-04-09fdo#77229 EMF+ rendering: improve EmfPlusSetClipPath's CombineModeExclude caseMiklos Vajna1-1/+23
This is still not perfect, but at least we now don't do the opposite of what was asked. Change-Id: I5e144c5ec2987902e65b2eb472259d9c39bbbd11 (cherry picked from commit c2af50eb6df396c957890a6b912b8f3185893551)
2014-02-12EMF+: Only draw endcap outline if not filled, fix endcap scaling.Andrzej Hunt1-17/+32
Change-Id: I4520eea08e43ccd657c1db03b258ef84612da971 Reviewed-on: https://gerrit.libreoffice.org/7726 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit 8d1ca883b119857daa3b8d0ece9da90917589040) Reviewed-on: https://gerrit.libreoffice.org/7742 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-03EMF+: mapping can rotate the width vector, so use resulting length.Andrzej Hunt1-1/+1
Otherwise (i.e. with non-vertical lines) the width will be incorrect, and can result in lines disappearing as the resulting X component can be tiny/approaching zero. Change-Id: Icf3b7c10c627594600b517b8ff445f8df87c56f8 (cherry picked from commit 83f2b3c590120a60b5e94fb1a15054ebe0745dbb) Reviewed-on: https://gerrit.libreoffice.org/7249 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-03EMF+: actually use lineJoin attribute for polygons.Andrzej Hunt1-10/+18
Change-Id: I5b369703333332598353d9817f0253bbe5fc3601 (cherry picked from commit 9b1ceabd5f696500d4fe2acb89170bd987966a9b) Reviewed-on: https://gerrit.libreoffice.org/7248 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-03EMF+: Integer coordinate values are signed.Andrzej Hunt1-2/+2
Previously any coordinates with negative values would not be rendered (as they would incorrectly appear to be outside the visible area). (cherry picked from commit d8dedc775cedf0e9daf9284bc7e3a0331ccd2963) Change-Id: I5babcec50d48dc2a6288a01685db61fbb7058680 Reviewed-on: https://gerrit.libreoffice.org/7247 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-08EMF+: Fill line cap object if EmfPlusCustomLineCapDataFillPath is set.Matúš Kukan2-4/+21
Change-Id: I7b53a8f18e1fb24b1ae0322bdf0980e431a0725f (cherry picked from commit 131f3230d98f24faf57d9404e333cb1fb183345b) Reviewed-on: https://gerrit.libreoffice.org/6960 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-06EMF+: Do not ignore source rectangle of the image to be rendered.Matúš Kukan1-0/+2
Change-Id: I4f861c7653c89d8f1ca73696e885f33f7bfc3b06 Reviewed-on: https://gerrit.libreoffice.org/6932 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-27EMF+: Line thickness has to be considered when drawing the caps.Jan Holesovsky2-33/+45
Change-Id: I6043ee3c214f453afaef06125993c73be624c07e Reviewed-on: https://gerrit.libreoffice.org/6832 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2013-11-27EMF+: Parse and render custom line cap data.Jan Holesovsky2-33/+290
Contains the following commits: * EMF+: Small cleanup & more logging in preparation for line starts & ends. * EMF+: Parse custom line cap data for start and end line caps. * EMF+: Render custom line cap data. * EMF+: Set the stroke attributes on the custom line caps. Change-Id: Ibdf69c7944e4d027d9dc6974bd740f9b70fb5079 Reviewed-on: https://gerrit.libreoffice.org/6831 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2013-11-27EMF+: Implement line dashing.Jan Holesovsky1-2/+49
Change-Id: I9eb21c0a8b5baa5b0080845f61b12fc65034d959 Reviewed-on: https://gerrit.libreoffice.org/6830 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2013-11-27EMF+: Stroke size is always supposed to be absolute.Jan Holesovsky1-1/+1
Change-Id: I7221311e5dee6384dc2d1c071bf6f1c61811895a Reviewed-on: https://gerrit.libreoffice.org/6827 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2013-10-18n#812793: Reverting the workaround.Muthu Subramanian1-5/+0
2013-06-10cppcanvas: try to make MSVC tinderbox happyMichael Stahl1-4/+4
Change-Id: If4fd5a788d3907a986e27f5f53d5995c7035f685
2013-06-07Transform the clipping polygon before using itFridrich Štrba1-0/+1
Change-Id: I71a00f7d4b80ef41b637889e51a414fac6883ba1 (cherry picked from commit abdbb847fa135dd758ef3ef99db4c07a2671ca47) Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-06-07fdo#65502 - EmfFillPie fix.Michael Meeks1-8/+9
Change-Id: I395ef5f5175b9a2d758f4023605b8e2d4dce859f
2013-05-20fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFORadu Ioan8-60/+50
- replaced RTL_CONTEXT_ with SAL_INFO - replace OSL_* with SAL_* Change-Id: I0054bc90fdcaa2fef7e1d98a0528277be4fc341e Reviewed-on: https://gerrit.libreoffice.org/3917 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-05-12Janitorial: indent code correctlyChris Sherlock1-11/+11
Change-Id: I9fcbeb5f60df1a977347076dac82d4b5f7aba2c1 Reviewed-on: https://gerrit.libreoffice.org/3867 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-05-12fix buildDavid Tardon1-1/+1
Change-Id: Iae000243265335e3f0bc6bd8979c2131243c48f9
2013-05-12EMF+ fixesChris Sherlock1-9/+26
A number of fixes have been made to commit 256e42646bedbeb9cba900f962f36ba4b1a1cda3: * Missing redirect in SAL_WARN - only gets picked up when DBG_LEVEL > 1 * Some errant newlines in SAL_INFO * Some missing braces * Missing semi-colon fixed (!) * Changed int to sal_Int32 (causing ambiguity error) * Add dumpWords to the SAL_WARN that ensures that size is not greater than length * Show values when proessing EMF+ comment record (only enabled when DBG_LEVEL > 2) * Missing std::hex in SAL_INFO Change-Id: I059ba24964dd428a56a31d100109cfec938a8a49 Reviewed-on: https://gerrit.libreoffice.org/3861 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-05-10Fix: change to std::dec after having used std::hexChris Sherlock1-31/+31
The basefield flag of a stream is persistent, which I didn't realise before. This fixes commit 256e42646bedbeb9cba900f962f36ba4b1a1cda3 Change-Id: Ic0076c63ae6236ae75dcd79d108add27391b2125 Reviewed-on: https://gerrit.libreoffice.org/3842 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-05-08Don't leak all of the EMF+ graphic objects.Thorsten Behrens3-6/+8
Change-Id: I7951a9d25da5feec997dd0643f8579f5bcd0ee0f
2013-05-06Fix adaption to SAL_INFOStephan Bergmann1-3/+1
Change-Id: I12e32c0323e21946b795ca7f2af392930f55eed6
2013-05-06Convert EMFP_DEBUG to SAL_INFO, etc.Chris Sherlock1-203/+206
* Change to SAL_INFO instead of EMFP_DEBUG in emfplus.cxx * Use #ifdef OSL_DEBUG > 1 to conditionally compile in debugging routines * Remove some commented/conditionally compiled out code * Change logging area for SAL_WARN from cppcanvas to cppcanvas.emf Change-Id: I6db0021807634070cfa2fee0f07e32d235b3d2f3 Reviewed-on: https://gerrit.libreoffice.org/3782 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-05-02Convert from EMFP_DEBUG to SAL_INFOChris Sherlock1-12/+6
* Change to SAL_INFO instead of EMFP_DEBUG in implrenderer.cxx * Add new log area cppcanvas.emf * Update comment in log.hxx to reference the new location of log-areas.dox Change-Id: I5d710725339f58a111a2f3494c3a72f685624322 Reviewed-on: https://gerrit.libreoffice.org/3726 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-04-29Clang cleanup, unaligned if statementNoel Grandin1-7/+3
The extra semi-colons were confusing clang. Just remove the macro, it's not adding any real value. Change-Id: I7f7c312d2c0167a17e31624e197ae75b77fa0c2f Reviewed-on: https://gerrit.libreoffice.org/3677 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-04-26fdo#60638: Workaround should be in FillRects rather than FillPolygon.Muthu Subramanian1-5/+7
2013-04-25n#812793: (Workaround) Transparent background import in EMF+.Muthu Subramanian1-2/+6
EMF+ seems to have alpha of 0xff for transparent background!
2013-04-24Don't point to inc directories that don't exist any longerTor Lillqvist1-1/+0
Change-Id: Ia160f0ee3e9480c60056d38bf11a6b139b53424f
2013-04-24gbuild: drop uses of removed packagesDavid Tardon1-2/+0
Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-23execute move of global headersBjoern Michaelsen17-1309/+0
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a
2013-04-07remove needless forward rtl::OUString declarationsLuboš Luňák7-28/+0
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák10-39/+39
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-05new module i18nlangtagEike Rathke2-2/+2
Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-03-27-Wunused-macrosStephan Bergmann1-5/+0
Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
2013-03-22implemented BeginContainerNoParams and EndContainer recordsRadek Doulik2-26/+67
- plus a bit of refactoring to reuse code Change-Id: I416d2c47800752a27e2dc79f9b55b096e641062f
2013-03-19implemented EmfPlusRecordTypeSave and EmfPlusRecordTypeRestore recordsRadek Doulik3-3/+58
Change-Id: Iac87870c0f50a74b7f4db4c674adcded1494c055
2013-03-19WaE: Potentially uninitialized local variableTor Lillqvist1-1/+8
Change-Id: I497c30dfd951132fe2f7998a158b6c14efe5ebf7
2013-03-15implemented EmfPlusRecordTypeSetClipRect recordRadek Doulik1-4/+33
Change-Id: I0778cf44a1f4e920e723c17c34f6de4f8eed2342
2013-03-15ops, fix buildRadek Doulik1-1/+1
Change-Id: If72f3c1e0d7a14779074d898c4d1eb0fe8f07871
2013-03-15implemented EmfPlusRecordTypeDrawEllipse recordRadek Doulik2-33/+47
Change-Id: If8d7c210e437a041f3202c09f3d26d621b5af748
2013-03-15WaE: unused variableDavid Tardon1-2/+1
Change-Id: I05d9fdd234374924c7876d2c123656495016b0ea
2013-03-15implemented EmfPlusRecordTypeFillEllipse recordRadek Doulik1-0/+26
Change-Id: Id9362d05ddae2066f2fa289640f447393d7cda84
2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks1-2/+0
2013-03-09Work around GCC 4.8 -Werror=virtual-move-assignStephan Bergmann1-1/+2
...complaining that "defaulted move assignment for ‘cppcanvas::SpriteCanvas’ calls a non-trivial move assignment operator for virtual base ‘cppcanvas::BitmapCanvas’." Change-Id: I4dc92176dbec62f0ae4fa7d2842073077ecb8fc3
2013-03-06do not crop the bitmap, it is already cropped. more debug outputRadek Doulik1-4/+6
Change-Id: Iac6cd20833e0de9d8135fc4a3a0c4e5884a0e9fa
2013-03-06straighten out that dreaded indentationEike Rathke1-163/+167
Change-Id: Ia082475c5d00dfd7c09da08b535e685f8513242c
2013-03-06fdo#60148 Clean up warnings from the Clang compiler pluginnccuong1-440/+442
Change-Id: I08d755677c46c476710ecbd067ed9f7e2f54a671 loplugin: clean warnings: unused variables, incorrect indentation and log area. Reviewed-on: https://gerrit.libreoffice.org/2544 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-03-04remove unused and commented out codeThomas Arnhold3-21/+0
This code gets never called. Change-Id: I59228cba1444b7b09f74eb5cf8da9b755c7c32f7
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold1-3/+3
Using the autocorrect list of LibreOffice extras/source/autotext/lang/en-US/acor/DocumentList.xml Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657 Script: http://pastebin.ca/2327716
2013-02-28remove all d.lstMichael Stahl1-0/+0
Change-Id: Icba4218c5f9fe89d183d25ea82a8eae52881f885