1531 Commits
Author SHA1 Message Date
Jan Luethi a942eb4878 tdf#145614 Convert #define to constexpr
Change-Id: I156a1a231cab8277462eddbc044f4b3378f73448
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211386
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2026-09-24 21:59:48 +02:00
Andreas Heinisch 44eaeaf2cd tdf#173360 - On...GoSub must return to the line following
The GoSub flag (0x8000) was cleared before being tested, so PushGosub
never returned to the following line when returning using a Return
statement.

Change-Id: Ic1e6977d48a34c52ed9c24c5be0d9acfa3eb7552
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210395
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
2026-09-02 17:52:41 +02:00
Andrea Gelmini 5e260045bc Fix typos in code and comments
Change-Id: I47802ff4d8e27e738fde2b5ccb92a7765332eb51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210151
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-29 16:19:03 +02:00
Andrea Gelmini 7dcc068124 Fix typos
Change-Id: I170af8cd8bcbc969631ee603f20efcf40b68e517
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210038
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 15:00:22 +02:00
Andrea Gelmini 892dcd7597 Fix typos
Change-Id: I9351b0b67805f2e8b9994aa95f75b2aadba15aa2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209883
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 10:36:52 +02:00
DrRobotto 3f3b83a961 tdf#102381 - Add additional information about a missing parameter
Pass over an omitted argument as a missing parameter instead of a
numeric zero, so that optional parameters, their default values and the
basic function IsMissing() behave accordingly.

Change-Id: I7c4a65dfb1791f8aa900cc9eddd3007422dc41a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209457
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-08-23 11:29:28 +02:00
Niko Myllymäki 0709a6c543 tdf#147132 Flatten Basic function implementations in methods1.cxx
Change-Id: I21eea12876303ef132f4c1922e501db987f352c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209030
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Tested-by: Jenkins
2026-08-17 12:32:35 +02:00
Marios 92f880f952 tdf#147132 Flatten basic function SbRtl_CSng
Change-Id: I9f82d6d8f0e69193b036cdebd6b8099e7798959b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208834
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Tested-by: Jenkins
2026-08-17 10:21:04 +02:00
ApurvR20 097919db22 tdf#154285 Check argument count in SbRtl_Fix
Change-Id: I0b067eb0e90f3824cafc7df22eefd30ac6d0bef4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209005
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-08-11 08:39:53 +02:00
Marios d84a82ad7a tdf#147132 Flatten basic function SbRtl_CDbl
Change-Id: I875d48e4f55f1d70aaf279542efeeb5297c450f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208199
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Tested-by: Jenkins
2026-07-22 10:10:28 +02:00
ApurvR20 54b3494de7 tdf#147132 : Flatten Basic function implementations
Flatten implementation of SbRtl_Weekday in basic/source/runtime/methods1.cxx.

Change-Id: I17931cfecc24be9c114daa9c6c221e6c00a4e3aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208256
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-07-20 09:38:38 +02:00
Sapphire e08f567f1d tdf#147132 flatten basic function implementations
Change-Id: I66e82085eaa303eabaee268bd5b46a41d66a361a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204326
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-07-10 17:15:07 +02:00
Furkan Ahmet Kara 7f2472b873 tdf#154285 Check argument count in BASIC SGN function
Change-Id: Ic20ceed1d736ea2436bc4dd37cfd242efcec79b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206268
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-07-04 07:17:42 +02:00
Michael Weghorn f26084217a weld: Move weld::Button to own header/Rename weld.hxx
In the past, weld.hxx used to contain the class
definitions for weld::Widget and all subclasses.

By now, weld::Widget and almost all subclasses have
been moved to separate headers, to make it easier
to keep the overview and to avoid having to
recompile ~all UI code when one class changes.

By now, only weld::Button is left in weld.hxx.
Rename the header to Button.hxx.
Drop weld.hxx includes and instead add Button.hxx
includes (or weld::Button forward declarations) where
weld::Button is used.
(Don't simply replace all weld.hxx includes with
Button.hxx ones, since many of them were for the
use of other widgets that have since been moved
to their own headers.)

Add further includes where needed now that the
(direct or transitive) includes of weld.hxx were removed.

Change-Id: I8ea6201446a418d5e38b46337059dcd517ee29d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205937
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-06-05 07:58:07 +02:00
Xisco Fauli 8a91868e21 drop JSDialog machinery
It's no longer needed and not used internally

Change-Id: Iecb0d1055fd6c61d0c34ffb8afc670ab9d5fe899
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205908
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-02 20:15:18 +02:00
AsmatZahra-code d5e4e449d2 return early on invalid input to avoid calculating discarded value
Change-Id: I7391c4f24c39c9c8215225ba08054a33096801ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205585
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Tested-by: Jenkins
2026-05-28 10:45:28 +02:00
Furkan Ahmet Kara 49d827b374 tdf#147132: Flatten Basic function implementations in methods1.cxx
Change-Id: I1107266b6a7b33ee3a9a0d69d850bf5b4c203692
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204798
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-05-28 10:11:35 +02:00
Michael Weghorn 336f70f966 weld: Move weld::Label 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: Ide86f35543468a88288a068cc9f89eaf381ac52f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205763
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-27 22:24:37 +02:00
alohapeakina d21d64fc84 tdf#147132 Flatten basic function implementations
Change-Id: I517d188ec029b7ec6e6921f437a8915f8a6c9562
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205376
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-05-20 09:38:28 +02:00
Andreas Heinisch d6954bfec1 tdf#143706 - Mark skipped named optional parameters as missing/empty
When calling a Basic procedure using a named argument (for example,
foo(y:=10)), optional skipped parameters were not correctly marked as
missing, causing the function IsMissing() to return incorrect results.

Change-Id: I90a9910165ec00a24deba86f7b3397dbc0720c93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205034
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-05-12 22:40:13 +02:00
bl4ze4447 c15d89a0a6 tdf#166673 Fix Space(-1) behaviour
Change-Id: I3ea3a538dec449f752ca17122091b410221b7fe7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203225
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-04-22 17:46:30 +02:00
Noel Grandin e77b23fa1c Fraction->double in MapMode
Change-Id: I865fe1c2b0377eebda6f9f19e163928cbe7c9056
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202631
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-03-26 13:23:37 +01:00
Simon Chenery 356e1beec2 tdf#154285 Check too many arguments to BASIC FILELEN function
Change-Id: I21704e84bed54ad4295d52d82eb4a92ff70a3abc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201298
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-03-10 07:47:06 +01:00
Michael Weghorn fbcfd00fb7 weld: Move weld::Dialog to own header/source
Move the class out of weld.hxx into its own header and source
file, 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: Ic47dac553fc065c5c9cddbf31e33012314dbe43d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199073
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-11 07:32:57 +01:00
Michael Weghorn ab3635b2f3 weld: Move weld::MessageDialog 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: I5b23b02151c75bb49831a2bbf8d515eb0b54415e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199068
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-02-11 07:32:45 +01:00
shark eebf036039 tdf#147132 Flatten Basic function implementations
Change-Id: Iae6ec1b9cd524d666dd1076c61fe8d5af2a2189e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198249
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-02-07 12:33:45 +01:00
Gabor Kelemen 495fa42afa tdf#146619 Use more forward declarations in include/vcl/weld/
after recent split of these headers

This shaves off another 150M input

Change-Id: Ia4e42781cdc6fd6e795c9fb55c6c24dd641b8f0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197339
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-01-31 11:06:42 +01:00
Simon Chenery 58da9d878d tdf#154285 Check too many arguments to BASIC INT function
Change-Id: Ia0d71efc326fcfad13bc8edc9d15d5ef491db265
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197702
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-01-21 08:25:45 +01:00
Gabor Kelemen 47fe1cce1b tdf#146619 Use more forward declarations in include/vcl/[h-p]*
Found after running bin/find-unneeded-includes --headersfwd include/vcl/[n-p]*

Change-Id: If6436f3ef8300693c3869c2521e2fa2aa8a4edc8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196397
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-14 10:19:31 +01:00
Gabor Kelemen b63115f3fa tdf#146619 Use more forward declarations in include/vcl/[d-g]*
Found after running bin/find-unneeded-includes --headersfwd include/vcl/[d-g]*

This shaves off about 150M input

Change-Id: I2b15257451d4b392dca3e5d07f4a443ee653b04c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196395
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-11 21:38:37 +01:00
Michael Weghorn ffc8326e99 weld: Move weld::Entry to own header/source
Move the class out of weld.hxx into its own header and source
file, 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: I27033905fe8be1c3646c8cf08799c9bf53eeb471
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196448
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-01-04 15:03:39 +01:00
Tejas Shukla 0ba7e16543 tdf#147132 Flatten Basic function implementations
Change-Id: I076e21eb71a636093b51280356d5fc2e58d327ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196245
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-28 11:42:04 +01:00
Mike Kaganski 8e23c94043 Drop a convenience function used only once
Change-Id: If49b4dc658e953e86d87a76300a9517d6bb896b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196042
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-21 14:44:22 +01:00
Simon Chenery 74d678191a tdf#168771 Convert enum to enum class in methods1.cxx
Change-Id: I7f9894db5ce74ca507ad05967a08dd7fab6ad33d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195608
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2025-12-20 17:30:10 +01:00
Michael Weghorn 5454b7ed94 weld: Move weld::DialogController and subclasses to own header/source
This is also in preparation of moving weld::Builder to
its own header.

Change-Id: Icb65ee85376d17e1abead2c6339f78b129112d0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195841
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2025-12-18 19:44:41 +01:00
Michael Weghorn 5b16b3acc6 weld: Move weld.hxx and weldutils.hxx to new include/vcl/weld subdir
This is in preparation of moving code out of weld.hxx
to separate headers/source files, in order to make it
easier to keep an overview and to avoid having to
recompile ~all UI code when anything changes.

Also move weldutils.cxx to a new vcl/source/weld
directory.

Change-Id: Ia75b42f21e560dd248307282a522f186a64cd742
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195777
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-12-17 18:20:13 +01:00
Vaibhav Singh a47949fece tdf#154285 Check upper bound of arguments in implChr function
Change-Id: I081ff9874b4fc00ff791cb5ae9ce5a27a6d6778c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195731
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2025-12-17 11:50:04 +01:00
Vaibhav Singh 0e6c78dcd6 tdf#154285 Check upper bound of arguments in SbRtl_CreateObject
function

Change-Id: I64ada278c0ba8d178f62f28c4e4e9911ce3f5d1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195732
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2025-12-17 09:27:11 +01:00
Mike Kaganski 7b04ef05cd Drop some uses Sequence::getConstArray
Similar to commit b280efcb9b
(Drop some uses Sequence::getConstArray, 2025-12-07).

Change-Id: Ieac325a660fe64e8172c5ed139380caa3d26a73c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195200
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-12-08 10:00:21 +01:00
Simon Chenery 01d31536b5 tdf#154285 Check too many arguments to BASIC EXP function
Change-Id: I9963267c9b910a2a2346e27e7c8cb4220c0ab964
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195205
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-12-08 05:16:29 +01:00
Stephan Bergmann 1fc95f3bfa !HAVE_FEATURE_SCRIPTING apparently needs SbiRuntime::isVBAEnabled now
...after 76aafa18b7 "tdf#162711 - VBASupport
requires banker’s rounding for integer conversions", as linking started to fail
with

> wasm-ld: error: /home/sberg/lo-wasm-upstream/core/instdir/program/libsblo.a(sbxint.o): undefined symbol: SbiRuntime::isVBAEnabled()

Change-Id: I579f300390eabfefd5f02c277771d5f8c937105c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194734
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2025-11-28 00:12:07 +01:00
Daniel Lee 96ad8c680c tdf#82580 Remove prewin.h/postwin.h headers
Change-Id: Ic15376d38ad8dc5ede3bbb90c9021c5d4496b5d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194297
Tested-by: Jenkins
Reviewed-by: Devansh Varshney <varshney.devansh614@gmail.com>
Reviewed-by: Hossein <hossein@libreoffice.org>
2025-11-24 00:23:03 +01:00
Simon Chenery aa886d1e3e tdf#154285 Check too many arguments to BASIC ATN function
Change-Id: I521b62358ad810f778c96c90c48ff8a9fe2a3ae6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194224
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-11-20 06:12:31 +01:00
Ludwig Temmel 5d8fe7fbc7 tdf#147132 Flatten Basic function implementations
Flattened SbRtl_FileExists()

Change-Id: I5e635d5c05ad7b4f1497530f075e580935870608
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194081
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-11-17 05:21:28 +01:00
Gabor Kelemen fd2e467ba3 tdf#146619 Run IWYU in fw decl mode on include/[a-c]*
After recent commit 851fb75779
recheck these directories in include/ again
to test drive the new --headersfwd mode of bin/find-unneeded-includes

Change-Id: I0ede437c4f9958cd98210ed1760a5b98ea8bd1ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192377
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2025-11-08 09:37:19 +01:00
Mike Kaganski 3ab2560526 tdf#169147: handle errors creating icu::RegexMatcher
Regression after commit 38f731ff67
(tdf#160478: fix Basic LIKE operator, 2024-04-02).

Change-Id: I4fae01e56cb91d54adba54c3787f576f60f8b1f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193202
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-10-30 18:18:57 +01:00
Sergey Anisimov e789e9135d tdf#145614 - Convert #define to enum or constexpr
Change-Id: I8b08c068b096a19febf88d70a23959e572b96640
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191982
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2025-10-30 14:16:40 +01:00
Jesus Solis 21ffeffaf6 tdf#154285 check for too many arguments in BASIC cos function
Change-Id: I3d4e1b059e5a8d4223b476df1805ed38d2e653be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192420
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-10-15 08:18:28 +02:00
Caolán McNamara 41a20e67c8 cid#1421169 Uncaught exception
and

cid#1421161 Uncaught exception
cid#1421146 Uncaught exception
cid#1421145 Uncaught exception
cid#1421100 Uncaught exception
cid#1659879 Uncaught exception

Change-Id: Ib117e8f2de0d51189d7277d3eec8a1ed685f0724
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191947
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-10-06 11:22:08 +02:00
Caolán McNamara 153b4dc2e0 drop some more COVERITY stuff
Change-Id: I5964880c3eb62875c45e3262a9c657f7bade236d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191946
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-10-06 11:22:01 +02:00