summaryrefslogtreecommitdiff
path: root/cppcanvas
AgeCommit message (Collapse)AuthorFilesLines
2014-07-21bnc#881024 Handle 0 font height just like outdev & drawinglayerTomaž Vajngerl1-1/+12
Change-Id: I80055e4101873e0ddd408ac1f0ee9c75cc3bf6b3 Reviewed-on: https://gerrit.libreoffice.org/10435 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
2014-07-21emf+: emulate hatch with color blendTomaž Vajngerl1-2/+132
Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: I2ac8f790c79c269d4c1fa650e703c3645c567ca4 Reviewed-on: https://gerrit.libreoffice.org/10436 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
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) Reviewed-on: https://gerrit.libreoffice.org/8904 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-30EMF+: 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/7743 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-01EMF+: 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)
2014-01-01EMF+: actually use lineJoin attribute for polygons.Andrzej Hunt1-10/+18
Change-Id: I5b369703333332598353d9817f0253bbe5fc3601 (cherry picked from commit 9b1ceabd5f696500d4fe2acb89170bd987966a9b)
2014-01-01EMF+: Integer coordinate values are signed.Andrzej Hunt1-2/+2
Change-Id: I5babcec50d48dc2a6288a01685db61fbb7058680 (cherry picked from commit d8dedc775cedf0e9daf9284bc7e3a0331ccd2963)
2013-12-10-Werror,-Wunused-const-variableStephan Bergmann1-4/+2
Change-Id: I25fa3ea9e0101de7b17c17ef44da6d7b26a46017 (cherry picked from commit 9abd09f04b9a1a3bdde3b24bc03d67319bb25953)
2013-12-06EMF+: Fill line cap object if EmfPlusCustomLineCapDataFillPath is set.Matúš Kukan2-4/+21
Change-Id: I7b53a8f18e1fb24b1ae0322bdf0980e431a0725f (cherry picked from commit 131f3230d98f24faf57d9404e333cb1fb183345b)
2013-12-04EMF+: Do not ignore source rectangle of the image to be rendered.Matúš Kukan1-0/+2
Change-Id: I4f861c7653c89d8f1ca73696e885f33f7bfc3b06
2013-12-02Resolves: fdo#71527 make presenter console not crash/uselessThorsten Behrens2-2/+8
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 (cherry picked from commit 639aa8e72639fd01e9004977f1cfaafc13b1e45f) Revert "Resolves: fdo#71527 make presenter console not crash/useless" This reverts commit 639aa8e72639fd01e9004977f1cfaafc13b1e45f. (cherry picked from commit 72aa51185fb7b1ff2ad9006f2067a680b70ab66d) Revert "Resolves: fdo#71527 don't crash in presenter console" This reverts commit bae01385c895a100b5371879889e606927cff877. (cherry picked from commit b807b2d9291a2328a55de55d67c4874803d8b7fd) Fix fdo#71527 no unguarded ptr dereference here. This is the real problem - mxPane can be validly NULL. (cherry picked from commit 1b10205c2cb952ab43e30706c05f78d6e8f642c3) Further XCanvas != XBitmapCanvas cleanup. It seems I missed a few places in 21ec9beae29b19b8ec6f0a16fd0e708e4f210208, getting that straight now hopefully. (cherry picked from commit 05d2994c136650deca2d80fedf6b14d10109986e) 0ac1a7ada530791e2d34d2f0802213c869ea48a1 d149bae0904fd6c2120209d69490d0b257ac3f64 e8d055db9bfb68cb9031fa970518343f5aec6619 34fc8df2d1ee65bef0639b3de9487ff311bed89a Change-Id: I197adf98e915102f383ee050a8ea16d1e41cecf2
2013-11-27EMF+: Line thickness has to be considered when drawing the caps.Jan Holesovsky2-33/+45
Change-Id: I6043ee3c214f453afaef06125993c73be624c07e
2013-11-26EMF+: Set the stroke attributes on the custom line caps.Jan Holesovsky1-9/+62
This finally makes the rendering of the custom line caps nice & complete. Change-Id: If35ef1c44f34f5d5e6c50789c907105d03e96fca
2013-11-26EMF+: Render custom line cap data.Jan Holesovsky2-30/+107
Change-Id: Ic5e2e2d105fb006503b63e4e162d4dc09dab9e68
2013-11-26EMF+: Parse custom line cap data for start and end line caps.Jan Holesovsky1-20/+110
Change-Id: I3a5f79e22500f53c3c61c173e0827c250b2a8fd0
2013-11-26EMF+: Small cleanup & more logging in preparation for line starts & ends.Jan Holesovsky2-19/+44
Change-Id: I584f8a1680c6aa7b51b948a00213c285387b77c3
2013-11-26EMF+: Implement line dashing.Jan Holesovsky1-2/+49
Change-Id: I9eb21c0a8b5baa5b0080845f61b12fc65034d959
2013-11-25EMF+: Stroke size is always supposed to be absolute.Jan Holesovsky1-1/+1
Change-Id: I7221311e5dee6384dc2d1c071bf6f1c61811895a
2013-11-20Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls"Noel Grandin1-3/+3
This reverts commit acebbee971136e6ee0a7bc75bd57d937d6e1c295. I mistakenly converted OUString::equalsL calls to OUString::startsWith calls.
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL callsNoel Grandin1-3/+3
Convert code like: if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aByteStr.startsWith("rem")) Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-0/+2
Change-Id: I92c83ead449452679e539fad2316d391a1b59a62
2013-11-04remove redundant calls to OUString constructorNoel Grandin1-3/+2
Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
2013-10-22Bin comments that claim to say why some header is includedTor Lillqvist1-1/+1
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
2013-10-18fdo#60698: Move fileaccess module to ucbMarcos Paulo de Souza1-1/+0
Change-Id: I4c688a4aeedcae56ed6404574bd1bb392d4190cb Reviewed-on: https://gerrit.libreoffice.org/6311 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-10n#812793: Reverting the workaround.Muthu Subramanian1-5/+0
2013-10-07XCanvas does no longer imply XBitmapCanvasThorsten Behrens2-6/+2
Remove the implication that XCanvas IS-A XBitmapCanvas, i.e. one can access underlying pixels. That's a preparation for display-list based canvas implementations, and was a rather silly assumption in the first place. Also fixes up all client sites. Change-Id: I7a3d6f68ef46fe94b23cce7759cc0b8b6ca4dae9
2013-09-17convert CPPCANVAS module from String to OUStringNoel Grandin5-14/+13
Change-Id: I12a219a50cc3a9b07c9852cc0d417f71797b9e15
2013-08-30Revert some random work-in-progress that is most probably bitrottenFridrich Štrba3-6/+19
Revert "EMF+: aBaseTransform is a hardcoded identity matrix, don't bother with it" This reverts commit 2b700a710e44d2d09f45793f5f2448268e66d4fe. Revert "Pass also the bounding box in device units to the EMF+ part" This reverts commit f387c5da5a824df6cf2874155c13445a86804475.
2013-08-24build on higher debug levelsCaolán McNamara1-1/+1
Change-Id: I7f4d85f3e26ab8b19dae05c6907840b97a8af1d6
2013-07-13use static LanguageTag::convertTo...() for standalone conversionsEike Rathke1-1/+1
If no LanguageTag instance is at hand use the static methods to convert between BCP 47 string, Locale and MS-LangID instead of creating temporary instances. Change-Id: I9597f768078eb81c840e84a5db5617f26bb7dc09
2013-07-11Fix memory leak in EMFPPen.Mark Wielaard1-0/+12
Delete dashPattern, compoundArray, customStartCap and customEndCap arrays if they were created in the destructor. Change-Id: I5f3821b1ab0ac31a9cd4bc402c04090585953573 Reviewed-on: https://gerrit.libreoffice.org/4821 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-07-10merge duplicated codeCaolán McNamara1-86/+3
Change-Id: Ib13f17a0fe3173f4cd0ae7139f56badb39dcb6cb
2013-07-10remove last XubString uses in cppcanvasCaolán McNamara1-21/+20
Change-Id: I2ebc11a972f9a806889e13e7f69e20cd91d2ae6e
2013-07-08Turn Radek's notes into README files.Radek Doulik1-0/+4
Change-Id: I904142622ac37b394ddedf62bb7d9c099fc9cab4
2013-07-03fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFORadu Ioan1-1/+0
- replaced RTL_CONTEXT_ with SAL_INFO - replace OSL_* with SAL_* Change-Id: I26761cf1d4c1cfe21dec7d8ede6df6f177bf2c3e Reviewed-on: https://gerrit.libreoffice.org/4620 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-06-15Missing includeStephan Bergmann1-0/+2
Change-Id: I38d802831c8eea4406d8837b9162f5f76a8495fd
2013-06-12warning C4305: 'argument' : truncation from 'double' to 'float'Stephan Bergmann1-2/+2
Change-Id: Ieee74fd7e7cec65304dd5de9c1368f5449b66407
2013-06-12Resolves: #i121237# Rework/Cleanup of Region code...Armin Le Grand1-6/+10
due to missing complete support for B2DPolygon class (cherry picked from commit cab10eeb7878edf224a004fd7640bd4adf8d3c51) Conflicts: cppcanvas/source/mtfrenderer/implrenderer.cxx svx/source/sdr/overlay/overlaymanagerbuffered.cxx svx/source/svdraw/svdpntv.cxx vcl/aqua/source/gdi/salgdi.cxx vcl/inc/region.h vcl/inc/unx/gtk/gtkgdi.hxx vcl/inc/vcl/regband.hxx vcl/inc/vcl/region.hxx vcl/os2/source/gdi/salgdi.cxx vcl/source/gdi/bmpacc3.cxx vcl/source/gdi/outdev2.cxx vcl/source/gdi/outmap.cxx vcl/source/gdi/regband.cxx vcl/source/gdi/region.cxx vcl/source/window/window.cxx vcl/unx/generic/gdi/pspgraphics.cxx vcl/unx/headless/svpgdi.cxx vcl/unx/headless/svppspgraphics.cxx vcl/win/source/gdi/salgdi.cxx Change-Id: Iee9a66ff431c3cecb7603e445147b67715de0f7d Remove unused variable to prevent compiler warning (cherry picked from commit 0ac65ccf079e3e22ac23cbe7ae546504c863c31f) Change-Id: Icbcaa9d576a7e560d96debc7360bdbe9090b3fd3 Wrong comparison with bool corrected (cherry picked from commit 612cefdcf6176b6bb847ce899d89af40ef313a90) Change-Id: I1cf5de6734b588f78d8e870ba7b7860634b461ce
2013-06-12EMF+: aBaseTransform is a hardcoded identity matrix, don't bother with itFridrich Štrba3-19/+0
Change-Id: Ifa4f42c4f17a70c7238347a13897ef6742eb4679
2013-06-12Pass also the bounding box in device units to the EMF+ partFridrich Štrba2-0/+6
Change-Id: I71d3029d4b3aafdc44d82b0bd9db9a54f9b8b81f
2013-06-11canvas unit test - tolerate canvas non-creation: really no X server...Michael Meeks1-1/+2
Change-Id: Id8be7bc4ad454e7e246e412803e4d672a921c08e
2013-06-11add cppcanvas unit test makefile I forgot.Michael Meeks1-0/+58
Change-Id: Ic56a61d6c71870620ad2cda7899da8d0252dfc11
2013-06-11create a cairo canvas unit test, if only I could use the XCanvas API.Michael Meeks2-0/+99
Change-Id: I3b0fdbe92db751e59ecb3f3b59f27e160b3ca226
2013-06-11Use a local variable for the pointsFridrich Štrba1-2/+6
Change-Id: Ibd274ecd7eaeadaaef9f2a17a0d721355a561431
2013-06-11Refactor a bit the code while reading itFridrich Štrba1-30/+2
Change-Id: I58693bb4ffe0f59365069a87fc30081ddf226eaa
2013-06-11Fix typo and make the debug output a bit more readableFridrich Štrba1-4/+4
Change-Id: I45cb5303bfcc1f3df8455ac454f3e1b3fc5a11e0
2013-06-11Resolves: #i120604# unified and secured gradient tooling for primitivesArmin Le Grand2-16/+16
(cherry picked from commit 05785d283e718aab182a5ea848de72e4a4b2efe3) Conflicts: basegfx/inc/basegfx/tools/gradienttools.hxx basegfx/source/tools/gradienttools.cxx cppcanvas/source/mtfrenderer/implrenderer.cxx drawinglayer/inc/drawinglayer/primitive2d/fillgradientprimitive2d.hxx drawinglayer/inc/drawinglayer/texture/texture.hxx drawinglayer/source/primitive2d/fillgradientprimitive2d.cxx drawinglayer/source/processor2d/vclhelpergradient.cxx Change-Id: I21f94e7b4eede094171a83a009ae19213e77f22c Unname unused argument to prevent warnings. (cherry picked from commit f7d4af835cf308bc9ece6fd84cbd14ba5be0adcd) Change-Id: I44381f1e417c39dfbd1d4051079bbd09f0c61848
2013-06-07cppcanvas: try to make MSVC tinderbox happyMichael Stahl1-4/+4
Change-Id: If4fd5a788d3907a986e27f5f53d5995c7035f685
2013-06-07fdo#65502 - EmfFillPie fix.Michael Meeks1-8/+9
Change-Id: I395ef5f5175b9a2d758f4023605b8e2d4dce859f
2013-06-07Transform the clipping polygon before using itFridrich Štrba1-0/+1
Change-Id: I71a00f7d4b80ef41b637889e51a414fac6883ba1