Commit Graph
8518 Commits
Author SHA1 Message Date
Andrea Gelmini be7ff6a857 Fix typos in code and comments + some reformatting
Change-Id: Ic6fe197734655a2591a6730d07f23d4222a278f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210564
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-09-10 22:06:44 +02:00
Xisco Fauli eb0c65a1a1 UnoApiTest: pass PDFium to parsePDFExport as parameter
so we can check if it's not a nullptr at test level

Change-Id: Icfe580b27f3ad4a28b328f0fac8cf93e05c50b54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210484
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-09-04 15:32:19 +02:00
Andrea Gelmini bd55cbdc24 Fix typos
Change-Id: Ic4b3e8618b2f9fb2497246aa8826c3afe4a51aff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210154
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-29 16:10:20 +02:00
Neil Roberts 7fe6fc9210 tdf#173271 Make the --language option override the config
Previously if the user has configured a language preference in the
config then that choice took precedence over the --language option. It
seems like the --language option is intended for temporary testing of a
language so it would be more useful if it overrode the language choice
in the config.

Change-Id: I30d027b685b9fabda42f40c12599310dfbfc7cfa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209982
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-08-28 13:46:13 +02:00
Andrea Gelmini d5cfb2e0ac Fix typos
Change-Id: I9aaf267d867367d9888141130357667292114554
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210045
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 20:35:32 +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 79439434b7 Fix typos
Change-Id: Icbeb9db4fa6d3c66e7ecbaf01ff8b66b72e0dfe0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210067
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 14:21:05 +02:00
Andrea Gelmini d94230cfa8 Fix typos
Change-Id: I61ade6d3666563bae20b837f27868bffb75a08eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210066
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 14:10:01 +02:00
ApurvR20 79d1e583fb tdf#173254 Removed 'using namespace' in lokclipboard
Change-Id: I490f84aa8a4e33600ff3c03e213c5ed5321fedd2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210117
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2026-08-27 13:33:57 +02:00
Andrea Gelmini 53af41cbad Fix typos
Change-Id: I9fa39c093f2b784db72592014e6a4ccce1f45e5e

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209815
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 15:45:23 +02:00
Andrea Gelmini 235e88c285 Fix typos
Change-Id: Id51b021ac5501a23b4dcb3e9c061993958e9ce7c

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209813
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 15:25:01 +02:00
Andrea Gelmini d3c5f8323e Fix typos
Change-Id: I7e55a26f1bc242e2cf458b92db5ee8645c370581

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209814
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 15:13:12 +02:00
Andrea Gelmini 4b2224e810 Fix typos
Change-Id: Ib8ad2c65f6200dbcbf16ba0e3aff167d54240dd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209933
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 14:35:12 +02:00
Andrea Gelmini 38dee081a7 Fix typos
Change-Id: Ie48eb85c6460bdbeda180cf12e27576bd1935b7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209934
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 11:14:41 +02:00
Michael Weghorn 2826c3087f tdf#172885 qt: Support '-style=...' and '-stylesheet=...' command line args
Quoting from the QApplication ctor doc [1]:

> All Qt programs automatically support the following command line options:
>
> * -style= style, sets the application GUI style. Possible values depend on
    your system configuration. If you compiled Qt with additional styles or
    have additional styles as plugins these will be available to the
    -style command line option. You can also set the style for all Qt
    applications by setting the QT_STYLE_OVERRIDE environment variable.
> * -style style, is the same as listed above.
> * -stylesheet= stylesheet, sets the application styleSheet. The value must
    be a path to a file that contains the Style Sheet.
    Note: Relative URLs in the Style Sheet file are relative to the
    Style Sheet file's path.
> * -stylesheet stylesheet, is the same as listed above.

So far, LibreOffice's command line argument
processing/evaluation would prevent passing these
options as they were considered invalid arguments
for LibreOffice.

Adjust this to simply ignore the "-stylesheet=..."
and "-style=..." variants when validating command
line arguments, and pass these on to the QApplication
in QtInstance::CreateQApplication.

Notes:

* For now, only the single-arg variants using "=" are supported,
  i.e. "-style=<somestyle" and "-stylesheet=<somestylesheet>", but
  not "-style <somestyle>" or "-stylesheet <mystylesheet>".
  The logic could be extended as needed in the future.

* At the point in time that the command line argument processing
  happens in LO, the vcl plugin hasn't been created yet, so there
  is no good way to tell whether one of the Qt-based vcl plugins
  is actually going to be used. Just allow the arguments if one
  of them was enabled at build time. If another vcl plugin (e.g. gtk3)
  is used, those arguments are simply ignored.

[1] https://doc.qt.io/qt-6/qapplication.html#QApplication

Change-Id: I3a4bf2071eaf875e45bdd9cd5b5f928118412cb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208833
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-30 21:45:15 +02:00
Khaled Hosny a1b5f5cedd vcl: Remove the dead fd-hack
Drop the exterals patches as VCL internals don’t support this anymore,
and drop the LOK addfont change as it wouldn’t work now. I don’t know if
LOK addfont has any use now, but I left it.

Change-Id: I2798679d0bb59bb6c2c6e0eae329287f36662223
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208546
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2026-07-24 18:12:39 +02:00
Michael Weghorn f1f6a505a0 weld: Pass weld::TextWidget& in text change callback/handler
Switch the weld::Entry and weld::TextView handlers
that are called when the text changes due to user
interaction to pass a weld::TextWidget& param
instead of a weld::Entry& and weld::TextView&
one respectively.
Adjust related methods across the code base accordingly.

This unifies the behavior for both of these
weld::TextWidget subclasses and prepares for
deduplicating the logic and moving it to the
common base class in an upcoming commit.

That will also ensure they stay in sync.
(Change also motivated by the fact that their behavior was
differing before

    Change-Id: I03d2a13cd84d53d806eb9e363f49c4b6be28d938
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Thu Jul 9 13:08:58 2026 +0200

        tdf#130857 weld: Don't signal about programmatic TextView text change
.)

Change-Id: I5572fc88caf577fae9a23a39f1ec4f2179935a99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207936
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-10 18:17:27 +02:00
Christopher Sherlock c928d5bc07 vcl: Rename Y-axis origin methods to Get/SetDeviceOriginY
Completes the deprecation of legacy coordinate subsystem naming by
renaming GetOutOffYPixel() and SetOutOffYPixel() to
GetDeviceOriginY() and SetDeviceOriginY() across OutputDevice,
Window, and CoordinateMapper.

This unifies axis naming conventions following previous X-axis
refactoring passes, clarifying that these fields represent the
physical origin offsets of the device rendering canvas.

This patch also moves view transformation logic inline from outdev/map
to CoordinateMapper, and wraps sprawling multi-line logic formulas
across mapping routines to clean up formatting boundaries.

Key changes:
* include/vcl/outdev.hxx / window.hxx: Updated public declarations
  to replace GetOutOffYPixel with GetDeviceOriginY.
* vcl/inc/CoordinateMapper.hxx: Migrated view transformation cache State
  members and mapping calculation methods into the mapper object.
* Global adjustments: Patched all related coordinate offset reads
  and tracking writes throughout desktop, editeng, sc, svx, and vcl.

Change-Id: I28fec54a7f3312cc41ada2de38b26351c0a65527
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203646
Tested-by: Jenkins
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
2026-07-07 14:22:05 +02:00
Christopher Sherlock 90951d958c vcl: rename X-axis origin methods to Get/SetDeviceOriginX
Rename GetOutOffXPixel() and SetOutOffXPixel() to GetDeviceOriginX()
and SetDeviceOriginX() across OutputDevice, Window, and CoordinateMapper.

The legacy "OutOff" naming convention obscured the difference between
system-level window positioning offsets and internal content scrolling
(SetPixelOffset). The new nomenclature explicitly communicates that
these metrics strictly govern the device coordinate space origin.

This patch focuses strictly on the X-axis coordinate reads and cleans
up duplicated formatting signatures inside the CoordinateMapper header.

Impacted modules:
* include/vcl: Update public declarations in outdev.hxx and window.hxx.
* vcl/inc: Clean up CoordinateMapper.hxx whitespace and scaling hooks.
* Global: Patch dependent pixel coordinate reads across desktop, editeng,
  sc, sfx2, svx, and vcl.

Change-Id: I546e1d255887e3b280ff15caca2e27ef10de52d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206509
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Tested-by: Jenkins
2026-07-07 14:14:50 +02:00
Michael Weghorn 35e2a8f8c6 tdf#130857 weld: Add default param for TreeView::enable_toggle_buttons
Most callers use weld::ColumnToggleType::Check
and only a few use weld::ColumnToggleType::Radio.

Add a default param of weld::ColumnToggleType::Check
and drop the explicit param for callers passing this.

This prepares for moving setting the toggle button
type to a separate method in an upcoming commit to
clarify what it actually does.
(It doesn't only set the toggle button type of the
special "expander toggle column" enabled by
weld::TreeView::enable_toggle_buttons, but of *all*
toggle buttons used in any of the cells of the
whole table.)

Change-Id: I65edb7cd5f79c59222c1c415f118b8adbdec0271
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207249
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-06-25 18:23:42 +02:00
Michael Stahl 592e67c4f2 desktop: convert oosplash to C++ and use comphelper::Hash
Also fix all `loplugin` warnings in start.cxx.

Not sure to what extent the "SingleOfficeIPC" pipe name is still
considered a stable API, likely not any more, using something other than
MD5 could be an option too ...

Also convert the other "SingleOfficeIPC" thing here.

Signed-off-by: Michael Stahl <michael.stahl@collabora.com>
Change-Id: I4561a880e8321d191144954687870aaa122fff75
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4671
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
(cherry picked from commit f50ea835b44dca17405df004fb5b04a8478833d6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207203
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-24 00:06:59 +02:00
Michael Weghorn 48998924bf tdf#130857 desktop: Merge checkbox/text cols in "Extension Update" dlg
This is similar to

    commit 9bfbc7d139
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Jun 19 09:21:36 2026 +0200

        tdf#130857 sc: Merge checkbox and text column in "Protect Sheet" dialog

, but for a different dialog. See the above-mentioned
commit for more details/background.

To trigger the dialog:

* download APSO 1.4.2 from [1]
* "Tools" -> "Extensions"
* install the APSO extension via the "Add" button, etc.
* restart LO
* "Tools" -> "Extensions"
* -> "Check for Updates"

This case was found by running the ui-rules-enforcer
with upcoming commit

    Change-Id: Ib596c39698d308e18e9ede27c239cd44e43863a9
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Jun 19 08:58:59 2026 +0200

        tdf#130857 ui-rules-enforcer: Check that special toggle renderer not by itself

in place.

[1] https://extensions.libreoffice.org/en/extensions/show/apso-alternative-script-organizer-for-python

Change-Id: I065032e4b7f7cfe07ea38639384412584b414127
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207125
Tested-by: Jenkins
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
2026-06-23 07:40:21 +02:00
Xisco Fauli 1cac4f1a69 lok: drop sendDialogEvent
Follow-up of
commit 8a91868e21
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date:   Tue Jun 2 14:53:19 2026 +0200

    drop JSDialog machinery

Change-Id: I61946b9504e0ada95d08d2414195f4ca8eab9ae4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206244
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-06-09 14:49:09 +02:00
Xisco Fauli 80c1a38018 sfx2: drop IsCommandAllowedInLokReadOnlyViewMode
it allows to drop setAllowChangeComments and setAllowManageRedlines
as well

The logic was relevant for Collabora Online
but it's no longer using this repo

Change-Id: I47a7eeddab000d748ba08896592e9403fdf010fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206240
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-09 14:48:59 +02:00
Xisco Fauli b0e4238a46 svx: remove svx::theme::notifyLOK
The logic was relevant for Collabora Online
but it no longer uses this repo

Change-Id: I11755f26a3ed345eafcf7fe5aeaee850729227eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206162
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-06-05 21:52:31 +02:00
Michael Weghorn 98fff9f07f vcl/weld: Drop logic to collect UI coverage information
This was originally introduced in

    commit be0e1382a6
    Date:   Fri Dec 5 20:22:22 2025 +0000

        Collect .ui use coverage information

, presumably for Collabora Online which no longer uses
this repo.

By now,

    commit 8a91868e21
    Date:   Tue Jun 2 14:53:19 2026 +0200

        drop JSDialog machinery

dropped the use of the collected information, so
also stop collecting it altogether.

Change-Id: I4a7ac9e8f503c9958133e6cd0a1574bf9347e393
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205938
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-06-05 07:58:19 +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
Michael Weghorn 8b5a46a0e0 weld: Move weld::toId and weld::fromId to weldutils.hxx
In the past, weld.hxx used to contain the class
definitions for weld::Widget and all subclasses,
as well as a few helpers.

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 anything in weld.hxx
changes.

Move the weld::toId and weld::fromId helpers from
weld.hxx to weldutils.hxx, in preparation of getting
rid of weld.hxx altogether in an upcomcing commit.

Change-Id: I408fe20a74ff104cbfe07bde3105317a1922ff61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205936
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-06-04 14:37:13 +02:00
Michael Weghorn 8f7cf9c32c weld: Move weld::CheckButton 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.

Add missing includes/forward declarations in places
previously depending on transitive includes that
are now dropped.

Change-Id: I3215b358e0fa45ffce08756218c386e1a4d7ebc6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205928
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-06-04 08:39:19 +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
Xisco Fauli 078f2099d7 desktop: drop TraceEventDumper
'SAL_LOK_OPTIONS=profile_events' is not used anywhere
internally

Change-Id: I57a17c98412a87144dd5edca6efc213bc2f0367a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205891
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-02 00:55:44 +02:00
Xisco Fauli 89c5152164 desktop: drop methods using unused env variables
LOK_HELP_URL, LO_CERTIFICATE_DATABASE_PATH, DEEPL_API_URL
and DEEPL_AUTH_KEY are never used internally

Change-Id: I995768a7ecd4b56b249dee261574e6709cd5f639
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205890
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-02 00:55:39 +02:00
Xisco Fauli fd65cea59c drop notebookbar_online.ui
'SAL_LOK_OPTIONS=notebookbar' is not used anywhere
internally

Change-Id: Ibee2bf6d990ec53f7c2109bcfed451d37d70e8ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205885
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-01 20:44:45 +02:00
Xisco Fauli 0a231f1237 drop isLOKDesktop and LOKDeviceFormFactor
follow-up of
commit 7579bac8e9
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date:   Fri May 29 10:46:04 2026 +0200

    drop isLOKTablet

and

commit f436c1cd89
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date:   Fri May 29 10:07:20 2026 +0200

    drop isLOKMobilePhone

Change-Id: I59604e56af75933acaa3ba6146e9b406d7a7845e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205828
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-29 15:13:09 +02:00
Xisco Fauli 0159850b67 [API CHANGE] drop ComplexColorJSON
No need to use it when we can use ComplexColor

Change-Id: I921e229d2dee719b7457f046c1ed1ff0492aa3e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205810
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-28 20:07:19 +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
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 d1245f5ca9 vcl: Pass Window::PaintToDevice outdev param by ref
This makes clear that this is always non-null.

Change-Id: I4452fa69ac5869b1654771b8a38781e57fe89194
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205348
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-05-20 00:38:26 +02:00
Michael Weghorn 3f1fb9d4b0 weld: Move weld::Window 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: If7cb4403f1861c465f44a1cae4065b0bf8dfad48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205323
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-19 09:10:43 +02:00
Stephan Bergmann 811769f009 Consistently use __EMSCRIPTEN__ instead of EMSCRIPTEN macro
...as emsdk 5.0.3 deprecated the predefined EMSCRIPTEN macro (see
<https://github.com/emscripten-core/emscripten/commit/506052bd8b4e23ded7f2351c62ca3b24d40c8cf3>
"Warn about usage of deprecated EMSCRIPTEN macro. NFC (#26381)"), causing
failures like

> In file included from static/source/unoembindhelpers/PrimaryBindings.cxx:29:
> In file included from include/sfx2/viewsh.hxx:35:
> In file included from include/editeng/outliner.hxx:32:
> In file included from include/tools/color.hxx:26:
> include/osl/endian.h:66:15: error: macro 'EMSCRIPTEN' has been marked as deprecated: use __EMSCRIPTEN__ instead [-Werror,-Wdeprecated-pragma]
>    66 | #elif defined EMSCRIPTEN
>       |               ^
> /home/sberg/emsdk/5.0.4/emsdk/emscripten/main/cache/sysroot/include/emscripten/emscripten.h:35:66: note: macro marked 'deprecated' here
>    35 | #pragma clang deprecated(EMSCRIPTEN, "use __EMSCRIPTEN__ instead")
>       |                                                                  ^

To avoid confusion, also suppress the -D$(OS) in
solenv/gbuild/platform/unxgcc.mk that would unnecessarily keep defining
EMSCRIPTEN.

Change-Id: Ic1f187cf1c6417cd95d4092e9cea01a665bd1b2f
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/34
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 50291c2ed83bdb49bb827a4a12905d94b8c42035)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205167
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-14 10:11:38 +02:00
Adolfo Jayme Barrientos fc1af7dd2c tdf#171916 Rename “Safe Mode” to “Troubleshoot Mode”
Change-Id: Iee6f992f06428b2a80410590bc489277d47b020b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204820
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2026-05-06 20:49:39 +02:00
Michael Weghorn 03d5d803c4 weld: Switch TreeView selection changed signal param to ItemView
Switch the param for the signal and handlers used when
the selection in a weld::TreeView changes from weld::TreeView&
to the base class, weld::ItemView&.

This is in preparation of moving the logic to the weld::ItemView
base class in an upcoming commit.

Handler implementations that require a weld::TreeView
instance can use the one that the signal is connected
to, e.g. use the class member directly inside of the
implementation instead of using the param (as is done
in most of the places anyway).

Change-Id: I0bbf8fe1dbd95906a5224155d48d832bcd144532
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203366
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-04-10 06:36:08 +02:00
Dan Williams 6cb57f7e87 Consolidate macOS Start Center menubar fallback code
Change-Id: I750162d71a79f919b4416120f082c9ac47dad6f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200345
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2026-04-02 17:17:09 +02:00
Noel Grandin 0e40cab8b4 Fraction->double in SetOutputSizePixelScaleOffsetAndLOKBuffer
Change-Id: Ie049437a68ff4957206fd845665144f63919e54e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202324
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-03-23 07:05:42 +01:00
Stephan Bergmann c6302b4eda Support Clang -shared-libsan
...instead of using the default -static-libsan, where dynamic libraries must be
built without -z defs and where all executables must link against the static
libsan.  Dropping the latter requirement means that we no longer need the static
sal hack in Library_jpipe.

But instead, at runtime, when a process loads any library that links against the
dynamic libsan, then that dynamic libsan must be loaded first into the process.
For executables that are themselves linked against the dynamic libsan, that is
already the case.  For scenarios where we invoke a Java executable, we now use
LD_PRELOAD to fulfil that requirement.  (And for invocation of Python
executables, this commit assumes a --enable-python=fully-internal configuration,
so that executable will be itself linked against the dynamic libsan.)

Dropping the requirement to build without -z defs revealed that using
-fsanitize=vptr often requires RTTI symbols from libraries that are not usually
linked against.  Such cases are now handled by conditionally including those
libraries in gb_*_use_libraries calls.  (This could be restricted even further
to only be done under -shared-libsan, but it arguably doesn't hurt to also do it
under the default -static-libsan.)

The expectation is that -shared-libsan will explicitly be passed into the
configuration along with any other -fsanitize... arguments via
--with-extra-cc-flags and --with-extra-cxx-flags.  This commit does not yet
remove the code that is only needed for the (default) -static-libsan caes, but
that code could eventually be cleaned up, once all (Clang) builds using
sanitizers use -shared-libsan.  (GCC already defaults to a shared model.
Instead of a combined -shared-libsan, it has individual -shared-libasan etc.,
though.  This commit does not intend to make any changes to any potential GCC
sanitizer builds; my assumption is that we do not have any such, and that they
wouldn't work out of the box, neither before nor after this change.)

Change-Id: I932e4b75c299c158211e122adf33d7988892a87e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200935
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-03-04 12:37:18 +01:00
Gökay Şatır ec98972ddc cool#12762: Calc Online: Implement doc_getPrintRanges for document load.
Issue: If a document has print ranges defined, Online side doesn't get it on document load and can't show the ranges.
Fix: Add it to the document status message. There is also an Online side commit.

Also a test added for the feature.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Id7c1f37be435b2ac6e9f7bb6554376e1867bfbcb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190563
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200291
Tested-by: Jenkins
2026-02-27 10:01:11 +01:00
Michael Weghorn 420297eabe extension mgr: Move DialogHelper::continueOnSharedExtension to ExtMgrDialog
It's only used by that sublcass, so move it there.
Also make it private, as it is internal logic.

Move DialogHelper::IsSharedPkgMgr as well, which is
now also only used by ExtMgrDialog.

Change-Id: Ifaac7e9bdc231d5b26a3184cf6b15d2237d6d734
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200154
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-24 23:51:35 +01:00
Michael Weghorn e759b0f6eb extension mgr: Make Input an enum class
Change-Id: Iebd50ef845ee1ff6c5482f4edaf91d3161975c8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200153
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-24 23:51:29 +01:00