summaryrefslogtreecommitdiff
path: root/cppcanvas/source
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) Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx
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)
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. (cherry picked from commit 83f2b3c590120a60b5e94fb1a15054ebe0745dbb) Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: Icf3b7c10c627594600b517b8ff445f8df87c56f8
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-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
Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: I4f861c7653c89d8f1ca73696e885f33f7bfc3b06
2013-11-27EMF+: Line thickness has to be considered when drawing the caps.Jan Holesovsky2-33/+45
Change-Id: I6043ee3c214f453afaef06125993c73be624c07e
2013-11-26EMF+: 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: If35ef1c44f34f5d5e6c50789c907105d03e96fca
2013-11-26EMF+: Implement line dashing.Jan Holesovsky1-2/+49
Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: I9eb21c0a8b5baa5b0080845f61b12fc65034d959
2013-11-26EMF+: Stroke size is always supposed to be absolute.Jan Holesovsky1-1/+1
Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: I7221311e5dee6384dc2d1c071bf6f1c61811895a
2013-11-05WaE: Potentially uninitialized local variableTor Lillqvist1-1/+8
(cherry picked from commit fe8eba5faa59ddf9ee82f3eb009daac72a0ec846) Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: I497c30dfd951132fe2f7998a158b6c14efe5ebf7
2013-06-10Fix windows compile of Arc fix.Michael Meeks1-4/+4
2013-06-07fdo#65502 - EmfFillPie fix.Michael Meeks1-9/+9
2013-06-07Transform the clipping polygon before using itFridrich Štrba1-0/+1
(cherry picked from commit abdbb847fa135dd758ef3ef99db4c07a2671ca47) Change-Id: I71a00f7d4b80ef41b637889e51a414fac6883ba1 Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
2013-05-15Don't leak all of the EMF+ graphic objects.Thorsten Behrens3-6/+8
Change-Id: I7951a9d25da5feec997dd0643f8579f5bcd0ee0f (cherry picked from commit 569f6b41c6d7dcdcc65a2d6a75018a3266936532)
2013-04-26fdo#60638: Workaround should be in FillRects rather than FillPolygon.Muthu Subramanian1-5/+7
Ported from: 5a1d77327867ae9b80bc676d67f1f70a5d8a2fd4
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-03-19implemented EmfPlusRecordTypeSave and EmfPlusRecordTypeRestore recordsRadek Doulik3-3/+58
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch> (cherry picked from commit 5a86702e13b3654982f1ee84da981d7fb8c442c5) Change-Id: Iac87870c0f50a74b7f4db4c674adcded1494c055 Reviewed-on: https://gerrit.libreoffice.org/2839 Reviewed-by: Noel Power <noel.power@suse.com> Reviewed-by: Michael Meeks <michael.meeks@suse.com> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-16implemented EmfPlusRecordTypeSetClipRect recordRadek Doulik1-5/+34
(cherry picked from commit f2d9db4ef951d04c63733b08dd8746c196dd5f05) Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: I0778cf44a1f4e920e723c17c34f6de4f8eed2342 Reviewed-on: https://gerrit.libreoffice.org/2753 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org> (cherry picked from commit 4c0bfbd4126e377e06d6a48c2bfcc56ffa422740) Reviewed-on: https://gerrit.libreoffice.org/2754
2013-03-16implemented EmfPlusRecordTypeDrawEllipse recordRadek Doulik2-34/+47
(cherry picked from commit fa109b4603f06533a63ee19518c482a23976bfe8) Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: If8d7c210e437a041f3202c09f3d26d621b5af748 ops, fix build (cherry picked from commit ebebb309403498a9438a908a26248b05cc855879) Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: If72f3c1e0d7a14779074d898c4d1eb0fe8f07871 Reviewed-on: https://gerrit.libreoffice.org/2751 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org> (cherry picked from commit 46d4224d1ac0ae4aab52c3bb7f4f844928cce260) Reviewed-on: https://gerrit.libreoffice.org/2752
2013-03-16implemented EmfPlusRecordTypeFillEllipse recordRadek Doulik1-1/+27
(cherry picked from commit cf6b2f0ecef2c23c24114ca1a1609a4a81ade8a1) Conflicts: cppcanvas/source/mtfrenderer/emfplus.cxx Change-Id: Id9362d05ddae2066f2fa289640f447393d7cda84 Reviewed-on: https://gerrit.libreoffice.org/2749 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org> (cherry picked from commit f820b5b5b97fff0393a2c346f579384e63f7c2db) Reviewed-on: https://gerrit.libreoffice.org/2750 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Reviewed-by: Joren De Cuyper <joren.libreoffice@telenet.be>
2013-03-07Backport of EMF+ changes from masterFridrich Štrba2-12/+16
Change-Id: Ibfc5d700a81e661b663dfd3eb1f83e488fd1112f Reviewed-on: https://gerrit.libreoffice.org/2581 Reviewed-by: Radek Doulík <rodo@novell.com> Tested-by: Radek Doulík <rodo@novell.com>
2013-02-25fdo#59405: cppcanvas: fix infinite loop in processEMFPlusMichael Stahl1-1/+10
This can be observed when inserting the bugdoc from fdo#59405. Apparently the "size" and "length" do not agree; ensure that the "length" does not underflow. Change-Id: Idfc68919859b8284c724831de21208e4392af328 (cherry picked from commit ec0d1440cf07008a220708535848567bcbb233ea) Reviewed-on: https://gerrit.libreoffice.org/2394 Reviewed-by: Radek Doulík <rodo@novell.com> Tested-by: Radek Doulík <rodo@novell.com>
2013-01-22implemented EmfPlusRecordTypeFillPie recordRadek Doulik1-0/+45
Change-Id: I15e7464a6a295bb4c1313c0a65ee33b6443c61c8 Signed-off-by: Andras Timar <atimar@suse.com>
2013-01-08Make LO buildable again after the GraphicFilter move.Jan Holesovsky1-1/+1
Conflicts: svtools/Library_svt.mk q# Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c Signed-off-by: Cor Nouws <oolst@nouenoff.nl> Signed-off-by: Olivier Hallot <olivier.hallot@documentfoundation.org> Signed-off-by: Adolfo Jayme Barrientos <fitoschido@ubuntu.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2012-12-11fdo#35680 - fix wrong gradient rendering when grouped.Michael Meeks1-11/+15
2012-11-16use LanguageTagEike Rathke1-2/+2
Change-Id: I2f8fd72cb49298f59d5eb406f03a1fc4128d1c8d
2012-11-06re-base on ALv2 code. Includes (at least) relevant parts of:Michael Meeks26-845/+336
linecap: Reintegrating finished LineCap feature Patch contributed by Regina Henschel http://svn.apache.org/viewvc?view=revision&revision=1232507 Patches contributed by Sven Jacobi impress212: #i81610# fixed animation export http://svn.apache.org/viewvc?view=revision&revision=1167620 impress212: drawinglayer gbuild environment changes http://svn.apache.org/viewvc?view=revision&revision=1167627 http://svn.apache.org/viewvc?view=revision&revision=1167628 impress212: DffPropSet -> minor code improvements, removing table http://svn.apache.org/viewvc?view=revision&revision=1167634 impress212: #158494# fixed excel import (text rotation) http://svn.apache.org/viewvc?view=revision&revision=1167638 Patches contributed by Armin Le Grand Svg: Reintegrated Svg replacement from /branches/alg/svgreplavement http://svn.apache.org/viewvc?view=revision&revision=1220836 #118728# changed indentifying definitions for Svg file detection http://svn.apache.org/viewvc?view=revision&revision=1229961 #118838# LineGeometry creation for complicated cases optimized to create single Polygons http://svn.apache.org/viewvc?view=revision&revision=1236232 #119176# corrected file type detection for SVG for svg files without xml header http://svn.apache.org/viewvc?view=revision&revision=1309445 #118728# Extended Svg file detection http://svn.apache.org/viewvc?view=revision&revision=1230531 #118529# solve break converters and convert commands for OLEs and images http://svn.apache.org/viewvc?view=revision&revision=1186168 svg: added WaE changes from branch svgreplacement to trunc http://svn.apache.org/viewvc?view=revision&revision=1222974 svg: corrected missing member initialization http://svn.apache.org/viewvc?view=revision&revision=1226134 fix for #118525#: Using primitives for chart sub-geometry visualisation http://svn.apache.org/viewvc?view=revision&revision=1226879 #118898# Adapted ImpGraphic::ImplGetBitmap to correctly convert metafiles to bitmapEx ... http://svn.apache.org/viewvc?view=revision&revision=1293316 fix for #118525#: removed no longer used variable maOriginalMapMode, one more exception eliminated http://svn.apache.org/viewvc?view=revision&revision=1227097 #16758# Added buffering to the VDev usages of the VclProcessor2D derivates... http://svn.apache.org/viewvc?view=revision&revision=1229521 #116758# Secured VDev buffer device to Vcl deinit http://svn.apache.org/viewvc?view=revision&revision=1230574 #116758# added remembering allocated VDevs for VDevBuffer to be able to also delete these when vcl goes down; it should never happen, but You never know http://svn.apache.org/viewvc?view=revision&revision=1230927 #118730# Changed SvgClipPathNode to use MaskPrimitive2D for primitive representation instead of TransparencePrimitive2D http://svn.apache.org/viewvc?view=revision&revision=1231198 #118822# secured 3D geometry creation (slices) by subdividing the 2D source polyPolygon early http://svn.apache.org/viewvc?view=revision&revision=1234749 #118829# enhanced Svg gradient quality, obstacles avoided http://svn.apache.org/viewvc?view=revision&revision=1235361 #118834# Unified usage of TextBreakupHelper as single tooling class for i18n text primitive breakup http://svn.apache.org/viewvc?view=revision&revision=1236110 #118853# added square pixel size limit to conversion of TransparencePrimitive2D to Metafile action http://svn.apache.org/viewvc?view=revision&revision=1237656 #118824# coreccted mirroring and boundrect when the graphicmanager is used for bitmap output http://svn.apache.org/viewvc?view=revision&revision=1240097 #115092# Corrected VclProcessor2D::RenderPolygonStrokePrimitive2D for various optimization scenarios http://svn.apache.org/viewvc?view=revision&revision=1241434 #118783# Corrected errors in ID strings, corrected Svg line/fill export, corrected polygon close state http://svn.apache.org/viewvc?view=revision&revision=1232006 #118796# corrected null-pointer usage in SVG text exporter http://svn.apache.org/viewvc?view=revision&revision=1240262 #118729# Use GraphicStreamUrl and GraphicUrl to allow multi image import with linked graphics, too http://svn.apache.org/viewvc?view=revision&revision=1229962 #118898# corrected error in GDIMetaFile::GetBoundRect in handling MetaFloatTransparentAction http://svn.apache.org/viewvc?view=revision&revision=1293349 #118855# Corrected handling of possibly created empty clipRegions after PolyPolygon clipping http://svn.apache.org/viewvc?view=revision&revision=1237725 #115962# Better (but not yet optimal, see comments in task) handling of MetaFloatTransparentAction in PDF export http://svn.apache.org/viewvc?view=revision&revision=1241078 IP clearance: #118466# This patch removes librsvg, libcroco, libgsf, ... http://svn.apache.org/viewvc?view=revision&revision=1200879 118779# Added svg content streaming in/out to ImpGraphic stream operators http://svn.apache.org/viewvc?view=revision&revision=1231908 linecap: correctons for WaE and mac drawing http://svn.apache.org/viewvc?view=revision&revision=1232793 svg: uses current system Dpi for Svg replacement image creation http://svn.apache.org/viewvc?view=revision&revision=1233948 Patches contributed by Mathias Bauer (and others) gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 http://svn.apache.org/viewvc?view=revision&revision=1394326 Remove duplicate header includes. cws mba34issues01: #i117720#: convert assertion into warning http://svn.apache.org/viewvc?view=revision&revision=1172352 118485 - Styles for OLEs are not saved. Submitted by Armin Le Grand. http://svn.apache.org/viewvc?view=revision&revision=1182166 cws mba34issues01: #i117714#: remove assertion http://svn.apache.org/viewvc?view=revision&revision=1172357 Patch contributed by Jurgen Schmidt add some additional checks to ensure proper reading operations http://svn.apache.org/viewvc?view=revision&revision=1209022 mostly prefer our stream / bounds checking work. Patches contributed by Herbert Duerr #i118816# add clarifying comment regarding Font::*Color*() methods http://svn.apache.org/viewvc?view=revision&revision=1233833 extend macro->string handling for empty strings http://svn.apache.org/viewvc?view=revision&revision=1175801 avoid magic constants for SALCOLOR_NONE http://svn.apache.org/viewvc?view=revision&revision=1177543 initialize slant properly in ImplFontMetricData constructor (author=iorsh) http://svn.apache.org/viewvc?view=revision&revision=1177551 #i118675# make check for extension updates more stable http://svn.apache.org/viewvc?view=revision&revision=1214797 #a118617# remove VBasicEventListener.dll binary There are no known users depending on its CLSID http://svn.apache.org/viewvc?view=revision&revision=1203697 Patches contributed by Ariel Constenla-Haile Fix build breaker on Linux/gcc http://svn.apache.org/viewvc?view=revision&revision=1221104 Fix crash when trying to instantiate css.graphic.GraphicRasterizer_RSVG http://svn.apache.org/viewvc?view=revision&revision=1215559 Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117962# - method <SwFlyFrm::IsPaint(..)> - consider instances of <SwFlyDrawObj> http://svn.apache.org/viewvc?view=revision&revision=1172120 sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 gnumake4 work variously from Hans-Joachim Lankenau http://svn.apache.org/viewvc?view=revision&revision=1397315 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1396782 http://svn.apache.org/viewvc?view=revision&revision=1394707 plus some amount of re-splitting of legacy headers. Patch contributed by Pavel Janik WaE: Remove unused variables. http://svn.apache.org/viewvc?view=revision&revision=1230697 Patches contributed by Takashi Ono mingwport35: i#117795: MinGW port fix for vcl2gnumake http://svn.apache.org/viewvc?view=revision&revision=1172091 mingwport35: i#117795: MinGW port fix for vcl2gnumake http://svn.apache.org/viewvc?view=revision&revision=1172091 Patch contributed by Christian Lippka impress212: #i98044# re enable Text menu for outline and title shapes http://svn.apache.org/viewvc?view=revision&revision=1167639 Patch contributed by Andre Fischer 118674: Made category B code optional and disabled by default. http://svn.apache.org/viewvc?view=revision&revision=1215131 118881: Ignore empty paragraphs after bullets. http://svn.apache.org/viewvc?view=revision&revision=1296205 Patches contributed by Philipp Lohmann ooo340fixes: #i117780# use rtl allocator http://svn.apache.org/viewvc?view=revision&revision=1172087 ooo34gsl02: #i117807# fix an off by one error (index actually inside the pfb section header) http://svn.apache.org/viewvc?view=revision&revision=1167576 various cleanups, related compilation fixes, warning cleanups, re-working of obsolete stl template pieces to use boost instead, changed string classes, re-adapt KDE about data, about dialog, fixing warnings, and other fixes & improvements. Disable svg import / render for about/ branding code-paths for now. Restore full icon theme set. Remove OS/2 conditionals and sources. Remove conflicting gtk/full-screen monitors support. Retain existing svg rasterizer files - temporarily disabled. Standardize stringificaiton and fixup dllpostfix issues. Rename SvgGradientHelper::== to equalTo to avoid overloading issues. Use the flat GdiPlus API for LineCaps calls.
2012-11-06Revert "calc65: #i116318# Fixed the painting of axial gradients."Michael Meeks1-15/+2
This reverts commit de2dd7a15678d2968cd7c22d74e7056c35a051f3.
2012-10-19replace sxub_Unicode by sal_UnicodeNorbert Thiebaud1-1/+1
Change-Id: Icf4b434a1961cc4964ee6e362491868e898a1831 Reviewed-on: https://gerrit.libreoffice.org/887 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-06fixed typoRadek Doulik1-2/+2
Change-Id: I483ff930b99d04cbd1514d7f541e57e223b04bab
2012-08-15display hexadecimal and decimal record numbersRadek Doulik1-1/+1
Change-Id: If8720ad99d2c4c6fa4927771027123a559895bb6
2012-08-09remove some unused methodsCaolán McNamara2-26/+0
Change-Id: I8b89f49eff059f5650bfb531bcb568db1d97c3a3
2012-07-19emf+: added implementation of DrawImage recordRadek Doulik2-16/+40
Change-Id: I6c86c2eaca1586d915b648292373da4378c755ba
2012-07-18Various Clang 3.1 -Wunsued-variable, -Wconstant-conversionStephan Bergmann2-6/+4
Change-Id: I0799f22685609201dfb524c373d065b6184ed53c
2012-07-02Remove unused definesThomas Arnhold1-2/+0
Some of them were commented out for documentation purpose. Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-06-25replace custom readString with read_uInt16s_ToOUStringCaolán McNamara1-20/+2
replace custom readString with more efficient and foolproof read_uInt16s_ToOUString Change-Id: Idf5f85adad008b4bd775badd83f55b152a6ddaaf
2012-06-22cppcanvas: remove obsolete makefile.mkMichael Stahl2-77/+0
Change-Id: Id9ccc156371a235bca764044a8d155b8720782c0
2012-06-22remove bunch of obsolete looking .dxp filesMichael Stahl1-1/+0
Change-Id: Ib06d88890007fd27d6838a5c8829230733d3df97
2012-06-23removed unused forward declarations of classTakeshi Abe2-4/+0
except moving ScPostIt into source/filter/inc/xeescher.hxx Change-Id: I85fbfe88e30edce5a48a65c494ced7b2129964ff
2012-06-22re-base on ALv2 code.Michael Meeks1-23/+14
Change-Id: I8018d9b5fa01d1720c0392dc5fdc4a0656f25a35
2012-06-21re-base on ALv2 code.Michael Meeks23-544/+337
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-19death to some UniStringsCaolán McNamara1-1/+1
Change-Id: I0fa0c60e12c418d25f8bd96cc04c6abd74b1a608
2012-06-19use a temporary rather than calling EraseCaolán McNamara1-6/+2
Change-Id: I77c80d332e4bef34c31accf6e2ab77e59f9bf93e
2012-06-19where is the logic of having 5 pChars if we only need 4Caolán McNamara1-2/+2
Change-Id: I16c1f5ee7a05aa011d00e6f1de86e1aa5d9621b8
2012-06-19if the string is created of len 0, then no point passing any argumentsCaolán McNamara1-1/+1
Change-Id: I0055ad846f438765c5259e02025e6ef5f32c6169
2012-06-19if the string is created from 4 sal_Unicodes then it cannot be of 0 lenCaolán McNamara1-7/+4
Change-Id: I14695ec0871e186266770d7cfe90f532de31ea57
2012-06-12Get rid of GRADIENT_* defines, they conflict with Windows GDI types.Jan Holesovsky1-7/+7
Change-Id: Ia0bc37f81b7213b20fc5093beb46d7a05b1ac931
2012-05-22targetted string re-workMichael Meeks2-14/+14
Change-Id: I9ed4df2a25c8a2a868f83de48472715a6cabe2be