summaryrefslogtreecommitdiffstats
path: root/cppcanvas
Commit message (Collapse)AuthorAgeFilesLines
* emf+: emulate hatch with color blendTomaž Vajngerl2014-07-211-2/+116
| | | | | | | Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: I2ac8f790c79c269d4c1fa650e703c3645c567ca4
* bnc#881024 Handle 0 font height just like outdev & drawinglayerTomaž Vajngerl2014-07-211-1/+12
| | | | Change-Id: I80055e4101873e0ddd408ac1f0ee9c75cc3bf6b3
* Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold2014-05-1523-68/+68
| | | | | | | Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* Blind fix for red Tinderboxes, followingJulien Nabet2014-05-101-2/+2
| | | | Change-Id: I590a682af7fc1879ae63cda3aea73063ba4c84f4
* '!= false' is redundant, and confusing - kill it.Jan Holesovsky2014-05-091-1/+1
| | | | Change-Id: I1a52b9ce7b590e8cf274a2daaa1c55cfc1efe48b
* coverity#738576 Uninitialized pointer fieldCaolán McNamara2014-04-281-6/+20
| | | | Change-Id: Id945cf9549b7f633f7deb1f237a2bf6536f221c1
* coverity#738575 Uninitialized pointer fieldCaolán McNamara2014-04-281-6/+17
| | | | Change-Id: Ib65f0e95ef2a837b6c5791d9e2dce5fe8025da33
* coverity#738574 Uninitialized scalar fieldCaolán McNamara2014-04-281-6/+20
| | | | Change-Id: Ia7cca6e2a2bc3240a32509697a999461491a2747
* coverity#738573 Uninitialized scalar fieldCaolán McNamara2014-04-281-2/+8
| | | | Change-Id: I8b112fa0095cc6ed15c9198a312a0b6fce3a8d28
* remove executable bitAndras Timar2014-04-171-0/+0
| | | | Change-Id: I91f6e861f6d0dbea1b57ac73857e0c706b27f681
* CppunitTest_cppcanvas_emfplus: disable this in case there is no display to useMiklos Vajna2014-04-101-0/+2
| | | | | | | This test is already disabled on non-Linux, but it fails in case there is no display to use. For now just disable it in that case. Change-Id: I29c52e803a1fca5f2bdeeb655c573ad8fef622e8
* fdo#77229 testcaseMiklos Vajna2014-04-104-0/+161
| | | | | | | | We didn't have EMF+ rendering testcases so far, let's see if it works out to render into a bitmap and then just assert pixel position colors there. It's better than nothing for missing shapes at least. Change-Id: I2d1c63fef1127f69af7156ed6c99553845f77c9f
* fdo#77229 EMF+ rendering: improve EmfPlusSetClipPath's CombineModeExclude caseMiklos Vajna2014-04-091-1/+23
| | | | | | | This is still not perfect, but at least we now don't do the opposite of what was asked. Change-Id: I5e144c5ec2987902e65b2eb472259d9c39bbbd11
* Clean up function declarationsStephan Bergmann2014-04-091-4/+0
| | | | Change-Id: I54f8a16cd64375d1398b6582175b0941ba68696e
* cppcanvas: sal_Bool->boolNoel Grandin2014-04-073-5/+5
| | | | Change-Id: I3dc076f3593d4d083d5e25e41e007eadc97d2978
* Replace SV_DECL/IMPL_REF macros with SvRef templateStephan Bergmann2014-04-071-1/+1
| | | | Change-Id: I0ef2e67f6d61e0ce118c0f5e926b8194ef9d8058
* Explicitly mark overriding destructors as "virtual"Stephan Bergmann2014-04-011-5/+5
| | | | | | | | It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
* First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann2014-03-2619-129/+129
| | | | | | | ...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
* Find places where OUString and OString are passed by value.Noel Grandin2014-03-182-2/+2
| | | | | | | | | | It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
* cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann2014-02-262-7/+7
| | | | Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
* Remove visual noise from cppcanvasAlexander Wilms2014-02-252-9/+9
| | | | Change-Id: I961e6a9e227962096b57569a8b8160841cacd950
* Update little-to-big endian GetSwapFloat functionsDouglas Mencken2014-02-251-2/+5
| | | | | | | | | | rSt >> pPtr[3] >> pPtr[2] >> pPtr[1] >> pPtr[0] results in error: no match for 'operator>>' in 'rSt >> *(pPtr + 3u)' Change-Id: I1820bac8c72f7633ab01a17bf5d073b988e1b58c Reviewed-on: https://gerrit.libreoffice.org/8207 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* harmonize Tell() Seek() type.Norbert Thiebaud2014-02-241-4/+4
| | | | Change-Id: I2e472aa0279d0763762d3c660207cd74da512626
* Remove unneccessary commentsAlexander Wilms2014-02-233-20/+20
| | | | | | | Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* vcl: sal_Bool -> boolStephan Bergmann2014-02-213-6/+6
| | | | Change-Id: I2a3e3d3e3266ea0f0fafdd91362076a4aa160f0e
* fix debug=2 buildCaolán McNamara2014-02-171-31/+1
| | | | Change-Id: Id7c6db5c6cbefef427d9c2cc4bd210811b5a7991
* remove SvStream::operator>> methodsNoel Grandin2014-02-121-2/+2
| | | | | | | | | in favour of ReadXXX methods. Change-Id: Ic2c0a7b6b92ff4c236ae99b39d77f3d935b301e3 Reviewed-on: https://gerrit.libreoffice.org/7915 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* convert SvStream::operator>> methods to ReadXXX methodsNoel Grandin2014-02-122-94/+94
| | | | | | | | | | | First, I updated the clang rewriter to do the conversion. Then I lightly hand-tweaked the output for the few places where the rewriter messed up, mostly when dealing with calls on "this". Change-Id: I40a6a977959cd97415c678eafc8507de8aa3b1a9 Reviewed-on: https://gerrit.libreoffice.org/7879 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* convert specialised SvStream::operator>> methods to ReadXXX methodsNoel Grandin2014-02-043-9/+9
| | | | | | | | | | as preparation for converting the SvStream::operator>> methods on primitive types Change-Id: I62f134bced15c687d6e0d46924f56e8d1c3d95b9 Reviewed-on: https://gerrit.libreoffice.org/7798 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* EMF+: Only draw endcap outline if not filled, fix endcap scaling.Andrzej Hunt2014-01-301-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>
* Apparently broken bitmask operationStephan Bergmann2014-01-281-1/+1
| | | | Change-Id: Id4dfa3d4676b50a86fd6044d501de15b122bb7f1
* coverity#1158489 Uninitialized scalar fieldCaolán McNamara2014-01-231-1/+8
| | | | Change-Id: Ibe8600f8ad38859cd79d52528f970d99f0b8f536
* longparas: remove now broken STRING_LEN usesCaolán McNamara2014-01-141-7/+9
| | | | Change-Id: Ie2de4680e07e26416fc52d4c22b5bececb190cc1
* longparas: convert ValidateKashidas to sal_Int32Caolán McNamara2014-01-131-0/+1
| | | | | | | we can use -1 as the failure return code as return value is always checked and isolated from the rest of the code. Change-Id: I87a743de82d681a7e4eabc61a576c4e50f1279a8
* EMF+: actually use lineJoin attribute for polygons.Andrzej Hunt2014-01-011-10/+18
| | | | Change-Id: I5b369703333332598353d9817f0253bbe5fc3601
* EMF+: mapping can rotate the width vector, so use resulting length.Andrzej Hunt2014-01-011-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
* EMF+: Add EMFPlusPointR detection to EMFPPath.Andrzej Hunt2013-12-271-5/+10
| | | | Change-Id: Iff1ae9806ee05654762b313ed00ada206e51337f
* EMF+: Integer coordinate values are signed.Andrzej Hunt2013-12-261-2/+2
| | | | Change-Id: I5babcec50d48dc2a6288a01685db61fbb7058680
* vcl get rid of xub_StrLen and STRING_LEN in outdev3Norbert Thiebaud2013-12-181-2/+1
| | | | | | | | | | a new log section (sal.rtl.xub) is used to display alert in case of suspicious len == 0xFFFF (aka STRING_LEN) Change-Id: I3ed2aa7896e12592be9e003580dd6c8eda4add5e Reviewed-on: https://gerrit.libreoffice.org/7117 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann2013-12-171-2/+2
| | | | Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
* EMF+: Fill line cap object if EmfPlusCustomLineCapDataFillPath is set.Matúš Kukan2013-12-062-4/+21
| | | | Change-Id: I7b53a8f18e1fb24b1ae0322bdf0980e431a0725f
* EMF+: Log the stride too.Jan Holesovsky2013-12-051-1/+1
| | | | Change-Id: I903d8e5629c578f292307bf3abdb2f58ef9dd92c
* EMF+: Do not ignore source rectangle of the image to be rendered.Matúš Kukan2013-12-041-0/+2
| | | | Change-Id: I4f861c7653c89d8f1ca73696e885f33f7bfc3b06
* Further XCanvas != XBitmapCanvas cleanup.Thorsten Behrens2013-11-292-2/+8
| | | | | | | | It seems I missed a few places in 21ec9beae29b19b8ec6f0a16fd0e708e4f210208, getting that straight now hopefully. Change-Id: I34fc8df2d1ee65bef0639b3de9487ff311bed89a
* Revert "Resolves: fdo#71527 make presenter console not crash/useless"Thorsten Behrens2013-11-292-6/+2
| | | | | | This reverts commit 639aa8e72639fd01e9004977f1cfaafc13b1e45f. Change-Id: I0ac1a7ada530791e2d34d2f0802213c869ea48a1
* Resolves: fdo#71527 make presenter console not crash/uselessCaolán McNamara2013-11-282-2/+6
| | | | | | | | | | | Basically reverts the pieces of 21ec9beae29b19b8ec6f0a16fd0e708e4f210208 to make XSpriteCanvas a XBitmapCanvas again Otherwise PresenterHelper::loadBitmap is not an XBitmapCanvas and so VclFactory::createBitmap cannot succeed Change-Id: I197adf98e915102f383ee050a8ea16d1e41cecf2
* EMF+: Line thickness has to be considered when drawing the caps.Jan Holesovsky2013-11-272-33/+45
| | | | Change-Id: I6043ee3c214f453afaef06125993c73be624c07e
* WaE: potentially uninitialized local variable 'pPattern' usedTor Lillqvist2013-11-261-1/+1
| | | | Change-Id: Ic000edc60a9c5ae7d64fab9bf8b6c2a88bcec223
* -Werror,-Wunused-const-variableStephan Bergmann2013-11-261-4/+2
| | | | Change-Id: I25fa3ea9e0101de7b17c17ef44da6d7b26a46017
* EMF+: Set the stroke attributes on the custom line caps.Jan Holesovsky2013-11-251-9/+62
| | | | | | This finally makes the rendering of the custom line caps nice & complete. Change-Id: If35ef1c44f34f5d5e6c50789c907105d03e96fca