Commit Graph
517120 Commits
Author SHA1 Message Date
Noel Grandin 3a57fe4450 prefix fields in FormulaCompiler
Change-Id: Ib03b15f069d21dccaa585e0577c43c91fabb046c
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1391
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit c1020ea6fe5e8eb85b756857b0e80bbe1d560c4d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205598
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-05-24 09:03:58 +02:00
Kurt Nordback 0fcb8f99b7 tdf#165742 Step 5.9f: Improve <cx:chartData> handling
Replace some temporary chartex parse and export code to handle chartData more
properly. This now round-trips at least some <cx:f> and <cx:nf> content,
and handles the various *DimensionType values.

Change-Id: Ie91ac845a911c5be1f7ad5d8ed872d091bd6a623
Signed-off-by: Kurt Nordback <kurt.nordback@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2644
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
(cherry picked from commit 1d58d04fb96b9bd73affeaecf9d6dee35d6357b5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205578
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-24 01:00:06 +02:00
Noel Grandin 1d8cf993df reduce Sc*Ref*Token virtual calls
similar to
  commit f47fc9a67f16a3da1e5cbcc8b821682298ec90b3
  reduce ScRefListToken virtual calls

Push the Get/Set-Ref*() methods down to the only subclasses
that actually use it.

Change-Id: Idf56c7c1fc2340438add93e11a549824461b80a8
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/1243
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 003c0007c13e443fe4e520d1b70586266abf7811)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205579
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-05-23 21:47:06 +02:00
Caolán McNamara e494181c41 fix oss-fuzz ParseDictionaryFile startup errors
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I86602ef5cdd86a9c98829e172cdc04f7c3db018c
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3086
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 524d79c8f1f314f6df921da7e0093cd4a9a7c91e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205572
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-23 13:52:52 +02:00
Noel Grandin af6e41b327 reduce virtual calling in Sc*Ref*Token
similar to
  commit f47fc9a67f16a3da1e5cbcc8b821682298ec90b3
  reduce ScRefListToken virtual calls

Push the GetIndex() method down to the only subclasses
that actually use it.
And take the chance to rename them to something more meaningful.

Introduce an inbetween ScExternalToken class to represent
tokens that have an external file id.

Change-Id: If45e87a5bb66aeb1c65d82121b430b886b53f20b
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/955
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit 7705899fa7bca501f331070f7969374fcf5f52e9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205576
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-05-23 13:14:34 +02:00
Noel Grandin 0bad6cbf40 reduce virtual calling in String*Token
similar to
  commit f47fc9a67f16a3da1e5cbcc8b821682298ec90b3
  reduce ScRefListToken virtual calls

Push the GetString() methods down to the only subclasses
that actually use it.

We change the inheritance hierarchy a little here
-class FORMULA_DLLPUBLIC FormulaStringOpToken final : public FormulaByteToken
+class FORMULA_DLLPUBLIC FormulaStringOpToken final : public FormulaStringToken
because FormulaStringOpToken and FormulaStringToken share
a type svString which makes it hard to decide which subclass we
are handling.
So now we can check for GetType() == svString and then
cast to FormulaStringToken safely.

Change-Id: I3f087d65a2297b2d8fb5213e81987e0001bc1c62
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/1152
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit 8710f98c1565b1d8ecbbbec743b29bcbb38c5ce2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205569
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-05-23 09:01:44 +02:00
Devansh Varshney 5e836dfec5 oox: support histogram OOXML import and export
Preserve histogram charts when importng and exporting XLSX file.
Import histogram charts from XLSX, keep their source data and
settings, and export them back that keeps them working as
histogram charts.

Change-Id: I9c3e39fd3b429b9f61c249dd952bf70d9113ed7f
(cherry picked from commit 330fa62f1ef7b7c848c2da98d18a8bb453e82201)
Signed-off-by: Devansh Varshney <varshney.devansh614@gmail.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1882
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
(cherry picked from commit 2ed0256704eb3ca34ff0a217b330849a3f7952da)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203895
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-23 00:10:01 +02:00
Devansh Varshney 0a99dee0ba chart2 qa: add ODF histogram roundtrip test
Add an ODS roundtrip test for histogram chart ODF import/export.

Change-Id: I37e6da4fc55dbff1fa0d310b3f74ee7e63a8012d
(cherry picked from commit 8a04469f2577c8a817dd4c9a9ee5c2d971157e4f)
Signed-off-by: Devansh Varshney <varshney.devansh614@gmail.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1881
Reviewed-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 74bb1558fdf2e418d1c4a556e5a69819e3696cdd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203893
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-23 00:09:54 +02:00
Devansh Varshney a83694c6ca xmloff: support histogram ODF import and export
Export histogram charts as chart:bar with coext:class="histogram"
and write histogram properties.

Import the histogram class and configuration again recreate the
HistogramChartType, and trigger the histogram template once chart
import is complete so calculated bins, categories, and frequencies
are rebuilt from the preserved raw values-y data.

Change-Id: I202d5666315d4f26da2bf4b3650b4388a9e4fb50
(cherry picked from commit 5fb2f5f2c2676743b823640dbaa02762308d6a54)
Signed-off-by: Devansh Varshney <varshney.devansh614@gmail.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1880
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
(cherry picked from commit a54fc185d3d73f765bd37cc98df92cac81e01572)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203814
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-23 00:09:47 +02:00
Devansh Varshney 6829e82577 chart2: Implement Scott's Rule and Histogram Data Interpreter
This commit introduces the mathematical backend and data interpreter for
the Histogram chart, replacing the temporary raw value rendering.

- Adds HistogramCalculator, utilizing Scott's Rule to calculate optimal
bin widths and frequencies from raw data.
- Introduces HistogramDataSequence that listens to spreadsheet data
changes and automatically regenerates bin categories and frequencies
- Implements HistogramDataInterpreter to intercept raw values-y input,
and output the results into the calculated-y data sequence.

Change-Id: Iaf29ddd0b0824bd3f0808ffc91321cad9d5b877e
(cherry picked from commit 1ef619a998aba626d0ea7a9541109a7c9e145518)
Signed-off-by: Devansh Varshney <varshney.devansh614@gmail.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1879
Reviewed-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit df68284255ccac4bd86583555986d9f7cbdddf9a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203747
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-23 00:09:41 +02:00
Devansh Varshney 048b35b49d chart2: Add UI and basic rendering for Histogram chart
This commit introduces the structural foundation and user interface for
the new Histogram chart type. The rendering engine gracefully falls
back to plotting the raw values-y input data directly. As a result, the
chart currently renders identically to a standard bar/column chart.

- Adds UI entries in the Chart Type dialog.
- Adds HistogramChart to the view layer, inheriting from BarChart and
forcing a 0-gap width.

Change-Id: Ica5b15e9b7428d6c908e1b978259367fe8ff7aab
(cherry picked from commit 14a4a09b62fc283f9b629a2a317156efa6509054)
Signed-off-by: Devansh Varshney <varshney.devansh614@gmail.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1878
Reviewed-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 508c3456e85a88771ac5e264cee9460274685a22)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203741
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-23 00:09:33 +02:00
Devansh Varshney 2049356d4f chart2: avoid overwriting values-y
Implements a new calculated-y data structure which will be
useful in new chart types like histogram charts where the
axes are modified and hence have to preserve original raw
input values.

Change-Id: I339211d700501f263201a977741206cdb73e1cea
(cherry picked from commit 7bcf35bc40a3d0bb7452cff56c88d8b86c4b2d79)
Signed-off-by: Devansh Varshney <varshney.devansh614@gmail.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1877
Reviewed-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 48a8b3165c543d1b46b92c1cf4941adc40fc11cd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203687
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-23 00:09:26 +02:00
Tomaž Vajngerl 8cb752768a sc: Move pivot table methods to Operation framework
Extract RemovePivotTable, CreatePivotTable, UpdatePivotTable
and DataPilotUpdate from ScDBDocFunc and create Operation
subclasses. The common functions are put into header file
PivotTableOperationCommon.hxx, so we avoid duplication.

Pure refactoring, no behavior change.

Change-Id: I94b50ef0698ceb809607d16265a6f3cbf03913d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201472
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202096
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit c1966c49f77ab4cba053dcbe35b424a983b16ef6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205532
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-23 00:08:26 +02:00
Tomaž Vajngerl 69a243ee03 sc: Move all sparkline methods to Operation framework
Extract the 7 sparkline ScDocFunc methods into Operation
subclasses.

Pure refactoring, no behavior change.

Change-Id: Id714721d0d852889b135c700da3327cf75ad641f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201457
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202095
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 28efca2b83b88983ccce02e81f442bbf3fa834d7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205531
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-23 00:08:16 +02:00
Tomaž Vajngerl c449c59e11 sc: Remove sheet view unsync tracking
The unsync tracking was introduced to mark a sheet view as unsynced
when we didn't properly support syncing, so the user could recreate
the sheet view themselves. Now we have converted the most basic
functions to properly sync, and if there is a case when something
doesn't sync we should consider it a bug. This makes the unsync
tracking unneeded so it was removed.

Change-Id: Ic3391620bddcbdc2608623c0d23db0c8abab8fd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201456
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202094
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit c92d5a32da6a850059531f650f12ef9c701d9b2b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205530
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-23 00:08:07 +02:00
Tomaž Vajngerl 6dad489e20 sc: Add sheet view undo sync test cases
Test that after an operation is undone from the default view or the
sheet view, the default view tab and the sheet view tab are correctly
restored and synchronized. Tests cover DeleteContent, ClearItems,
FillSeries, and ChangeIndent operations.

Change-Id: I6aec2e234de0c6a42b2d3338cd60f87b81a16699
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201455
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202093
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 215ad9b721ebc008ff4de01ac81fe55cd548cd67)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205529
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-23 00:07:57 +02:00
Tomaž Vajngerl 40cd823766 sc: Sync sheet views after undo and redo
After undo or redo, we restore the default view table to a previous (or
future) state, which means we need to synchronize that change to the
sheet views. For that, calling the functionality of SyncSheetViews
should be enough to get them synchronized again. Sync is performed
in EndUndo and EndRedo.

Extracted the sheet view synchronization logic from Operation into
ScDocument::SyncSheetViews method. This allows the same sync logic
to be called from both Operations and undo/redo (ScSimpleUndo).

Change-Id: I67a2580631e547ece67e945883f038b1f9968689
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201454
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202092
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit f6c8731a6ef27989ce5fc643d3def7f2947c510c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205528
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-23 00:07:49 +02:00
Noel Grandin 780e274c16 asan: fix some issues in ScFormulaDoubleRefToken
after
  commit 9aab43b4e3a68cd833eddfdd11086f03e55f2c1a
  Author: Noel Grandin <noel.grandin@collabora.co.uk>
  Date:   Wed Apr 15 19:57:41 2026 +0200
  reduce virtual calling in ScFormulaDoubleRefToken

Change-Id: I0cb8c1a628a9049ad7a770529094075ba6027b73
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/1110
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit fedbb94b891d876a39711ae1178a82fc2ac1238a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205563
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-05-22 22:01:16 +02:00
Michael Weghorn 9752a52fd3 weld: Move weld::Box to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: I0cc1e0f3aa60d3457af0f0f30ec8fe74cb5ce6a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205489
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-22 21:56:54 +02:00
Michael Weghorn 1a3d6d5cdf weld: Move weld::Frame to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: Ia7bc570fcd463d9adcbcdad070250cec5bc3b949
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205488
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-22 21:56:45 +02:00
Michael Weghorn 632c40c9aa weld: Move weld::Grid to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: Ibe76e4c871f364904a2ad65921d37ec0380094ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205487
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-05-22 21:56:35 +02:00
Michael Weghorn ee7e1d968b weld: Move weld::Scale to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: I2e42a2992c08311922451bb01062683bd81954fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205486
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-22 21:56:27 +02:00
Michael Weghorn 68ce3cfcb1 weld: Move weld::LinkButton to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: I6d9323c56bca95734a1b60daa60085547f212a66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205485
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-22 21:56:19 +02:00
Michael Weghorn fa9fc166ea weld: Move weld::Spinner to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: I98a090f31fc8b4111b7e13dfcdf843af8c3113c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205474
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-22 21:56:11 +02:00
Michael Weghorn ecab2e0226 weld: Move weld::ProgressBar to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: I8861b5494c22b666ed80ead82ec3a8293dbeee81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205473
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-05-22 21:56:02 +02:00
Michael Weghorn b2ce99c623 weld: Move weld::Image to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: I2eb564b2483b052f01d4af55fd4feb00b5ed6031
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205472
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-05-22 21:55:53 +02:00
Michael Weghorn e528f1de16 weld: Drop includes/fwd-decls not used in weld.hxx itself
Move these to those files actually needing them instead
of relying on transitive includes after multiple weld::Widget
subclasses were moved to their own headers.

Change-Id: If431078dffb85a2788170d4a753978d1983decb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205471
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-22 21:55:45 +02:00
Michael Weghorn 3315556e6a weld: Move weld::LevelBar to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: Ie5bd9f20c6802301614a9ccbe327797a59e3932b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205465
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-05-22 21:55:31 +02:00
Michael Weghorn 8db0a537e4 weld: Move weld::Calendar to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: Ic0ca052460c3c84ca00bc392c81c1c9fa7bde6b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205464
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-22 21:55:23 +02:00
Michael Weghorn 377891d2a2 weld: Move weld::Expander to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: Ib944fa421b9d3bcd82ac6c7ab3faf5f0b8b30b6d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205463
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-22 21:55:15 +02:00
Noel Grandin 9cfdd6b430 reduce virtual calling in ScFormulaDoubleRefToken
similar to
  commit f47fc9a67f16a3da1e5cbcc8b821682298ec90b3
  reduce ScRefListToken virtual calls

Push the GetDoubleRef() methods down to the only subclasses
that actually use it.
Which means we can return a ref instead of a pointer,
since we now never return nullptr.

Change-Id: I4dfce551e985fe20db00d3a0694ed99f20f87731
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/1050
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 9aab43b4e3a68cd833eddfdd11086f03e55f2c1a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205508
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-05-22 20:28:02 +02:00
JanayeJackson ca26d67c9f tdf#147021 Update SAL_N_ELEMENTS to std::size() in hbox.cxx
Change-Id: I1b7f888ae98fde05706c64e692def8b18af07a79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205466
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2026-05-22 18:35:27 +02:00
Jaume Pujantell dcf71925c2 sw: don't skip word autocorrect on insert redlines
ChgAutoCorrWord checked for any redline crossing the word boundary,
which silently skipped the replacement whenever just-typed text (a
tracked insertion under change tracking) extended past the word
being autocorrected. Narrow the check to tracked deletions, matching
what ReplaceRange already does for the single-character path. The
tdf#130546 guard this is derived from was specifically about text inside
a deletion.

Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I7ad7f0319ea74bccf2d7e5acc5d7a991029f632e
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3039
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 729809a69558a567afb3333db458220cf5d44814)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205515
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 16:13:27 +02:00
Karthik 7398fc4a0d sw: Fix positioning of inline text-boxes
This is a regression from 0d29394598
(https://gerrit.libreoffice.org/c/core/+/129627).

Word text-boxes are imported as dual-frame (SwFlyFrame inside a
SdrObject), for inline text-boxes the text (SwFlyFrame) is positioned
incorrectly.

While addressing a different problem the commit
0d29394598 changed how inline text-boxes
are positioned. Because of this there is a mismatch b/w the position of
shape (SdrObject) and text (SwFlyFrame) inside the shape.

SwFlyFrame should be positioned based on the SdrObject's position in
the document.

Change-Id: Ia902468f2a17a32aba928af022a1199345f21bcb
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2494
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit 3d53aa0e171e72274831278234648f11641b55fe)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205510
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 16:13:03 +02:00
Ujjawal Kumar 0c361202d0 tdf#171121 Lower the priority of markdown on the clipboard even further
Lower markdown preference below plain text because it is natively not
supported in almost all known clipboard services and offering it via
paste special seems to be a better choice.

Signed-off-by: Ujjawal Kumar <ujjawal.kumarchouhan@collabora.com>
Change-Id: I6bbba63ab56aca4a68ea2838a0036c9bc37b2238
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2955
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 149ecd37eee98f6b52161733ce64a883ed603000)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205526
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 16:12:28 +02:00
Xisco Fauli b96ce8d100 sc: fix warning C6011: Dereferencing NULL pointer 'pBase'
E: /jenkins/workspace/lo_tb_master_win_analyze/sc/source/ui/docshell/documentlinkmgr.cxx(159): error C2220: the following warning is treated as an error
E: \jenkins\workspace\lo_tb_master_win_analyze\sc\source\ui\docshell\documentlinkmgr.cxx(154) : warning C6011: Dereferencing NULL pointer 'pBase'. : Lines: 140, 141, 144, 145, 147, 148, 150, 152, 154
Change-Id: I962cc713700d186ee6e5f81b0d455aaead4dc6c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205555
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 16:03:47 +02:00
Olivier Hallot 2f3e6ebda9 tdf#171455 Page text grid > CJK manuscript grid
Change-Id: I6a25ebabcb84510dcb5a24c595ad4726b4473ab0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205481
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
2026-05-22 15:27:42 +02:00
Christian Lohmaier 4863d6b259 workaround for wslpath from wsl < 2.4.5 not preserving trailing slash
since b8e6595d47 the UCRTSDKDIR was
converted to the native (windows-style) path in the test block already
while previously it was converted as part of the post-AC_CONFIG_FILES
script that mass-converts paths when creating config_host.mk
With the conversion to unix path in wsl < 2.4.5 dropping the trailing
slash from the path, configure then fails with "Could not figure out
what C++ library this is" since it just appends the include path
assuming the trailing slash to be present, resulting in
-IC:/PROGRA~2/WI3CF2~1/10Include/10.0.26100.0/ucrt
                         ^ missing path delimiter here
ultimately failing to include necessary headers and thus failing the
check.

So explicitly check whether the unix-path (that preserves the slash) has
a trailing slash and if so make sure it is also added to the native path
if necessary.

Change-Id: I0ff4e2007af48fc09db4b8a80413dc87f849537a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205440
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2026-05-22 14:51:19 +02:00
Xisco Fauli 523e6ac418 sw: fix wasm build
/home/tdf/jenkins/workspace/lo_gerrit/tb/src_wasm/sw/source/uibase/shells/textsh1.cxx:2301:95: error: cannot initialize a parameter of type 'weld::Widget *' with an rvalue of type 'weld::Window *'
 2301 |             VclPtr<AbstractDropDownFormFieldDialog> pDlg(pFact->CreateDropDownFormFieldDialog(rWrtSh.GetView().GetFrameWeld(), pFieldBM));
      |                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tdf/jenkins/workspace/lo_gerrit/tb/src_wasm/include/sfx2/objsh.hxx:154:24: note: 'weld::Window' is not defined, but forward declared here; conversion would be valid if it was derived from 'weld::Widget'
  154 | namespace weld { class Window; }
      |                        ^
/home/tdf/jenkins/workspace/lo_gerrit/tb/src_wasm/sw/inc/swabstdlg.hxx:512:97: note: passing argument to parameter 'pParent' here
  512 |     virtual VclPtr<AbstractDropDownFormFieldDialog> CreateDropDownFormFieldDialog(weld::Widget* pParent, sw::mark::Fieldmark* pDropDownField) = 0;
      |                                                                                                 ^
/home/tdf/jenkins/workspace/lo_gerrit/tb/src_wasm/sw/source/uibase/shells/textsh1.cxx:2324:87: error: cannot initialize a parameter of type 'weld::Widget *' with an rvalue of type 'weld::Window *'
 2324 |             VclPtr<AbstractDateFormFieldDialog> pDlg(pFact->CreateDateFormFieldDialog(rWrtSh.GetView().GetFrameWeld(), pDateField, *GetView().GetDocShell()->GetDoc()));
      |                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tdf/jenkins/workspace/lo_gerrit/tb/src_wasm/include/sfx2/objsh.hxx:154:24: note: 'weld::Window' is not defined, but forward declared here; conversion would be valid if it was derived from 'weld::Widget'
  154 | namespace weld { class Window; }
      |                        ^
/home/tdf/jenkins/workspace/lo_gerrit/tb/src_wasm/sw/inc/swabstdlg.hxx:514:89: note: passing argument to parameter 'pParent' here
  514 |     virtual VclPtr<AbstractDateFormFieldDialog> CreateDateFormFieldDialog(weld::Widget* pParent, sw::mark::DateFieldmark* pDateField, SwDoc& rDoc) = 0;
      |                                                                                         ^
2 errors generated.

Change-Id: I602138a9435498393b079072269eeca177e8a557
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205527
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 14:46:25 +02:00
Caolán McNamara e75f613109 call RemoveGrfLinks on num rule teardown
add some explanatory comment to the new class, and remove
some unnecessary scope guarding.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I98868920d78759e7a55a3f41b2d35ae9d0a627de
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2843
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 5ae5ec664c0f6b578c4006adc09ad7951760b644)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205495
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 14:05:13 +02:00
Gabor Kelemen 555e00bc55 [API CHANGE] Remove unused ooO::Inet::Settings::ooInetFTPProxyName/Port keys
Deprecated since 2023 commit d343a2b639

Change-Id: I39359e4abfff7e39f191fad70527d7093541ee82
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1976
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 15bfca0f935599c16d75f2a84cd6aa90cff108bf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205525
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-22 14:02:28 +02:00
Gabor Kelemen 60a1d21386 [API CHANGE] Drop unused ooO::Calc::Filter::Import::MS_Excel group
as noted in commit 95b4adadad87f721e9de1b1d57ad42d1a7826370
these are long dead:

    related code was removed in 2017:
            commit 98c4cd372b
            loplugin:unusedfields improve write-only analysis
    and 2015:
            commit 96d44c9b07
            loplugin:unusedmethods sc

Change-Id: Ia083bbe32fd9a789ebf27972fc580c4e6def48e1
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1973
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 0f5a0e3d53c743220fe422147b83bfb4eb4aff90)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205524
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 14:02:20 +02:00
Gabor Kelemen 13fc3ffbbd Drop unused Font group from Common config options
Looks like it was not used since 2004:
commit a99f806c14

Change-Id: If948eb7a8d2ce6f7972e5eda175e00789f8cd1cf
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1975
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit a2f861afbcf543a40bd003f09dae71e3233f6e7c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167646
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 14:02:08 +02:00
Gabor Kelemen ce60bdcdae Drop unused Impress/Draw::Snap::Object::Grid key
Seems to have been already unused in 2002
commit abbee0cf48

Change-Id: I6a69839f38a0bc0b66ad79866c2f1bd1f9d355a3
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1974
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit f0e0009f5ab3729e1253bb72507e8c88c066a988)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167808
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 14:01:59 +02:00
Xisco Fauli b5b56a0641 sfx2: fix warning C6011: Dereferencing NULL pointer 'pFamilyItem'
E: /jenkins/workspace/lo_tb_master_win_analyze/sfx2/source/dialog/StyleList.cxx(539): error C2220: the following warning is treated as an error
E: \jenkins\workspace\lo_tb_master_win_analyze\sfx2\source\dialog\StyleList.cxx(527) : warning C6011: Dereferencing NULL pointer 'pFamilyItem'. : Lines: 516, 519, 521, 522, 523, 527
Change-Id: I998218e1b8ae8e69b4e5f7a7f86fea3edd863923
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205512
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 12:56:58 +02:00
Caolán McNamara 0bda4b8824 ofz: initialCffRead fails during smoketest
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I9f8d71788cfd9e42a668670d08efd3c774b8455a
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3085
Tested-by: Noel Grandin <noel.grandin@collabora.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit 15d96dba8b96f1248840da1bafa3b564b2ad2a95)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205514
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 12:51:35 +02:00
Xisco Fauli 04129b50a1 fix ubsan RTTI
warn: sal.osl:2144438:2144438:sal/osl/unx/module.cxx:103: dlopen(/home/tdf/lode/jenkins/workspace/lo_ubsan/instdir/program/libscfiltlo.so, 1): /home/tdf/lode/jenkins/workspace/lo_ubsan/instdir/program/libscfiltlo.so: undefined symbol: _ZTI13ScMatrixToken
warn: sal.osl:2144438:2144438:sal/osl/unx/module.cxx:103: dlopen(libscfiltlo.so, 1): /home/tdf/lode/jenkins/workspace/lo_ubsan/instdir/program/libscfiltlo.so: undefined symbol: _ZTI13ScMatrixToken
cppunittester: /home/tdf/lode/jenkins/workspace/lo_ubsan/sc/source/ui/docshell/impex.cxx:2693: auto ScFormatFilter::Get()::(anonymous class)::operator()() const: Assertion `false' failed.
Change-Id: I5dff736ab55b352083c17519f63a08a4ee01a8ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205518
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-22 12:35:37 +02:00
Tomaž Vajngerl 52d51655e3 sc: Add sheet view sync support and test for ConvertFormulaToValueOperation
Added sync support to ConvertFormulaToValueOperation and written a
test case for this.

Change-Id: I45b42a76ff15a1b2c3d4e5f6a7b8c9d0e1f2a3b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201335
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202091
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 0dce5fa8aa566801057b442b35e7d3b195dcd370)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205438
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 11:50:47 +02:00
Tomaž Vajngerl b0273b521e sc: Add sheet view sync support and test for SetNoteTextOperation
Added sync support to SetNoteTextOperation and written a
test case for this.

Change-Id: Iad97d05a1957f7b0468d535d32513bdf4aaac40e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201334
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202090
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 4acc310f083705a0bf8c95d97f6d9b1079f8e0c9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205437
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 11:50:40 +02:00
Tomaž Vajngerl a6b40ff552 sc: Add sheet view sync support and test for TransliterateTextOperation
Added sync support to TransliterateTextOperation and written a
test case for this.

Change-Id: I5b82e48662d800fdb2e76b3491d3d791fe45c496
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201333
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202088
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit 488df7a7a326c52c936f2dcb6d1787f8d1efa532)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205436
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 11:50:34 +02:00