747 Commits
Author SHA1 Message Date
Andrea Gelmini 1b41793844 Fix typos
Change-Id: I551ed9154c66f2b4d7622d19430352ad89c3d2f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209914
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 11:52:05 +02:00
Andrea Gelmini ca8e2627d7 Fix typos
Change-Id: I067ecc337f9e2e927d8cdff1c74b22581aac9a6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209416
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-20 19:09:43 +02:00
Khaled Hosny 02c7caae9a svgio: font-variation-settings is an inherited property
It is inherited per CSS Fonts, so the children of a group must inherit
it when set on the group.

Change-Id: I3a7f1c58b249e0d647c3b8a15f9e2043b7d6c891
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209212
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2026-08-17 22:51:42 +02:00
Julien Nabet 7a7339462b Remove useless svgpaint.cxx, it only contains an include of svgpaint.hxx
Change-Id: I006f2fa09a03a2bcfd4510ef084fcb35228916d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207883
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-07-10 09:16:22 +02:00
Xisco Fauli 00aebb5e88 loplugin:unusedmethods
Change-Id: I5eec1b68efc285995db3b5825699c07fa006cb35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207375
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-06-29 10:16:53 +02:00
Xisco Fauli 6f81bce807 loplugin:unusedmethods
Change-Id: I57a535f72e639a9b708c5c7dc1790e354d2d477e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205943
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-06-04 10:00:29 +02:00
Karthik 2e4112e55a svg: Correctly import "baseline-shift"
If the `baseline-shift` is a percentage it should be imported relative
to the font-size. Currently it's being imported relative to the parent's
`baseline-shift`

reference: https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/baseline-shift

Change-Id: I5443e4ce748b423d074e0ca03bb4172607bd52ac
Signed-off-by: Karthik <karthik.godha@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3097
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit 0e1af2c9f8e95f14deb0e4643bef90cf98065aa5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205780
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-28 09:28:05 +02:00
Tomaž Vajngerl 03f0efdd07 svgio: fix rendering, which makes SVG images 1px bigger
We added a rectangle using PolygonHairlinePrimitive2D to the
HiddenGeometryPrimitive2D, so we can mark the boundary of the
SVG image. The problem with using the hairline primitive for this
is that the hairline size is grown by 0.5 in each direction
(implGrowHairline, which is called in getB2DRange), which also makes
our SVG size 1px bigger than it should be.

Using FilledRectanglePrimitive2D instead fixes this problem as the
rectangle isn't grown in size.

Also needed to change a lot of tests that were using SVG images
and asserted the size of the image in ome way.

Change-Id: Ic2aa98b3df1f0746e4cfbd3474b6a93d0f4072ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200440
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit aa2c07951b565cd5464a36a2b0721f888ab8531c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200433
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-19 09:28:32 +02:00
Xisco Fauli cfd3309a5d loplugin:unusedmethods
Check existing ones that can be removed

Change-Id: I6ee6fc1772c620ac5d12fea915681b094b7c3bfd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204583
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-04-30 08:54:45 +02:00
Khaled Hosny 1a571fde09 tdf#118792: Add support for font-variation-settings in SVG import
Change-Id: Iaae0426667a3d9357a3c714c6c63f52f79f06706
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203286
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-04-08 10:09:39 +02:00
Khaled Hosny 8672c952eb tdf#171624: Carry font variations through drawinglayer text primitives
Change-Id: I6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203248
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-04-06 17:13:36 +02:00
Samuel Mehrbrodt 341a1e34a6 tdf#168135 Fix text highlight for superscript/subscript
Text highlight for superscript/subscript now has the same size
as 'normal' text

Change-Id: If2bce2abd1cc1188f542a7de8c7b55d27c2cecc6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201010
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201543
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
Tested-by: Jenkins
2026-03-13 08:45:54 +01:00
Noel Grandin 8459f0be51 XmlWriter::attribute(double) should actually write a double value
And not truncate it to an integer value.

Add additional overload for attribute that takes an enumerated type, otherwise
the compiler will complain about ambiguous conversion because it cannot
choose between the attribute that takes a integral value and the one that
takes a double value.

Change-Id: I9eae22817ec3b26da7b9468d1c8b5e6f3e900538
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201193
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2026-03-10 15:49:17 +01:00
Bartosz Kosiorek 4dccec254c tdf166084 tdf138087 tdf59814 EMF+ Fix scale and trans DrawImagePoints Metafile
This commit fixes the incorrect positioning and scaling of Metafiles
rendered via EMF+ DrawImagePoints.

Key changes:
- Implemented a normalization matrix for Metafiles to properly map
  source coordinates (SrcRect) to the destination.
- Updated EMFPImage to parse and store bounds from nested EMF headers,
  ensuring correct dimensions (x, y, width, height) are available.

Change-Id: I07b4d99c334611a10e7faff42b76699f04fa1520
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201084
Tested-by: Jenkins
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2026-03-06 22:13:37 +01:00
Khaled Hosny 5825e9cfdb tdf#153368: Support optical size for variable fonts, part 8
Channel optical sizing option through drawing layer, otherwise it
doesn’t work in Draw/Impress.

Change-Id: I96cd3177dcf816b5c1e065663d4a8c90f187704f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200765
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-03-02 21:46:13 +01:00
Mike Kaganski e18a815190 Use rtl::isAscii(Hex)Digit and o3tl::convertToHex
Since some code needs flexibility in error handling, where hardcoded
error value of -1 wasn't handy, o3tl::convertToHex was changed to
accept the error value as its template parameter.

Change-Id: Ifc771cc8fa29a801d4556dea969fc3ea7e620df5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199367
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-02-14 11:40:50 +01:00
Gabor Kelemen 0bdcfc2900 tdf#146619 Use more forward declarations in include/unotools/
This shaves off some 40M of input

Change-Id: I12e10deb87ceea1f7a23f3de4ea624befe187c3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198238
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-05 17:35:46 +01:00
Xisco Fauli 99d19aebd3 tdf#168372: remove surrounding apostrophes in font-family
Change-Id: I94ef4ae8aa5aa7aa27602e959f80eb17c83679ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197864
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-01-23 11:32:59 +01:00
Gabor Kelemen 96cb87ca01 tdf#146619 Use more forward declarations in include/vcl/[a-o]
these were skipped in previous runs, since they contain some code behind #if

After inspecting these, it seems like the removals should not cause trouble.

Change-Id: I867ffc53254057e4bae43690214a2ab7ce0caa8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197493
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-22 09:42:36 +01:00
Caolán McNamara 50b4e6d6b4 drop CJK text from systemLanguage switch example
because we run this test with set_non_application_font_use=abort so we
don't expect any glyph substitution, and the default setup is without
any bundled Japanese font.

Change-Id: I2e7ead7404fbacb768c06502a52cde629c1a1116
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195407
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-12-12 10:41:46 +01:00
Caolán McNamara 4dca59d904 don't tack on a extra null byte at the end of the stream
Change-Id: I8fa54a6f8a69f4cbed1bf899ba0781096198ef81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195403
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-12-11 09:54:26 +01:00
Khaled Hosny d0e936765b Silence an svgio warning
I get a bunch of warnings when opening e.g. Writer:

warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)
warn:svgio:38509:18012388:svgio/source/svgreader/SvgNumber.cxx:74: SvgNumber not set (!)

This happens when reading translate transform without y position. Since
y is optional, we should initialize aTransY to avoid the noisy warning.

Change-Id: I503a126aa7ce0be9caca366247710dd46316b255
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191872
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2025-10-08 12:10:20 +02:00
Khaled Hosny 1bdf1e2d52 tdf#168371: Disable ligatures in Impress/Draw with character spacing
This is follow up to commit:

commit b9f0caad5d
Author: Khaled Hosny <khaled@aliftype.com>
Date:   Tue Aug 23 04:13:28 2022 +0200

    tdf#66819: Disable ligatures with character spacing

Even though editengine was applying letter spacing, when drawing with
drawinglayer, letter spacing was not propagated which caused VCL to not
disable the ligature features.

Change-Id: Ia8bf2231478720262484a757e16fe5afec3cd28e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191512
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2025-09-25 18:52:49 +02:00
Xisco Fauli f127f708f6 tdf#168452: support unicode-bidi in svg
Before this change, getBiDiStrong() was never used
to manipulate the text

Change-Id: I9d6a2e8b79d27126902f2be84174c641ec71c28c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191123
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-18 16:34:18 +02:00
Xisco Fauli 4d9a323a83 tdf#168378: invert text anchor in RTL
Change-Id: Ia9b7e526ab20cbcdb521f965a5a2dc0726894209
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191018
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-16 15:28:30 +02:00
Caolán McNamara 7a949f651e cid#1660155 Division or modulo by float zero
Change-Id: I1ce2be046b3a9504e00b45d6d96b2630ecac5447
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190997
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-09-16 09:21:05 +02:00
Xisco Fauli 4efae74abc tdf#168421: support RTL text direction in svg
Change-Id: Iba8853d131bf88be3cc94003a73ffe545cf62004
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190978
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-15 22:39:35 +02:00
Noel Grandin 6d0e5ddede remove BitmapEx
all use-sites have been converted to Bitmap

Change-Id: I1a8842217a266eef100bd387ab013b004e532256
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190618
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-05 19:45:45 +02:00
Armin Le Grand (collabora) ba462658d9 tdf#168002 CairoSDPR breaks SVG text layout
SubpixelPositioning was until now activated when *any* MapMode was set,
but there is another case this is needed: When a TextSimplePortionPrimitive2D is rendered by a SDPR.

In that case a TextLayouterDevice is used (to isolate all Text-related
stuff that should not be at OutputDevice) combined with a 'empty'
OutDev -> no MapMode.

The DXArray for Primitives (see that TextPrimitive) is defined in the
Unit-Text_Coordinate-System, thus in (0..1) ranges. That allows to
have the DXArray transformation-independent and thus re-usable and
is used since the TextPrimitive was created.

If there is a DXArray missing at the text Primitive (as is the case
with SVG imported ones, but allowed in general) one gets automatically
created during the SalLayout creation for rendering. Unfortunately there
(see GenericSalLayout::LayoutText, usages of GetSubpixelPositioning) the
coordinates get std::round'ed, so all up to that point correctly
calculated metric information in that double-precision dependent coordinate space gets *shredded*.

To avoid that, SubpixelPositioning  has to be activated. While this
might be done in the future for all cases (SubpixelPositioning ==
true), for now add this case for all usages of TextLayouterDevice to
not break old stuff.

NOTE: Due to higher precision I had to adapt some values for SVGIO
tests: That is expected since higher precision leads to less-wide
results internally. I checked testdocs that deviations are minimal and
have better quality with SubpixelPositioning then before.

Change-Id: Iab5aa6336cdb18224fd06472bf6badc9eb0fce3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189993
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
2025-08-26 10:45:00 +02:00
Noel Grandin e6211a4b3b BitmapEx->Bitmap in various
now that Bitmap supports transparency

Change-Id: If946687832cf30db70db9749e5aeed38ab1490c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190149
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-08-25 12:59:18 +02:00
Caolán McNamara f71d0ce6d9 cid#1660550 silence Division or modulo by float zero
Change-Id: Ib6c176b3c6429294ef582d9dc392f1a355c4e8a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190086
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-23 14:35:59 +02:00
Noel Grandin cbd59a9897 use Bitmap in drawinglayer::convertToBitmap
now that Bitmap supports transparency

Change-Id: Ib35d91c1742c2126bef878251eb0ea4de87d425d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189596
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-08-14 18:06:16 +02:00
Noel Grandin 0655d5b6b5 BitmapEx->Bitmap in BitmapPrimitive2D
now that Bitmap supports transparency

Change-Id: If3646b64712836c09a274d6b1bcdd7367ce54a6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189136
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-08-11 21:17:56 +02:00
Caolán McNamara 3a5bddfa56 cid#1659758 silence Division or modulo by float zero
Change-Id: I263e8d0e2658bfa4de30c4954101a9126609917e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189256
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2025-08-09 15:02:20 +02:00
Noel Grandin 29fac887b0 reduce svgio warning spam
Change-Id: I9408979c4841f3c1a138f1efcc860bcb391b38ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189156
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-08-08 13:00:43 +02:00
Noel Grandin e685e2eb2b BitmapEx->Bitmap in Bitmap*BlendFilter
now that Bitmap supports transparency

Change-Id: I4ceeb67a20d9c6b09d2667f680030aa49b9c4b0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188988
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-08-06 13:21:13 +02:00
Caolán McNamara fc2bc3c01d cid#1660061 Division or modulo by float zero
Change-Id: I26d92fa78b3219c3894016caf51b6977c828f4b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188894
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-04 12:37:20 +02:00
Noel Grandin e041602d59 BitmapEx->Bitmap in BitmapFilter
now that Bitmap can handle transparency.

Which exposes a bug in skia, where an unfortunate optimisation
breaks bitmaps with alpha data, because it overwrites said
alpha data.
So remove that skia optimisation.

Change-Id: If821f6f04f464ee4ad42ba1c6571db6c69525ece
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188885
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-08-04 12:30:31 +02:00
Xisco Fauli 42e566654a tdf#167147: Support transparent fill color
Change-Id: I5a38a52f2720f58bc2762d328fb6a5e4090c6dde
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186780
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-06-21 16:17:43 +02:00
Gabor Kelemen 9cf87b3f30 Remove obsolete fw declarations from store/ svgio/ svl/ svtools/
found with bin/find-unneeded-includes --fwdecl

Change-Id: I2c2c082d761b87bfe731ab21caa2f04e385c2e3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183906
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-05-12 17:05:03 +02:00
Noel Grandin fbe05bc89a loplugin:bufferadd extend it to find some more places
where we can simplify *StringBuffer usage

Change-Id: Ic2005b886b486a6627a43f8dcfba3258cb168921
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184428
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-04-22 11:53:07 +02:00
Chris Sherlock a43320a3ad vcl: make BitmapDarkenBlendFilter use BitmapFilter
Change-Id: I2ec47793fa094e452f30f9628c121772db578656
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173743
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2025-03-02 13:15:53 +01:00
Xisco Fauli 1ad1b3e833 tdf#164434: svgio: Add unittest
Change-Id: Id66f344c785f1771debcc8bd2e09c8a04da4c989
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180165
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-01-13 12:26:17 +01:00
Caolán McNamara 635f9d8542 cid#1638655 COPY_INSTEAD_OF_MOVE
Change-Id: I7d6ab24fb8d295a9e21a475e850374ba7d2becf7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180133
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-01-12 13:02:58 +01:00
Armin Le Grand (Collabora) 6700b31131 tdf#164434 Correct SvgSymbolNode SVG import
The embedding cannot rely on SVG providing all
values of x/y/w/h, so added fallbacks to real
geometric size. Also removed double-adding
geometry.

Change-Id: I1914ed0c3e1e42ba899db4f3eb9193fd29e9c4be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179831
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2025-01-07 22:09:44 +01:00
Mike Kaganski 962bd03938 Simplify a bit
SVG diagonal percentage distances are defined in terms of
viewBox diagonal length divided by sqrt(2) (normalized).

See https://svgwg.org/svg2-draft/coords.html#Units

Change-Id: I0d2101315d5f6c3333d021251eff17f6c13e804f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175991
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-11-05 06:36:16 +01:00
Chris Sherlock bc2ff9daf5 vcl: move bitmap filter headers into vcl/bitmap global header directory
Use #pragma once instead of header guards

Change-Id: Iba43f2103628ed184933cf2611991e7aef9f0173
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173369
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2024-10-21 09:45:21 +02:00
Mike Kaganski a6a6921123 Use good old string literals in assertXPath and friends
These are only sent to an external API expecting char*-like strings,
or for comparison. Having every assertXPath having three of _[ou]str
is too much syntactic noise, making the unit tests almost unreadable.

Change-Id: Ic004a36ea75e7bfe0b96f405c40f926a957b51cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174416
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-10-05 10:06:44 +02:00
Andrea Gelmini 76e8a1a2d7 Fix typo
Change-Id: I48ef74823ee2574439c977098f412d6a885af57d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174403
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-10-03 08:33:23 +02:00
Xisco Fauli 16684eb4ba tdf#163212: context-fill/context-stroke can also use gradients
Change-Id: Ic6f7f5e0817d8f5fccee64938004aa899bde47dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174382
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-10-02 14:31:47 +02:00