418 Commits
Author SHA1 Message Date
Andrea Gelmini 50ae505eb3 Fix typos
Change-Id: I13dd7b54737007cb69096bddef619670ef8af7b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209899
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 11:57:36 +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
Samuel Mehrbrodt 0534223b18 tdf#166030 Read bullet indents from metroBlob in ppt
for each shape there is a metroBlob which contains
a small ooxml part with some properties for the shape.

Read 'marL' and 'indent' from that metroBlob to properly
import margin and indent and thus have functioning hanging indent.

Change-Id: I126e13c6ed4fc062fdbe6b80ff358bcc363a1b84
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202157
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202418
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
2026-03-24 07:36:23 +01:00
Noel Grandin cff0defd2c Fraction->double in FrPair
Change-Id: Ibfee97e8b778bae6d93be852c78ab518285ca27c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201745
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-03-21 12:44:23 +01:00
Gabor Kelemen bce3ef60a8 tdf#146619 Use more forward declarations in include/sot/
Change-Id: I6706c7009432d0d8d7bc6f9193d8f020e9aedf25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198239
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-06 19:33:51 +01:00
Noel Grandin 7d6f84c624 loplugin:constantparam OutChar
always has pSuccess == nullptr

And is also not used outside of filter anymore, so remove from header file.

Change-Id: I9ea0f58941d301ec024e8c8d0ed8cf0ae354b950
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198123
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-01-26 13:40:39 +01:00
Rene Lopez Araiza 3c7c19ca03 tdf#114441 Use sal_uInt32 for OutHex parameter
OutHex only handles small values, so a fixed 32-bit type is sufficient.

Change-Id: I2c4452ebfa933abf664f4f5eb4a0114fbc6a7648
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195264
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-12-18 14:17:44 +01:00
Gabor Kelemen 3896908d68 tdf#146619 Run IWYU again on include/[f-i]*
Change-Id: Id9ee32e8583c3917fbe927a070f5ad3b5f6f3b9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192745
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-08 22:01:12 +01:00
Mike Kaganski 6fd45f275d GetFontEnityAtom -> GetFontEntityAtom
Change-Id: I3278f7b9130a142a0559244e00c12f2d3362ef3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192609
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-10-18 15:55:33 +02:00
Simon Chenery 91fdab8b42 tdf#143148 replace include guards with pragma once in include/filter/msfilter
Change-Id: I47a5b5a6594d71939e3e5ee5f53d0ff4a938342a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192078
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Tested-by: Jenkins
2025-10-16 17:08:52 +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
Caolán McNamara e3a9f2bb2f cid#1660214 Overflowed constant
make types consistent here

Change-Id: I9e0b44d53d0affa2220f956dcaef8a613ff51e7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189411
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-08-12 15:38:21 +02:00
Noel Grandin 3846485ba7 BitmapEx->Bitmap in TBCBitMap
now that Bitmap can handle transparency

Change-Id: I4d1c68b1930682fb558dde1f46658c4107f00282
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188615
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-07-31 14:13:38 +02:00
Noel Grandin fdafe86081 simplify SvxMSDffBLIPInfos
no need to wrap a sal_uInt32 in a struct

Change-Id: I5db794fced7b8f5de1ad154ceedb8509a627d7a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185398
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-05-16 13:37:53 +02:00
Tibor Nagy 589e523dd9 tdf#164775 PPTX export: fix connector shape regression
A connector shape can be connected to a shape, if the end of connector shape is released inside the target shape, it will automatically attach to the best possible connection point.
It takes into account the shape type, geometric properties, and
user-defined glue points.
In this case, if we export the ODP file to PPTX, we need to use the GetConnectorRule() method to get the correct connection index(idx).

this regression is
caused by commit 4d15351718
(tdf#149697 PPTX export: fix changing place of connection points).

Change-Id: I8eda059e72f595edc62fd5bc7f3e6466988af5bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181226
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
2025-02-09 17:27:49 +01:00
Mike Kaganski 6bfe8335c8 Simplify and improve getMSPaperSizeIndex
Previously, it required for some reason, that in order to be found,
the new paper size must be better than the previous-best, in *both*
dimensions. Thus, if the previous-best e.g. matched one dimention
perfectly, but not the other, no better match could be found.

Change-Id: Ia8cd4fd98f324c8450577859dbdd21831b66e2e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180164
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-01-13 13:56:23 +01:00
Gabor Kelemen de8b935e16 Drop unneeded forward declarations from include/ even harder
test drive the new bin/find-unneeded-includes --fwdecl mode
with iwyu 0.23 instead of 0.21, this seems to find more unneeded
fw declarations

Change-Id: I451e571c70eb74f46c799753e3c5a53c0110da36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179707
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2025-01-06 09:28:27 +01:00
Gabor Kelemen 72df5a6fdf Drop unneeded forward declarations from include/
test drive the new bin/find-unneeded-includes --fwdecl mode

Change-Id: I507fa2b172ec9e348d1d91066ea241f02187b5ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179321
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2025-01-03 09:32:27 +01:00
Caolán McNamara 02b2dce99c cid#1636522 Missing move assignment operator
Change-Id: I2d5f4e69b5cb9205743484c23443df2084da4fad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177721
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-12-03 11:47:19 +01:00
Caolán McNamara d4d74fc3b4 mnOriginalTextPos is only written to, never read
Change-Id: Iaca97dc3a0534847cbe96816a0827549a8f8d371
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177685
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-12-02 15:33:59 +01:00
Caolán McNamara 2ca770830c nothing consumes the ReadParaProps nCharCount arg, so drop it from params
Change-Id: Iea1bd3bb7df6466aeee480d8e44659b71bef580e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177614
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-12-01 19:19:54 +01:00
Caolán McNamara caeed20075 ReadCharProps always overwrites nCharCount
its an out only param, not in-out

Change-Id: I4e969bf06bed41a7e04497880f8ea51a3f784feb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177612
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-12-01 19:19:13 +01:00
Bogdan Buzea 929875a431 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I23379077766af9c04357bd098b132a03a9b35877
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177061
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 09:52:44 +01:00
Lue_lueita a95b97adaa tdf#143148 Use #pragma once instead of include guards
Change-Id: I045cfd010401ed4131b28aab2e94308c226cc154
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175658
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-10-27 06:35:23 +01:00
Tibor Nagy 38f6f44a2c tdf#162283 PPT export: fix regression...
...was made by: Iefb9d97e0eb10a04c39b515b11e549aeb7be8f25

This regression occurred because there is a feature in MSO that allows
the shape of a placeholder to be changed. In this case, the placeholder
is converted into a custom shape after the import and saving custom shape from .pptx to .ppt didn't work.

Change-Id: I85305b65742da8b4966d4956b9141c59b4563973
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172091
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Tested-by: Jenkins
2024-08-21 12:57:57 +02:00
Oliver Specht b860aea9d6 tdf#160198 Compatibility in background shapes/pictures
Paint Word background shapes/pictures (wrapped through) above
header and footer if the anchor is in the document body.

Change-Id: Ic32ba8d64f82c64e502788007e49a9dce4c4c76f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164802
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-05-28 00:45:20 +02:00
Mike Kaganski 1ac5353bbb Use weak reference to SfxObjectShell in SfxEventHint to avoid use-after-free
The events may be processed after the shell has been destroyed. This is
happening reliably after commit e2bfc34d14
(Reimplement OleComponentNative_Impl to use IGlobalInterfaceTable,
2024-03-11) when controlling LibreOffice from external Java scripts; but
obviously, it could happen before as well.

Now SotObject inherits from cppu::OWeakObject, instead of SvRefBase.

Change-Id: I73a3531499a3068c801c98f40de39bdf8ad90b2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164458
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-03-11 04:43:28 +01:00
Noel Grandin 033aaeec9e use more UNLESS_MERGELIBS
Change-Id: I351a9127fb26369d8f598b6d6519d7e490fa476b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163190
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-02-12 20:25:54 +01:00
Stephan Bergmann bd6fb0cd3e Extended loplugin:ostr: Rewrite some O[U]StringLiteral -> O[U]String
...in include files.  This is a mix of automatic rewriting in include files and
manual fixups (mostly addressing loplugin:redundantfcast) in source files that
include those.

Change-Id: I1f3cc1e67b9cabd2e9d61a4d9e9a01e587ea35cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158337
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-23 11:04:42 +02:00
Gabor Kelemen 7d66020d29 tdf#146619 Recheck include/[e-j]* with IWYU
Change-Id: I705becd4618989ca274ca8c42eeff3bc18a4ae76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156986
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <kelemeng@ubuntu.com>
2023-09-23 10:39:02 +02:00
Samuel Mehrbrodt 76932ec6c4 tdf#48083 Handle mso_fillBackground directly when processing the shape
And remove the no longer needed special handling
in SdrPowerPointImport::ImportPage

Follow-up to a43f1ac6c9

Change-Id: I0382d5cf93f9e3dfba2b7822032e3eb3cf668a8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156638
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2023-09-07 13:56:00 +02:00
Noel Grandin b321cf7880 use sal_uInt64 when dealing with stream position
Change-Id: I2c89096c306e1537622fc52644d20ae605183b35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155527
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-08-09 22:34:07 +02:00
Noel Grandin d955016f31 use sal_uInt64 when dealing with stream position
Change-Id: I09285716b6d17d8de95af91d822966520af35605
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155526
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-08-09 22:33:57 +02:00
Caolán McNamara b6589ad8c7 ofz: Use-of-uninitialized-value
Change-Id: Ia064835f3fee71e9a177b2ab37f66e3fd2a94fce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153569
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-06-26 09:57:06 +02:00
Noel Grandin 38640d7cb4 use more string_view in filter
Change-Id: Icbccd81fd0fa18fc15a32aa2729b1c5f9a3ee542
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150220
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-04-11 17:18:51 +02:00
Noel Grandin db0175bf3a no need to allocate these separately
they are all one or two words in size

Change-Id: I44d60e9fca03ce6709551a660661dd2a6778fd7e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148377
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-07 11:24:47 +00:00
Michael Stahl 0fafc03c24 tdf#153083 writerfilter,sw: consolidate StyleName->StyleId in msfilter
Turns out there was already a function MSWordStyles::CreateStyleId()
doing the same thing as FilterChars(), presumably better.

Change-Id: Idd0129c753841b86bd026e1300aa57a56721c89e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146609
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-02-07 15:17:30 +00:00
Justin Luth d50eca2a30 tdf#117266 sc oox: export vml button with a correct name
Without a correctly formatted ID, LO was unable to import
the shape into the spreadsheet. Now at least the button
shows up and can be pressed.

MS Word already showed the button before the patch,
so nothing there has changed. That suggests that our
problem may be more during import.

This code path is also followed by DOC and DOCX formats,
but they do completely different things with the results.
This is super nasty code...

Change-Id: I383736a7de9c3e94b427d5747e5949c0348dcecd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145509
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2023-01-15 02:09:06 +00:00
Caolán McNamara d968061f00 crashtesting: asserts with outsized object positions
seen during import of:
forums/forum-mso-en4-187408.xls
forums/forum-mso-en4-187900.xls
forums/forum-mso-en4-187890.xls

Change-Id: Id15e9c1ea98d761225d41850b9b2aa58d9c9e407
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144466
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-12-19 16:37:15 +00:00
Noel Grandin 9c2e77152c loplugin:unusedfields make some fields private
this is one of the secondary analyses this plugin performs

Change-Id: Iaa4424c2396470c6f1df85b0290fbffdda35fa08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143177
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-11-23 20:49:03 +01:00
Justin Luth ffc15725b5 tdf#148806 tdf#151393 xls vba: no Auto_Open from ThisWorksheet
Unlike Word, ThisWorksheet cannot hold auto-running
subroutines for Open/Close/New.

This fixes a LO 7.4 regression caused by
commit beb6c62e99.

Change-Id: Idb8f72775d9392b306cb924ee776821272b12f3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141127
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2022-10-11 20:39:04 +02:00
Justin Luth eaa38b0f9d tdf#148806 doc vba: only autoOpen PUBLIC macros
Note: this should NOT apply to Document_Open which normally
is a private subroutine and runs fine as private.

I tested and it DOES apply to all three version of AutoOpen:
-ThisDocument.AutoOpen,
-<AnyModule>.AutoOpen,
-AutoOpen.Main

Note: this is different from Excel.
Private Auto_Open runs just fine there.

Change-Id: If10c8c90c35275c2b14dc2e15fb357674fc580b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141114
Tested-by: Justin Luth <jluth@mail.com>
Reviewed-by: Justin Luth <jluth@mail.com>
2022-10-11 03:08:13 +02:00
Noel Grandin f725629a62 use more string_view in filter
Change-Id: I75c98f1da8898840bb882c17c7f1e59ec11ae8af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140648
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-27 15:04:00 +02:00
Noel Grandin fd3888c69a move ErrCode to comphelper and improve debug output string
need to move it, because modules "below" vcl want
to use the debug output method

Change-Id: Ibcaf4089a1e0b3fcc0b5189c7ebf1aae90f50b48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139791
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-14 08:34:38 +02:00
Noel Grandin 5cc45f148d no need to dynamically ImportCGM symbol
we are preloading this library anyway, so whatever benefit this might
have provided is long gone

Change-Id: I36ca42de5f802c73b2e2da3b52a996657298211f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139865
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-14 08:33:26 +02:00
Caolán McNamara 86b55d2494 cid#1500419 rearrange to silence Use after free
Change-Id: I4529306d94c88ba6572f108f512f1521c849246c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139536
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-09-07 16:46:57 +02:00
Noel Grandin 8611f6e259 ref-count SdrObject
Which means we can get rid of the majestic hack of ScCaptionPtr
Previously, SdrObject was manually managed, and the ownership
passed around in very complicated fashion.

Notes:

(*) SvxShape has a strong reference to SdrObject, where
previously it had a weak reference. It is now strong
since otherwise the SdrObject will go away very eagerly.

(*) SdrObject still has a weak reference to SvxShape

(*) In the existing places that an SdrObject is being
deleted, we now just clear the reference

(*) instead of SwVirtFlyDrawObj removing itself from the
page that contains inside it's destructor, make the call site
do the removing from the page.

(*) Needed to take the SolarMutex in UndoManagerHelper_Impl::impl_clear
because this can be called from UNO (e.g. sfx2_complex JUnit test)
and the SdrObjects need the SolarMutex when destructing.

(*) handle a tricky situation with SwDrawVirtObj in the SwDrawModel
destructor because the existing code wants mpDrawObj in
SwAnchoredObject to be sometimes owning, sometimes not, which
results in a cycle with the new code.

Change-Id: I4d79df1660e386388e5d51030653755bca02a163
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138837
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-08-29 13:44:02 +02:00
Noel Grandin 6b252b6adb clang-tidy modernize-pass-by-value in filter
Change-Id: Id55c90665eaa29ee2ece07606429411549e06b8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135242
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-06-01 18:52:21 +02:00
Noel Grandin 41fa4bb83a use more string_view in filter
Change-Id: Ieff65b96487051721f9016c005523f31b7415901
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132984
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-14 11:24:53 +02:00
Mike Kaganski d65c8b3759 Simplify GetOOXMLPresetGeometry and GETVMLShapeType
Let them use types that know string lengths, don't require conversion,
and are convenient at call sites.

Also inline the maps initialization, instead of having separate arrays
and initialization loops.

Change-Id: Id4469f3f99f3f0eb2cd83f0671cf892df4e420a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131550
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-03-15 06:19:53 +01:00