508074 Commits

Author SHA1 Message Date
89a6a6cb74 -Werror=unused-but-set-variable= (with recent GCC 16 trunk)
...seemingly ever since 94ccba3eeb "Bring module
to HEAD."

Change-Id: I0fd27859baef2ec67022ebbb5725d3e9c0a72d69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188124
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins
2025-07-22 00:13:38 +02:00
6381d36667 tdf#167511 correctly apply Color in HighContrast mode to text III
need to react on change of EditViewActive in SdrTextPrimitive2D
decomposition, added that. Only do that in HighContrast mode
to not waste time if not needed.

Change-Id: I7300dfdcf8d51ef4db9ecc67f56c785d45ef44e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188112
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
2025-07-21 20:34:10 +02:00
a510a24a37 gtk4: Unconditionally use function introduced in GTK 4.6
Handle the

    // TODO after gtk 4.6 is released require that version and drop this

, given that GTK 4.10 is the minimum version since

    commit 5bf58785ba
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Jun 21 09:22:07 2024 +0200

        gtk4: Require GTK >= 4.10

Change-Id: I14a54b2e6503f7439b20c91e1b72db64b88b0b05
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188113
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-07-21 20:26:21 +02:00
b729b0bb67 tdf#159775: restore filename from URL on redirection
Some github release URLs, like

https://github.com/hanya/MRI/releases/download/v1.3.5/MRI-1.3.5.oxt

get redirected to something like

https://release-assets.githubusercontent.com/github-production-release-asset/3265966/eff2c80e-138d-4b06-8139-e433f4672379?...

of which, 'eff2c80e-138d-4b06-8139-e433f4672379' is used as
ucbhelper::Content's title. That is used to construct local
filename in UpdateInstallDialog::Thread::download. Later in
PackageRegistryImpl::bindPackage, the extension of the file
will be used to detect the mediatype; if failed, operation
will abort.

Detect this situation, and restore the filename from URL.

Change-Id: Ib95189ff35e07fd01c95f87827c6f620ebfe2fe1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188114
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-07-21 18:12:33 +02:00
dc01bb6306 Silence new GCC 16 trunk -Wsfinae-incomplete for now
...which was introduced in
<https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=117782e0c2a81a4b8170f87f0fe7190ee22548e2>
"c++: add -Wsfinae-incomplete" and causes warnings like

> In file included from include/vcl/event.hxx:28,
>                  from libreofficekit/source/gtk/lokdocview.cxx:26:
> include/vcl/outdev.hxx:160:37: error: defining ‘OutputDevice’, which previously failed to be complete in a SFINAE context [-Werror=sfinae-incomplete=]
>   160 | class SAL_WARN_UNUSED VCL_DLLPUBLIC OutputDevice : public virtual VclReferenceBase
>       |                                     ^~~~~~~~~~~~
> In file included from include/vcl/vclevent.hxx:24,
>                  from include/svtools/colorcfg.hxx:29,
>                  from include/vcl/themecolors.hxx:12,
>                  from include/vcl/settings.hxx:26,
>                  from include/vcl/event.hxx:26:
> include/vcl/vclptr.hxx:44:13: note: here.  Use ‘-Wsfinae-incomplete=2’ for a diagnostic at that point
>    44 |     int (*)[sizeof(T)])
>       |             ^~~~~~~~~

because

> include/vcl/vclptr.hxx:44:13: error: failed to complete ‘OutputDevice’ in SFINAE context [-Werror=sfinae-incomplete=]
>    44 |     int (*)[sizeof(T)])
>       |             ^~~~~~~~~
> include/vcl/vclptr.hxx: In substitution of ‘template<class T> constexpr bool vcl::detail::isIncompleteOrDerivedFromVclReferenceBase(int (*)[sizeof (T)]) [with T = VirtualDevice]’:
> include/vcl/vclptr.hxx:60:79:   required from ‘class VclPtr<VirtualDevice>’
>    60 |         vcl::detail::isIncompleteOrDerivedFromVclReferenceBase<reference_type>(
>       |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
>    61 |             nullptr),
>       |             ~~~~~~~~
> include/vcl/outdev.hxx:188:37:   required from here
>   188 |     VclPtr<VirtualDevice>           mpAlphaVDev;
>       |                                     ^~~~~~~~~~~

As discussed in the newly added comment in include/vcl/vclptr.hxx, until we can
address this with C++26 reflection, "use a HACK of (globally) ignoring that
warning".  (Which required adding a new HAVE_GCC_WSFINAE_INCOMPLETE configure
check.)

Change-Id: Ie1b44e730cf6b6269572158f6bd50e8911c15846
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188115
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins
2025-07-21 18:11:10 +02:00
4d6429c036 tdf#167536 Switch to IconView for presets and shadows in border page
- Replaces ValueSet with IconView widget in the border for presets and shadows.
- Updates the borderpage UI file to support IconView.
- Fix selection action for presets in format cell dialog test

Change-Id: I4a6ef0de2056e21539462c69551293df9a44041b
Signed-off-by: Parth Raiyani <parth.raiyani@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187987
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins
2025-07-21 17:56:39 +02:00
24f3c68d30 tdf#167544 Add 'Insert Hyperlink' to context menu when text is selected
This adds a 'Insert Hyperlink' entry to the context menu to allow
quick hyperlink creation when some text is selected.

The entry will not be displayed when an already existing link is selected
or when no text is selected at all.

Change-Id: I954c9a3fe417548f9291e82d4504763eb71b998d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188106
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
2025-07-21 15:40:30 +02:00
c23a560f4b Fix comment after 5b808448dc
Change-Id: Id10811fc5eedc2983eb0445827ffa7882fce2180
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188105
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-07-21 13:59:59 +02:00
8d769fb69b android-viewer translated using Weblate
Chinese (Simplified Han script) currently translated at 100.0% (116 of 116 strings)

Change-Id: If3ac06837995afb551368f27eea9420550f626cf

Added translation for android-viewer using Weblate (Chinese (Simplified Han script))

Change-Id: Ia7bc19628ed9f061cdf93f89efab2d0c9428e6f6
Co-authored-by: Ming Hua <plateauwolf@qq.com>
Co-authored-by: Weblate <noreply@documentfoundation.org>
Co-authored-by: 锁琨珑 <suokunlong@126.com>
Translate-URL: https://translations.documentfoundation.org/projects/android-viewer/android-strings/zh_Hans/
Translation: android-viewer/android-strings
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187837
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-07-21 10:55:34 +02:00
088a7c7c45 remove alpha device from OutputDevice
and render to a combined color+alpha bitmap

The strategy is to remove the mpAlphaVDev from OutputDevice,
and have the OutputDevice create 32-bit SalBitmap's
and then have the various backends correctly render to
those 32-bit bitmaps.

However, whenever we extract a BitmapEx from OutputDevice
(e.g. via VirtualDevice) and hand it to the rest of the
system, we split the color and alpha information.
So the rest of the codebase doesn't have to deal with
this yet.

We have some major problems to overcome here:
(*) Cairo uses 32-bit data, even if we ask for 24-bit color with no alpha.
    This is because the current version of cairo does not support RGB 24-bit data.
(*) Sometimes we want the bitmap to be initialised with an opaque white background,
    sometimes we want it to be transparent.
(*) Sometimes when we extract a bitmap from a device, we want the alpha channel,
    sometimes not.
(*) There are lots of left-over bits of previous attempts of this change lying around,
    e.g. in skia.

Notes
(*) we allow Bitmap (ie. SalBitmap) to hold color+alpha
(*) The BitmapEx(Bitmap) constructor checks if the incoming
Bitmap is color+alpha, and if so, splits into a color bitmap and an alpha bitmap
(*) Because the underlying image data is stored pre-multipled, if
we write a transparent pixel with color, and then read the pixel value back,
we might lose the color information.

Change-Id: I0fc0042d6e5be5edd99b320892fb00a8eb2842fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173937
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-07-21 10:49:25 +02:00
3b22e7c3aa tdf#167591: Convert date string to date early
To insert a default value, ODatabaseForm gets its value from column
properties, and passes to XColumnUpdate. The problem appeared when
the default was a localized date string, like "20/07/25".

The string was set as the value of a ORowSetValue; then, when its
value was requested, its getDate() called DBTypeConversion::toDate,
which only handles ISO date strings. But for correct conversion, not
only the string is needed, but also its format key. This information
is already lost at that point. The conversion failed, and the result
date was invalid, somewhere in the beginning of CE.

Try to overcome this problem by converting the default value from
date string to date(time) where all the information is available.

Change-Id: I73e96e433895da18cbf6145ffc26b16fa4844452
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188093
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-07-21 08:18:23 +02:00
5b808448dc Related: tdf#167591 Make STANDARD_DB_DATE more standard
For some reason, STANDARD_DB_DATE was 1900-01-01, which differs from
the most used epoch of 1899-12-30 (see e.g. the default initializer
of ImpSvNumberformatScan). This was triggering tdf#167591, where the
correction added two days of the difference to the date entered into
the default value box.

I couldn't find how/if this value could get exposed to API; so let's
try to standardise it a bit.

Change-Id: I9207cbe3a5a91ca63f3f97792da0c5ad2931ffa8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188092
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-07-21 08:18:18 +02:00
060775489a tdf#167591: Only apply date correction, when sDefault wasn't date string
The correction is needed to adjust a date in the data source's epoch
to the epoch used by the control (and its formatter). These epochs
may differ.

The problem was, that when sDefault has a date string like "20/07/25"
or "2025-07-20", the conversion from that string to double using the
control's formatter already created the value in the required epoch;
and the correction broke the value.

Fix that by checking if the string was really a date string, and so
the correction should be skipped.

Change-Id: Ia1ba2b1b5dc88d66d524ff03fecc028f7ebf3336
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188091
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-07-21 08:18:12 +02:00
80275c5811 Simplify the condition
css::util::NumberFormat is a bitset; css::util::NumberFormat::DATE is 2,
and css::util::NumberFormat::DATETIME is 6; so it doesn't make sense to
check the latter after checking the former.

Change-Id: I1fd968cae2678dc9244594faeb8f9164a714ef7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188090
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-07-21 08:18:06 +02:00
0cada4591d const up zxing
Change-Id: I40e040b3227c2a03f3337f99c156cad71bd8a892
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188095
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-21 00:25:21 +02:00
f6be328e0a const up HWPDOFuncTbl
Change-Id: Iabc84aa1524d9fa2cce8bda389d004ece4a174b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188094
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-21 00:25:13 +02:00
61227073e1 const up lcms2
Change-Id: Iaca3404bd9e8de00d84a89eb86b5e3b9cc12535b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188089
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-07-21 00:24:46 +02:00
32aa68a652 tdf#167490: PDF export: add option to disable external links in PDF
- Adds a new PDFViewSelection option to tell LibreOffice NOT to include
  hyperlinks to external files/URLs in the generated PDF document.
- New option can be used both through CLI and through a new radio button in GUI.

Known limitations: when this option is used it prevents LibreOffice from generating
link annotations in the generated PDF file.
But it does not prevent that some PDF viewers may still transform anything that
looks like an URL in the document text to a link automatically, even when there
is no explicit link in the PDF file at all.
(If that is undesired, check the settings of your PDF client to see if
that can be changed. E.g. if you intend to serve the generated PDF through
a web application to end-users, an option would be to use the pdf.js
Javascript based PDF viewer that has an "enableAutoLinking: false" option)

Change-Id: I264f85f7adb38a748f292badd6c5aac60fbd9957
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187800
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2025-07-20 22:13:21 +02:00
f6f971ab7c vcl : use more frozen::unordered_map
Change-Id: I1012be7df58cacde41e2a56e84e264edd4059a8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188086
Tested-by: Jenkins
Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
2025-07-20 21:17:05 +02:00
05e516bd63 Flatten ODatabaseForm::reset_impl a bit
Change-Id: I47ad680ef80ed5ed40b329ff83d2c38506a64d54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188085
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-07-20 19:50:57 +02:00
a37d19efa3 tdf#143148: Use pragma once instead of include guards
Change-Id: Iafb001d644fc7760e10a98edcd28351ee06dad66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188077
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2025-07-20 19:35:49 +02:00
a8f0e824c4 Skip the test when the dictionary is not available
See https://lists.freedesktop.org/archives/libreoffice/2025-July/093552.html

Change-Id: I449b2cd490ea7e5bf49893c4ebff98fa8886856d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188083
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-07-20 15:13:56 +02:00
63ae6be865 const up libwps
Change-Id: I1dd93930347732459ec95b8ab7408153a02a220a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188076
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-07-20 13:12:50 +02:00
1250533489 tdf#167599: check the result of UNO_QUERY
Not all objects implement XServiceInfo. Any query must either be
UNO_QUERY_THROW, or check its result after UNO_QUERY.

Change-Id: I8b1d7c719c4a43a4d658957ad5a91181dc265186
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188080
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-07-20 12:39:30 +02:00
32ba891829 Drop slashes after $(dir ...) in UITest.mk
GNU make's dir guarantees trailing slash. With these extra slashes,
I see this when running UITests on Windows:

C:/lo/build/workdir/UITest/calc_tests8//soffice.out.log: <<<
cat: 'C:/lo/build/workdir/UITest/calc_tests8//soffice.out.log': No such file or directory
 >>>

Change-Id: Iee51a8efe654c083da6361d5789774755be79641
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188081
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-07-20 12:39:20 +02:00
083d833b59 tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
Change-Id: I6cdcfbb0f314fa916e2bb6846409174eb8bad6e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188070
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-07-20 09:31:16 +02:00
3a2b9f384c const up clew
upstreaming attempt at:
https://github.com/OpenCLWrangler/clew/pull/6

Change-Id: I0dd3c8e7a309ad847220517daf18ae837152e3fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188078
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-20 00:54:51 +02:00
2c171226ee tdf#122336: handle OOXML files with invalid cell refs better
Change-Id: Ib1e95ea0254f04852eb4c1ac4f95a587a68a9b10
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188059
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2025-07-19 22:47:07 +02:00
d94d4efde4 const up coinmp
Change-Id: I4b7f1bbb408888c0c1f5ed8c34d8871b5fd2c90a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188063
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-07-19 21:35:24 +02:00
01541ca943 tdf#165233 replace std::bind with lambda in xmldataprovider.cxx
Also apply clang-format to changes, requested by git commit hook.

Change-Id: Id71d79b736b4dc2a5be5908d59d221ab7ffd54d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186433
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2025-07-19 20:37:12 +02:00
9b79ae1161 loplugin:blockblock
found with a modified copy of this plugin

Change-Id: Ib2ca97c7479abdf1a375e2700f9c947e1101f0e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188065
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-07-19 19:11:16 +02:00
92b7ef1baa extract inner loop of ScOutputData::LayoutStrings into another func
because it is getting rather hard to read

Change-Id: I29535acf66b0a540727a8215e3ea8f2929b1dfb4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188068
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-07-19 19:08:19 +02:00
48ece7e0c3 tdf#143148: Use pragma once instead of include guards
Change-Id: Ice4a6c35cd92a17fe1971c932e2ccaf36b4a189d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188066
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-07-19 16:30:30 +02:00
4f8b32e92c Drop separate EditTextObject itempool
and just have a single pool for the EditEngine machinery.

I cannot find a reason for a separat pool anymore, probably
it was a thing from the distant past.

This also shaves 5% off the load time of tdf#162126 because
we no longer have to spend losts of time re-creating SfxItemSets
because they belong to different pools.

Change-Id: I837045809dc292548b10e2cf5173d2a29b0879a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187969
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-07-19 14:23:31 +02:00
0243124607 tdf#164014: export value filters through the value property to ODS
Change-Id: Ia6f8a2d65d1f90488ae1c8d2ca5bb48fc772464d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188061
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2025-07-19 13:28:40 +02:00
098a900142 tdf#118668: handle wrong XLSX sheet visibility settings in line with Excel
Change-Id: I97b3b894a66c3108d67e0c8ef3b6b77aea11f365
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188060
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins
2025-07-19 12:18:59 +02:00
53bc460b9b const up libwpd
Change-Id: Icd8dd62f43fcd54a3eb485aac82375b15a1153c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188055
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-07-19 11:20:35 +02:00
c7ec83c9a8 tdf#130857 qt weld: Convert accelerators for frame/group box
Convert the accelerators between the Qt and VCL
version as needed.

Otherwise, the text for the first GtkFrame/QGroupBox
in the "Go to Sheet" dialog newly supported since

    Change-Id: I8fe3383f5857d25ee08db84be681ecb39dea4d3c
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Jul 18 18:20:33 2025 +0200

        tdf#130857 qt weld: Support Calc "Go to Sheet" dialog

is shown as literal "~Type a Sheet Name".

Change-Id: I8da60c15eb1ea1748c7a96a66b5b2cdfed3d3602
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188050
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-07-19 06:26:45 +02:00
dad98d3959 tdf#130857 qt weld: Support Calc "Go to Sheet" dialog
This means that native Qt widgets are used for that dialog
now when using the qt5 or qt6 VCL plugin and starting LO with
environment variable SAL_VCL_QT_USE_WELDED_WIDGETS=1 set.

To trigger the dialog:

* start Calc
* insert a few more sheets
* "Sheet" -> "Navigate" -> "Go to Sheet"

Change-Id: I8fe3383f5857d25ee08db84be681ecb39dea4d3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188049
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-07-19 06:26:40 +02:00
7754492f1a const up orcus
Change-Id: I3fc8dc76cdb609510deb4d35ca8a88fb6d3bb599
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188056
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-07-19 00:47:30 +02:00
56893d334a some misc const ups
Change-Id: Ie430070ddcd544747e9e224e1c9d4ac31415de89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188054
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-07-19 00:47:15 +02:00
ad644992c8 Return sal_Int32 from RtfExport::GetColor, for ease of use
sal_uInt16 requires explicit cast to convert / append to string.

Change-Id: Iaa900a570f2c5e096415b5c17357484fd5b8f754
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188052
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-07-18 22:11:50 +02:00
1719ee6ee7 Group writes a bit more logically
Grouping what logically was the end of a previous keyword, with
a start of the next keyword is silly.

Change-Id: Idd5a8fdb52fd394419b07167bdb608d65de844b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188051
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-07-18 20:29:30 +02:00
d6a3d30859 tdf#167511 correctly apply Color in HighContrast mode to text II
For more info please have a look at
https://bugs.documentfoundation.org/show_bug.cgi?id=167511

Change-Id: I2c829f7fb42853aa82cff073fa1432ac05d224a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188043
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2025-07-18 18:43:27 +02:00
b59d61f909 a11y: Set mnemonic widgets in print dialog
This ensures that the corresponding a11y relation
is set and e.g. the Orca screen reader announces
the associated label when the "Number of copies"
spin button or the "Include" combobox (for even/odd pages)
receive focus.

Change-Id: Id2399c87cf934d16addabd34ebf503baaf21121f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188039
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-07-18 18:13:31 +02:00
e702e7972d tdf#130857 qt weld: Convert accelerators for check/radio buttons
Convert the accelerators between the Qt and VCL
version as needed.

In a WIP branch declaring support for the print dialog,
this makes the correct text show up instead of a literal
"~All Pages" for a radio button and "Page ba~ckground"
for a checkbox.

Change-Id: Ic73af5e654b00b4e6dae1d561465604c8e9b46c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188038
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-07-18 18:13:18 +02:00
0b10ff07c1 Emscripten: Call initJsUnoScripting also from LOKit
...so that functionality is available there, too.  (And by breaking the code out
into its own file, give the function a more self-explanatory name than the
original "initUno".)

Change-Id: Ic65fbd98447574d881c4e7827a2cfeb67d3ff1fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188040
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins
2025-07-18 17:12:24 +02:00
ed7536ce1a Simplify lockdown logic for Collate box in Print dialog
Default logic was accidentally inverted in
commit 1988a527d4

correct that here too:
the old key was not set by default to "alwaysoff" value
so the correct default value to assume here is "false"

Change-Id: I6da52586be8ee3d2ba8e3132e4b9e50ae8d4ff83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188021
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2025-07-18 16:56:13 +02:00
46c2581503 calc: Make the GotoSheet dialog async
Also enable the JSDialog

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: Ibc6a54ad685052cf904032e6606f506332db6806
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188017
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 4ff3274972)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188037
Tested-by: Jenkins
2025-07-18 16:47:11 +02:00
adc6db8376 oox: fix crash in the SlideFragmentHandler dtor
Crashreport signature:

> terminate called after throwing an instance of 'com::sun::uno::RuntimeException'
> program/libmergedlo.so
>       oox::ppt::SlideFragmentHandler::~SlideFragmentHandler() [clone .cold]
>               oox/source/ppt/slidefragmenthandler.cxx:70
> program/libmergedlo.so
>       oox::ppt::SlideFragmentHandler::~SlideFragmentHandler()
>               include/cppuhelper/weak.hxx:91
> program/libmergedlo.so
>       oox::ppt::PresentationFragmentHandler::importSlide(unsigned int, bool, bool)
>               /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/shared_ptr_base.h:1070
> program/libmergedlo.so
>       oox::ppt::PresentationFragmentHandler::finalizeImport()
>               oox/source/ppt/presentationfragmenthandler.cxx:645

Aborting the entire PPTX import just because inserting some VML shapes
failed sounds like going too far.

Change-Id: Idfa1718185ac4716da5d5cbdb2bfe68f11badb9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188036
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2025-07-18 13:56:51 +02:00