0db1e713bd
cpplint: [readability/utf8] Line contains invalid UTF-8
...
Change-Id: I8052539d86fbda5631b31f3163b1c51666153c8c
2014-04-20 10:00:01 +02:00
3b7472b284
fdo#74743 avoid infinite loop when gathering "svg" element styles
...
Change-Id: Ifcfd0c64302b9174510e3d774607f5ca60173885
2014-04-16 09:51:06 +02:00
6a682c41e5
Clean up function declarations
...
Change-Id: Id628629bdab2aa9446d449bc091a7bb82dab54eb
2014-04-14 21:38:46 +02:00
5babf1b903
remove unnecessary scope qualifier from sal_Bool uses
...
i.e. convert "::sal_Bool" to "sal_Bool"
Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-04-03 13:54:02 +02:00
0072d03151
Resolves: #i124313# At SVG import, try to optimize used ClipRegions
...
(cherry picked from commit 6dc64444a42997bb4e1ab38f52e4978719e0275a)
Change-Id: I42ec8b0cbfd9367bc98510bfbd1818543ac4b5be
2014-03-28 14:20:35 +00:00
70cc2b191b
First batch of adding SAL_OVERRRIDE to overriding function declarations
...
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.
Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-26 16:39:26 +01:00
d739b01b9f
Adapt rtl_uriConvertRelToAbs to RFC 3986
...
...which updates RFC 2396, removes the requirement that the base URI's path
starts with a slash, and clarifies how to treat excess "." and ".." segments.
This nicely allows handling of those odd vnd.sun.star.Package URLs as intended
now, so that making <foo> absolute relative to base URL
<vnd.sun.star.Package:Pictures/bar> yields <vnd.sun.star.Package:Pictures/foo>
instead of provoking a MalformedUriException.
Change-Id: Ice84303a57698a2c05d3a45541fe78b67450fa3c
2014-03-01 19:28:15 +01:00
33ca983141
Catching MalformedUriException subsumes the rPath.isEmpty() case now
...
...so that is no longer necessary, and checking for rPath.isEmpty() first also
mis-handled the case where rPath was empty but maUrl was already absolute.
Change-Id: Ieae800dd6c52f0cc308944ca0035ea4140d3a324
2014-02-28 18:05:51 +01:00
eaa876e486
typo in comment
...
Change-Id: I78a47d807ed9228fd6bc8d3dbbf038881a8d383b
2014-02-28 17:56:09 +01:00
29c3bb0968
Handle vnd.sun.star.Package: URLs provoking MalrformedUriException
...
...as e.g. happens when loading an .odt containing a Pcitures/XXX.svg stream
which in turn contains an <image xlink:href="logo.gif"/> with relative URL, e.g.
when loading the .odt generated by the instructions in fdo#75582.
Change-Id: I0d275662259bba8d582e2bd4671f0f6667060132
2014-02-28 17:49:57 +01:00
5e21a413c7
cppuhelper: retrofit std::exception into overriding exception specs
...
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
65d6ecfd4e
Remove visual noise from svgio
...
Change-Id: I5295d5204c3f42b67b877aefba605dc22279eab0
Reviewed-on: https://gerrit.libreoffice.org/8318
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2014-02-26 07:46:21 -06:00
83c51ee1ad
cid#705240 missing break in switch
...
Change-Id: I285234d31b027ca7862fbcb77dc9f13ca4e10463
2014-02-12 08:59:06 +02:00
32b8c5c4a9
fdo#54938 Convert basctl, mysqlc, sdext, svgio, writerp. to cppu::supportsSer.
...
Change-Id: I60128dbb5bf83f25eea847fe655d7126c9077414
Reviewed-on: https://gerrit.libreoffice.org/7756
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com >
Tested-by: Marcos Souza <marcos.souza.org@gmail.com >
2014-02-02 18:53:03 +00:00
87432aeecd
Resolves: #i123042# corrected reload of linked content...
...
to have access to its own path
(cherry picked from commit bc89d402b3df00c2402ac86896eb2ce4c3f7b7d0)
Conflicts:
sfx2/source/appl/fileobj.cxx
svgio/source/svgreader/svgimagenode.cxx
svx/source/svdraw/svdograf.cxx
Change-Id: I4f3e98588f17b4271465359a7f56f9845029e012
2014-01-17 10:44:54 +00:00
b55259eeb5
typo fixes
...
Change-Id: Ia5f104bfd707bcf4e159c78ca2764c861fb0b6d9
2013-12-20 15:55:00 +01:00
89633c6da1
remove unnecessary use of OUString::createFromAscii
...
Convert code like this:
OUString aStrSpacing(OUString::createFromAscii("spacing"));
to:
OUString aStrSpacing("spacing");
Change-Id: Ia2b7d6b42f35d33cfe587a0d6668030f3537fa6d
2013-11-21 13:29:29 +02:00
1d89cd08ab
Use CSS style attributes for top level svg node
...
Change-Id: I1f1958e0e03868167a65a2186f955a085676f9d9
Reviewed-on: https://gerrit.libreoffice.org/6563
Reviewed-by: Christina Roßmanith <ChrRossmanith@web.de >
Tested-by: Christina Roßmanith <ChrRossmanith@web.de >
2013-11-17 13:27:51 -06:00
239c702073
Remove special characters + some ascii art
...
Change-Id: Idddc1de6af624dd815f8f148912438e6f6dc43ae
2013-11-16 12:22:20 +01:00
c22ac891a3
remove unnecessary sal_Unicode casts in SVGIO module
...
Change-Id: Ie463f500bd8c5af37e99fb9e1a8d1fd5b2cd0766
2013-11-14 08:17:31 +02:00
f120005ea4
Resolves: #i123500# redefined ColorModifiers and ColorModifierStack...
...
redefined GraphicAttr to be expressed as primitives if needed, enhanced render
and export quality if graphic is modified using graphic attributes
(cherry picked from commit 1e79e8da3f8042f7d7bd94b2c9f03cff7545b05c)
Conflicts:
basegfx/inc/basegfx/color/bcolor.hxx
basegfx/inc/basegfx/color/bcolormodifier.hxx
basegfx/source/color/bcolormodifier.cxx
drawinglayer/inc/drawinglayer/primitive2d/graphicprimitivehelper2d.hxx
drawinglayer/inc/drawinglayer/primitive2d/modifiedcolorprimitive2d.hxx
drawinglayer/inc/drawinglayer/primitive3d/modifiedcolorprimitive3d.hxx
drawinglayer/source/primitive2d/graphicprimitive2d.cxx
drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
drawinglayer/source/primitive2d/modifiedcolorprimitive2d.cxx
drawinglayer/source/primitive3d/modifiedcolorprimitive3d.cxx
Change-Id: Ief2172efc9cc1b9838de48ec7f536c05573c7dc3
2013-11-06 11:46:04 +00:00
8b2fb0e153
Resolves: #i123510# changed priority in style preparation
...
(cherry picked from commit 86459550d81c3eae067e89d9af1b6e872215a588)
Change-Id: Ia567666cd76dce646479003a830d969f4962da71
2013-11-05 14:54:25 +00:00
223f6b631c
Resolves: #i123433# Detect pseudo-vertices at svg import...
...
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-10-31 15:56:14 +00:00
66c803ebcb
Resolves: #i123379# various SVG marker corrections
...
(cherry picked from commit ff1eee61fc56b06e436735f5e2b133db56de3608)
Conflicts:
basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
Change-Id: I818657573a1e673e312702a4b45e7bb6394250d2
2013-10-11 20:26:34 +01:00
81d175db51
fdo63235 - correct usage of marker-start/-end for svg path data
...
marker orientation will be corrected in a subsequent patch
Change-Id: I0c833b62d06ad21ebe5fbaf170cfb22cecbf146d
Reviewed-on: https://gerrit.libreoffice.org/6086
Reviewed-by: Regina Henschel <rb.henschel@t-online.de >
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com >
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com >
2013-10-06 21:44:32 +00:00
92ee5e9433
convert last bits of String to OUString in svgio module
...
Change-Id: Ic056c83ba239e3c9066026a95d1b01d0b1fc5539
2013-10-01 10:08:38 +02:00
768c41469e
childs -> children (in comments)
...
Change-Id: Ib91c2b0195f2db5c8a35997d5d07d3c04e9e69b7
2013-09-15 21:37:52 +02:00
199eb7607c
Related: #i122600# access memory problem in SvgSvgNode::getCurrentViewPort
...
(cherry picked from commit d41dc0bbe76922fee4ce177ecac0d84b9efc4206)
Conflicts:
svgio/inc/svgio/svgreader/svgnode.hxx
svgio/inc/svgio/svgreader/svgtools.hxx
Change-Id: Ie4d5cd29461845edb5b8a57fe639302947d80ebd
2013-08-21 13:20:46 +01:00
172c37522b
Revert "returning pointers to temporaries"
...
This reverts commit 342438c6e0f377b938c4ff213dca9e9665b709d9.
2013-08-21 13:20:46 +01:00
507169c13a
cppcheck: fix duplicateBreak
...
Change-Id: If5cd54da40975723ca287c1cd937450046332c85
2013-08-15 19:33:56 +02:00
342438c6e0
returning pointers to temporaries
...
Change-Id: I1bb65ee0ff3059ee47f83d54814f3a228994d960
2013-08-14 12:08:11 +01:00
b1ac43d1ab
Resolves: fdo#67047 fdo#64125 #i122600# svgio improvements
...
(list see in task itself) and a regression/crash
Patch by: regina
Review by: ALG
(cherry picked from commit 8a9164f5f853db66b4453fc6fb798acf0a88a238)
Conflicts:
svgio/source/svgreader/svgsvgnode.cxx
Change-Id: I1c29073a3a18d2e645378e64a9fb28e73fc7e9ab
2013-08-14 12:07:51 +01:00
07ec224acd
Resolves: #i122724# Better handling of line-only paths
...
(cherry picked from commit 1898f94578f266de42f92602a36518fb12bacf5a)
Change-Id: I3033197e7c59a829c012b84c1d4cbaca7d155d2a
2013-07-16 12:47:23 +01:00
2ea69ec976
Fix fdo#64125 - Use default for preserveAspectRatio scaling
...
Align code with
- http://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute
- http://www.w3.org/TR/SVG/coords.html#PreserveAspectRatioAttribute
Use bounding box if no ViewBox is given
Change-Id: I0f1704a7c8f3140dc8c49277b88ae77d58af1407
2013-07-04 14:14:40 +02:00
76f20ffd2f
Related: #i122594# Added same handling for outer SVG element
...
(cherry picked from commit d6dd461da975a4fcd7d58a1f03d0add9e5defa8b)
Conflicts:
svgio/source/svgreader/svgsvgnode.cxx
Change-Id: I99f5ce54a70d064ae83e56c0a23b77122dcc838c
2013-07-02 20:31:12 +01:00
6bd99f8d0b
Resolves: #i122594# correctly handle inner svg node...
...
when no width/height or percent is given
(cherry picked from commit 5fa6275694d0990018b13266b37c359b37251c1c)
Change-Id: I2981d7ad174faf0914b4fcd545257674ad5e8cb9
2013-07-02 14:24:30 +01:00
82a1d75ee5
fdo#43460: Use isEmpty() instead of getLength() in svgio
...
Change-Id: I65beeb09285553177a160e260d606e6ba3f1c023
Reviewed-on: https://gerrit.libreoffice.org/4641
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com >
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com >
2013-07-02 05:32:45 +00:00
d9b09a3ff3
Fix fdo#65847 - avoid infinite recursion in style resolution.
...
That was previously asking back the node for the font size, which
was again asking the SvgNumber, which was ...
In this case, if the node has relative sizes, this is always
relative to the parent.
Change-Id: Iaa81d0238d9eb73f5af24df347d12d7cb8ba8c0a
2013-06-27 20:44:07 +02:00
f8d1dcc621
fdo#43460: Use isEmpty() instead of getLength() in svgio
...
Change-Id: I31298a08408a14e1ae0d43b474681e6336b08003
Reviewed-on: https://gerrit.libreoffice.org/4340
Reviewed-by: Noel Power <noel.power@suse.com >
Tested-by: Noel Power <noel.power@suse.com >
2013-06-18 15:09:07 +00:00
b4219ea230
Resolves: #i122524# fixed some text import aspects for super/sub-baseline
...
(cherry picked from commit def95cfb69619071811fb8e564eb4187f59f4b99)
Conflicts:
svgio/source/svgreader/svgtoken.cxx
Change-Id: I1208229a86807ce271a823415e9b8f0baf955e01
2013-06-18 13:21:20 +01:00
b7a425aab6
Resolves: #i121801# Corrected handling of gradient transformations
...
(cherry picked from commit 4f49f1d95e8d0be7df259ad1458441fd858be735)
Conflicts:
drawinglayer/inc/drawinglayer/primitive2d/svggradientprimitive2d.hxx
svgio/source/svgreader/svgnode.cxx
svgio/source/svgreader/svgstyleattributes.cxx
Change-Id: I155854692a9d1771826867d2666fc6174e2c9256
2013-06-17 14:43:25 +01:00
5f84a4cdcb
Resolves: #i122324# detect own re-import of EmbeddedFonts...
...
and correct font name
(cherry picked from commit c2b5f0eedcc0fb7e0175e81b6f6127b99b8b7499)
Conflicts:
svgio/source/svgreader/svgcharacternode.cxx
Change-Id: I437db7feccd31a653f1100b426b568278faee4cc
2013-06-17 13:59:17 +01:00
86d121eb3d
Resolves: #i122522# apply needed order to CSS styles to presentation styles
...
(cherry picked from commit 2610028a8a1465006059c504a5230b67f550406c)
Conflicts:
svgio/source/svgreader/svgnode.cxx
Change-Id: If1f4184da76b275e44737d5f16a3cb57357db67d
2013-06-14 20:09:31 +01:00
0061af7950
Resolves: #i121656# Some more cleanups for SVG import
...
also const as const can
(cherry picked from commit bb9ad24b16add4888c4b1fadac5252b95a72f04f)
Conflicts:
svgio/inc/svgio/svgreader/svgstyleattributes.hxx
svgio/source/svgreader/svgstyleattributes.cxx
svgio/source/svgreader/svgtoken.cxx
Change-Id: If236eb8b1e0193c43229ea6dc496eb3a8fd20c42
Related: #i121656# removed const for return-by-value
(cherry picked from commit aa85e31b3162cd4b18c818bf0af1a854cb05c57d)
Conflicts:
svgio/inc/svgio/svgreader/svgstyleattributes.hxx
svgio/source/svgreader/svgstyleattributes.cxx
Change-Id: Ief43c478ea3000d114487918875e9a201dd827bc
2013-06-13 21:00:33 +01:00
cb8c6bf3c5
don't make it a secret what the errors are
...
Change-Id: Id5af439df527148e01ef41f21e55ff88ca19e672
2013-06-13 17:06:21 +01:00
9bc0ca091b
WaE: type qualifiers ignored on function return type
...
Change-Id: I40d946b1e3ba104e8b8acac53ccf7296f6ee78fc
2013-04-14 21:00:01 +03:00
5bdba378d6
#120435# Corrected CSS style detection to be executed only once per node
2013-04-14 17:52:34 +02:00
bc589d57f0
#121221# added boolean state to remember when the StrokeDasharray was set to empty by purpose
2013-04-14 17:52:33 +02:00
f75ca1fdad
Fix #120334# Added support for multiple CSS styles per graphic primitive
...
(cherry picked from commit 37446076e684a0d0de448366ab927531e3b54bba)
Conflicts:
svgio/inc/svgio/svgreader/svgstyleattributes.hxx
svgio/source/svgreader/svgcirclenode.cxx
svgio/source/svgreader/svgellipsenode.cxx
svgio/source/svgreader/svggnode.cxx
svgio/source/svgreader/svgimagenode.cxx
svgio/source/svgreader/svglinenode.cxx
svgio/source/svgreader/svgmarkernode.cxx
svgio/source/svgreader/svgpathnode.cxx
svgio/source/svgreader/svgpatternnode.cxx
svgio/source/svgreader/svgpolynode.cxx
svgio/source/svgreader/svgrectnode.cxx
svgio/source/svgreader/svgstyleattributes.cxx
svgio/source/svgreader/svgtextnode.cxx
svgio/source/svgreader/svgusenode.cxx
Change-Id: Id554528932eea590d645cb5e5a1ea8cf7f1d0aac
2013-04-14 17:52:33 +02:00
ba044b1e96
remove needless forward rtl::OUString declarations
...
Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
2013-04-07 14:23:12 +02:00