summaryrefslogtreecommitdiff
path: root/filter/source/svg/svgreader.cxx
AgeCommit message (Collapse)AuthorFilesLines
2016-03-15vcl: move graph.[hx]xx to graphic.[hc]xxChris Sherlock1-1/+1
It's IMO a bit confusing to see a "graph" header that doesn't strictly deal with graphs, but graphics. Backporting to 5.1 series to allow for easier backporting of other potential hotfixes. Change-Id: Ic37c6cd78e23d05939486f98667144c4453bb0a3 Reviewed-on: https://gerrit.libreoffice.org/22949 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2015-12-15SVG: Revert previous commits for tdf#95332 and tdf#95733Xisco Fauli1-10/+8
I was wrong for thinking that there was a problem when elements inside def elements were not written. Actually, Cristina's commit ( 5e27d23d7e665cc0aeac8fc9ea2236bf8bc088ff ) was correct as elements inside defs don't have to be written at least they're refered by <use> element, which isn't supported in Libo right now. Working on implementing support for use element Change-Id: Id0b8d8e9b27887f75cc961881daeb82089b2e62b Reviewed-on: https://gerrit.libreoffice.org/20333 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> (cherry picked from commit f268e6f1fdd741ebdb5256ed9c72643846472332) Reviewed-on: https://gerrit.libreoffice.org/20484 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2015-11-17instead of converting from std::string to OUString...Xisco Fauli1-5/+4
... use OUString directly Change-Id: Ibdf863d7dbbb578e7fe87eac51e3d773a5b05199 Reviewed-on: https://gerrit.libreoffice.org/20009 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-12tdf#95733: SVG: clipPath can be defined outside path...Xisco Fauli1-3/+1
... so just ignore all clipPath until its support is implemented in filter/source/svg/ Regression introduced by 3056a6b6e39b57c66ebaf5210264b689f02f5fc3. Verified that tdf#95332 and tdf#65864 are still rendered correctly Change-Id: Ie3bdee545a81554ef2a95d373e2559e2540ddaa5 Reviewed-on: https://gerrit.libreoffice.org/19889 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-11-11SVG: tdf#95714 stop-color can be defined once tooXisco Fauli1-1/+5
Change-Id: I8a660281a255d28981e23d3cf30ff6c337f0424d Reviewed-on: https://gerrit.libreoffice.org/19876 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
2015-11-11tdf#51165: handle mixture of open and closed polygons in a pathChr. Rossmanith1-5/+49
Change-Id: I66c7fb2b627d3380c09b6e5e495905bed67c2824 Reviewed-on: https://gerrit.libreoffice.org/19860 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-11-10SVG: tdf#95510: stop-color and stop-opacity can be defined inside style tooXisco Fauli1-0/+6
Exemple: <svg width="100%" height="100%" viewBox="0 0 800 400" xmlns="http://www.w3.org/2000/svg"> <defs> <linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%"> <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" /> <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" /> </linearGradient> </defs> <ellipse cx="200" cy="70" rx="85" ry="55" fill="url(#grad1)" /> </svg> Change-Id: I908e3d235b3e5ba0b7e4fe3666b6334e3c409d03 Reviewed-on: https://gerrit.libreoffice.org/19866 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-2/+2
Change-Id: I61e494952df8cc40fff3ccad0936adf06035dbeb
2015-11-07SVG: tdf#95332 defs can contain shapes so fix tdf#65864 in...Xisco Fauli1-9/+14
a different way. This is just a temporal fix as this should be fix by implementing support for 'clipPath' Change-Id: I451e0a9ae0466c027505672393d623d7ac363e79 Reviewed-on: https://gerrit.libreoffice.org/19615 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christina Roßmanith <ChrRossmanith@web.de>
2015-11-05tdf#95510: SVG: Import stop-color and stop-opacityXisco Fauli1-16/+15
Change-Id: Ie073ff3e92c9344a78badfeefa0afed2c2b76fb8 Reviewed-on: https://gerrit.libreoffice.org/19731 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2015-11-02SVG: don't use dashes if parsing stroke-dasharray failsChr. Rossmanith1-3/+9
Change-Id: Ib256e4a4921e11defe7018f82273739c9ecc3105 Reviewed-on: https://gerrit.libreoffice.org/19735 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-10-20new loplugin: badvectorinitNoel Grandin1-1/+1
look for places calling the 1-argument vector fill constructor and then immediately called push_back, which is generally a sign that its leaving empty slots. Change-Id: I34e69b8d09cc48c0d409499faaf192b9f86bc517 Reviewed-on: https://gerrit.libreoffice.org/17525 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2015-06-11convert expressions like 'size() == 0' to 'empty()'Noel Grandin1-1/+1
Change-Id: Ia5c8c0f38a347f398d587970a22e03f29ffd37af
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann1-1/+1
Change-Id: I2976a8e6a3c9abf70e153a71bf0374d24d92968d
2015-06-04convert B2DLineJoin to scoped enumNoel Grandin1-6/+6
Change-Id: I4fb8f2c9e2080e3aa542d2ccf838e6784baa8429
2015-06-01loplugin:loopvartoosmallNoel Grandin1-1/+1
Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
2015-05-05loplugin:staticmethodsNoel Grandin1-11/+11
Change-Id: Iea68c4e466dd8e1cb7164959a680e5e52542166b
2015-03-09V801: Decreased performanceCaolán McNamara1-14/+14
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
2015-02-17tdf#64075 SVG Import: close non-closed filled polygonsVort1-0/+7
Change-Id: I26335c88cd3fd6644e122c8c525bf319cb09f4db Reviewed-on: https://gerrit.libreoffice.org/14475 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara1-1/+0
you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
2014-11-17fdo#77268 SVG Import: fix null pointer dereferenceVort1-0/+3
Change-Id: I47c591f3d8b61d60f1258db3515c6805bf42304c Reviewed-on: https://gerrit.libreoffice.org/12472 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-11-05fdo#38835 strip out OUString globalsNoel Grandin1-7/+6
they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
2014-10-12coverity#1130166 Unchecked return valueCaolán McNamara1-1/+1
Change-Id: I0730a099463ac77afce4bb999f3f00ad7bb097c7
2014-10-10fdo#65864: dont't traverse defs-nodes when in shape writing modeChr. Rossmanith1-5/+11
Relevant for opening svg images via File->Open: Children of the <defs> element should be interpreted only during the style collecting step. Collecting <path> elements from clip paths during the shape writing step leads to unwanted black polygons. Change-Id: I73598134c9be2877e975a7e756541ec3026fe768 Reviewed-on: https://gerrit.libreoffice.org/11793 Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
2014-04-22filter: sal_Bool->boolNoel Grandin1-2/+2
Change-Id: Icf20f23cb46ad3cb147d8c6a743f1d25a23fbca5
2014-02-27Remove visual noise from filterAlexander Wilms1-5/+5
Change-Id: Ieab1d12204bcf917b2e1bf74f3145fc96d7b207c Reviewed-on: https://gerrit.libreoffice.org/8261 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2013-12-08fdo#39206 Add support for image transformation in SVG ImportSamuel Mehrbrodt1-1/+16
Change-Id: I268599b0c13bbacf5db526fed79453a5443145a5 Reviewed-on: https://gerrit.libreoffice.org/6968 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-23/+0
writeTransformAttribute was unused since its inception in 90f5ce36231551e226d4b3e2fefaa8493af692ac "svg-import-filter.diff: SVG Import Filter implementation in filter module." Change-Id: Ifa7a13f9665d59fcc1cf8c9c3d48685bddc8bd59
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin1-4/+4
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-10-31Resolves: #i123433# Detect pseudo-vertices at svg import...Armin Le Grand1-3/+4
unify svg:d handling, correct svg:d import for relative sub-polygons in svg import; changed default for moveto writes for svg:d in ODF to absolute (cherry picked from commit f15874d8f976f3874bdbcb53429eeefa65c28841) Conflicts: basegfx/inc/basegfx/polygon/b2dpolygontools.hxx basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx basegfx/source/polygon/b2dpolypolygontools.cxx basegfx/source/polygon/b2dsvgpolypolygon.cxx basegfx/source/polygon/b3dpolypolygontools.cxx basegfx/source/tools/makefile.mk basegfx/test/boxclipper.cxx basegfx/test/clipstate.cxx basegfx/test/genericclipper.cxx canvas/source/tools/surfaceproxy.cxx sdext/source/pdfimport/tree/drawtreevisiting.cxx sdext/source/pdfimport/tree/writertreevisiting.cxx xmloff/inc/xexptran.hxx xmloff/source/draw/XMLImageMapContext.cxx xmloff/source/draw/XMLImageMapExport.cxx xmloff/source/draw/shapeexport2.cxx xmloff/source/draw/shapeexport3.cxx xmloff/source/draw/xexptran.cxx xmloff/source/draw/ximp3dobject.cxx xmloff/source/draw/ximpshap.cxx xmloff/source/style/MarkerStyle.cxx xmloff/source/text/XMLTextFrameContext.cxx xmloff/source/text/txtparae.cxx Change-Id: I5171b4a3559ea116bea45152e1f2685666463635
2013-08-21finish deprecation of O(U)String::valueOf()Luboš Luňák1-43/+43
Compiler plugin to replace with matching number(), boolean() or OUString ctor, ran it, few manual tweaks, mark as really deprecated. Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-07-26targetted clean of redundant header piece from 62badf3828Michael Meeks1-3/+0
Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48
2013-06-05fdo#46808, Convert XMultiServiceFactory in filter moduleNoel Grandin1-3/+3
Change-Id: I9dcddba4f5a8a7adeddc31b5df014b0174b9745d
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks1-20/+5
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák1-93/+93
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-03-03Related to fdo#60724: correct spellingThomas Arnhold1-2/+2
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-25loplugin: unused variablesThomas Arnhold1-4/+0
Change-Id: I63553a09eec81e5ae28aa79ee1d3281053b23d06
2013-02-14Removed several useless macros: UNISTRING, USTR, USTR_ASCII, ASCII_STR, ↵Jean-Noël Rouvignac1-21/+18
ASCII_STRING, CONST_ASCII, ASCSTR, ASCII, DEFINE_CONST_UNICODE, DEFINE_CONST_OUSTRING Change-Id: I96d690bf9f9b319e9eeafcf218ec5ce87f21215f Reviewed-on: https://gerrit.libreoffice.org/1954 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-02-13filter: svg: optimizeGradientStops: fix STL assertionMichael Stahl1-1/+5
Check that there is actually more than one element in maStops before tweaking its first 2 elements (can be reproduced with fdo#60471 Tux.svg) Change-Id: I7e6ffdf510bb590a9ea9e3782b30247b8fb46ed5
2013-01-07Revert "dummy commit (WIP)"Luboš Luňák1-20/+4
This reverts commit 6eb0522395c236ae6930a300992ad092449f9592. It does not compile and the message and contents suggest it probably wasn't meant to be pushed.
2013-01-07dummy commit (WIP)Chr. Rossmanith1-4/+20
Change-Id: Ibeee6553312323b75b2403ad6832595f228e0e3c
2013-01-04Make LO buildable again after the GraphicFilter move.Jan Holesovsky1-1/+1
Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2012-12-08SVG: handle degenerate cases of the basic shapes correctlyChr. Rossmanith1-78/+80
Change-Id: I2dc488ba38ca5f63c716f5f7327b47769d289fff
2012-10-28fix some VS 2010 specific issuesDavid Ostrovsky1-1/+1
Change-Id: Iae27a96c1e2ed72d2744fcbe100d6ada7dc41c82 Reviewed-on: https://gerrit.libreoffice.org/914 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-09-19ComponentContext::getUnoContext -> getComponentContext simplificationStephan Bergmann1-2/+1
...and some further clean-up. Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
2012-09-03fdo#46808, Adapt xml::dom::DocumentBuilder UNO service to new styleNoel Grandin1-3/+3
Change-Id: I577fbc7f990be9ec1f7b7eea53218b7daaccb2a1
2012-06-18SVG: use dash parameters from svg fileChr. Rossmanith1-52/+130
Change-Id: I86b31156e1a9221d9cfdc40d5670b324ce056a89
2012-05-11get rid of many USTR()Chr. Rossmanith1-257/+229
Change-Id: I7d98f36037f589ea742de53b2a52e2c5bdf7c48f
2012-05-08svgreader.cxx: fix -Werror=sign-promoMichael Stahl1-1/+1
2012-05-08fdo#48065 clamp mnFillOpacity to 1Chr. Rossmanith1-1/+4
Change-Id: I I007724e0ea4cc54a72f9bd9de9d83f887615568e