Commit Graph
518738 Commits
Author SHA1 Message Date
Tomaž Vajngerl 2c87d392dc solvers: extract the CoinMP problem build and solve into a helper
CoinMPSolver did the whole job in one function: sample the model by
perturbing each variable, build the CoinMP matrix from those
coefficients, solve, and read the result back. Move the matrix
build and solve into a standalone helper, coinmpSolveLinearModel,
that  takes the sampled coefficients plus the variable bounds and
column  types and returns the solution and status.

The helper treats the first entry of each cell's coefficient vector
as the value of an affine model at the origin and the rest as the
per variable slopes, which is what the existing sampling already
produces. That keeps the same convention while letting a future
caller supply coefficients sampled around a different point and its
own bounds, which is what a sequential linear programming loop
needs.

No behaviour change. CoinMPSolver still samples and sets up bounds
and column types exactly as before, then calls the helper. The
CoinMP solver unit test passes unchanged.

Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: I6d373a48caa9d67a932a599068368bae978f1f22
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4648
Tested-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 197f790a93880f56dd53db43e6bbb61c22ccfdc2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208337
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-21 11:39:34 +02:00
Caolán McNamara b45d468a3d put media files under link update control
A media object whose content lives at an external URL, rather than
inside the document, is registered with the link manager like a linked
graphic. So it then shares the usual link update mechanism.

Media copied into the document is extracted to a temp file and is not a
link, so that's left alone.

Change-Id: I59dadaf05567ee9d9c0492b13cbc7174aca953da
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6980
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 1ea4fc54036587c7eb4d4cea74e776de9e6baaf3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208322
Tested-by: Jenkins
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-21 11:38:09 +02:00
Caolán McNamara 696ec888bc limit the gstreamer backend to simple self-contained media
The adaptive-streaming cases follow a more complicated indirect route of
a manifest to further resources which is atypical for our use.

Change-Id: I1a3e51d23cc4e8e2912304d5d1c3337c71c1029e
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/7008
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit c7eada5bc2233369e196f2c93e7606b56e3acc62)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208321
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-21 11:38:02 +02:00
Caolán McNamara b33b2b50d8 put slideshow media links under link control
Change-Id: I22b8e5577e2a450d0d4043db891eec4617dcb2fe
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/7009
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit f0768394c14f928d47547408fc1195368be81f86)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208320
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-21 11:37:40 +02:00
Justin Luth c451264db7 tdf#111843 sc HasSelection: check if MultiMark is actually a selection
Somewhat surprisingly, it is very easy for Calc to report a selection
when the selection has actually been negated.
And sadly I didn't even see any examples in the code that checked.

ScViewFunc::SearchAndReplace early on calls
DoneBlockMode(true);  // don't delete mark
which actually does delete the mark (if it has been negated).

So very quickly after HasSelection said that it did have a selection
this function cleared that status, so the rest of SearchAndReplace
operated on a no-selection state.

So ensure the correct state in srchdlg's TimeoutHdl_Impl
to prevent the user from requesting 'Current selection only'
when no selection is actually available.

Change-Id: Ifcafe251e68f036a25556cf5533d06337878d606
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208249
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-21 11:22:34 +02:00
Justin Luth 78f371e500 NFC tdf#111843 SfxViewShell: HasSelection(bText=true), remove =true
No Functional Change intended

This function is used very specifically for only UI stuff.
It is very different from any regular stuff.

So help to differentiate it by requiring the bool value.

To make sure I got all of them, I tested by requiring
a bogus OUString variable as well - make sure it compiled.

Change-Id: I4879427a806324d9fb9c033ef6b66ad24ba0bd54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208234
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-21 11:22:20 +02:00
Khaled Hosny 36d92f3a35 vcl: Read font data with DirectWrite on Windows
Towards migrating off GDI font access.

This re-applies the change reverted in
bab072a4a1, after aligning the code with
hb_directwrite_face_create() to fix TTC handling and emmry mangement
issues.

Change-Id: I5954838bb41ab34cb89bab86e4dbd2ae1916c99f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208257
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2026-07-21 09:15:24 +02:00
Noel Grandin 49044478b3 use more unique_ptr in FormulaTokenArray
Change-Id: Ife00f7e119e4870a3584ae7d766d9debd6220217
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/632
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit b80addae75093d947065f0e41e1a1aebd2c89a03)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208282
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-21 09:02:36 +02:00
Caolán McNamara 4aba7e41c1 put calc external data mappings under link update control
register each mapping as a LinkManager link, so its refresh goes through
the same update control as sheet links and area links. Wait until after
the infobar-controlled update mode is known to update.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I6710d4bdf3de6e002365d75c911b69076a054da8
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/7058
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit b72d760465c857eb5dd10cdc45b107c49bb0caec)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208319
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-07-21 08:59:06 +02:00
Heiko Tietze a435d56867 Related tdf#115805 - Use correct increments for numbering dialogs
Rather than using set_unit() use the function SetFieldUnit() to set
the unit property according the configuration

Change-Id: I1a8638d34d71b509f2d0a52fef8a673c8e112c55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207353
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2026-07-21 07:46:10 +02:00
Michael Weghorn 7c7f950dd8 vcl: Drop NotebookBar::{m_pViewShell,m_rDisposeLink}
By now, NotebookBar::m_pViewShell is always null and
NotebookBar::m_rDisposeLink is unset.

The method NotebookBar::SetDisposeCallback which would
have set both members was dropped in

    commit 6f81bce807
    Date:   Wed Jun 3 12:34:28 2026 +0200

        loplugin:unusedmethods

, so drop the now pointless members altogether.

Change-Id: Ib6392c22094601ebcc2349938e553a845fe0be06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208273
Tested-by: Jenkins
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-21 07:10:55 +02:00
Michael Weghorn fbeacc3ca9 vcl: Drop NotebookBar::{m_xVclContentArea,m_bIsWelded}
NotebookBar::m_bIsWelded is always false and
NotebookBar::m_bIsWelded is always an empty reference
by now, see also previous commit

    Change-Id: Ic637b1e7026509b0736d877c88cf7bd6ca50b54c
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Mon Jul 20 10:24:31 2026 +0200

        vcl: Drop obsolete LibreOfficeKit path in NotebookBar ctor

. Therefore, drop them and related logic altogether.

Change-Id: I2a4c21728759207158f8f62049fe9edd85fac239
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208271
Tested-by: Jenkins
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-21 07:10:46 +02:00
Michael Weghorn 27c2916b8f vcl: Drop obsolete LibreOfficeKit path in NotebookBar ctor
This is no longer used and e.g. the GetMainContainer
method that the comment refers to was dropped in the
meantime, see

    commit 8754a75d98
    Date:   Tue Jun 2 14:47:57 2026 +0200

        vcl: drop WeldedTabbedNotebookbar

        "WeldedToolbar" no longer exists after
        commit fd65cea59c
        Author: Xisco Fauli <xiscofauli@libreoffice.org>
        Date:   Mon Jun 1 17:14:35 2026 +0200

            drop notebookbar_online.ui

and

    commit 6f81bce807
    Date:   Wed Jun 3 12:34:28 2026 +0200

        loplugin:unusedmethods

(`git show --ignore-space-change` can help to see the
"actual change" more easily.)

Change-Id: Ic637b1e7026509b0736d877c88cf7bd6ca50b54c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208270
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-21 07:10:35 +02:00
Stephan Bergmann 0a654a90d2 external/harfbuzz: Silence new Clang 24 trunk -Werror,-Wunused-template
> In file included from ../src/hb-number.cc:26:
> In file included from ../src/hb.hh:560:
> ../src/hb-meta.hh:131:3: error: unused function template 'operator()' [-Werror,-Wunused-template]
>   131 |   operator () (T&& v) const HB_AUTO_RETURN (std::forward<T> (v))
>       |   ^~~~~~~~

etc.

Signed-off-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Change-Id: I69284c010e4970db55ecb6e1507186648b8b5271
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/7282
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
(cherry picked from commit 6b03159992ce09f1b63a799ca99476c048758054)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208278
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-21 00:09:33 +02:00
Stephan Bergmann 727d62727e Fix --with-latest-c++ build against libstdc++ 16
(e.g., libstdc++-devel-16.1.1-2.fc44.x86_64) after
f320d95d89ecc9bea81182795969f83b05ec903c "Avoid deprecated
std::filesystem::path::string",

> In file included from engine/codemaker/source/netmaker/netproduce.cxx:19:
> engine/codemaker/source/netmaker/csharpfile.hxx: In member function ‘std::string CSharpFile::getPath() const’:
> engine/codemaker/source/netmaker/csharpfile.hxx:31:27: error: ‘const class std::filesystem::__cxx11::path’ has no member named ‘display_string’
>    31 |         return m_filePath.display_string();
>       |                           ^~~~~~~~~~~~~~

etc.

Signed-off-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Change-Id: Ib51f9e0d0e1f902726f0d68a11fe28110388ef6a
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/6554
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit 63e9ab3b87cc5a793c8733e375dc86d99419a88d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208277
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-21 00:09:20 +02:00
Justin Luth 3552e250f4 tdf#102307 quick find: add hard coded keyboard shortcut to label
The quick find (Ctrl-F) toolbar has a few hard-coded
keyboard shortcuts to find next or find previous.
However, those were undiscoverable to the user.

So, manually add one to the translatable label.

Hmm, this can be done automatically (the 'right' way)
via officecfg/registry/data/org/openoffice/Office/Accelerators.xcu.
However, these are not available to be set via the customize menu.
Nor do they work outside of the Find toolbar.

These are not user-customizable shortcuts.
They are hard-coded keys combinations in
svx/source/tbxctrls/tbunosearchcontrollers.cxx,
and thus are not language dependent.

An alternative would be to display Ctrl+G.
I chose F3 because it is a standard
for both Windows and Linux (KDE and Gnome).
[Gnome ALSO standardizes Ctrl+G, and that is what MacOS uses.
LO assigns Ctrl-G to .uno:RepeatSearch for macosx.]

make UITest_sw_findBar

Change-Id: If4b16d2e0c4abdd7656d58625a51ac7f40bdb242
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207972
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-20 23:48:08 +02:00
Justin Luth 1bfad0e536 tdf#160781 sc SearchStyle: byRow and byCol were switched around
This code is basically untouched since initial import.

For some reason, searching for patterns handled by Row
as if it was by Column - the opposite of text searching.

This patch fixes that.

Thanks to Julien Nabet who gave an initial try
and identified that looping again didn't work.

Change-Id: Ie6daa67e7d94bb1a5b8cd58158d20f1a383a7d77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208200
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-07-20 23:20:26 +02:00
Justin Luth 6398132373 tdf#163888 sc ReplaceAllStyle: only replace for MultiMark in this tab
This fixes a LO 3.5 regression
from commit 0783e78de2
    Let's avoid modifying the selection data during search and replace

The problem was that only the first sheet's range was used,
and it was being applied to every sheet that had a match.
(Thus one reason why selection data was modified during S&R).

I would have LOVED to have some functions like ScRange(SCTAB)
or GetIntersectedRange(SCTAB). I almost created this one,
but the compile took so long, and it needed ScDocument passed to it
which made it look ugly - so I didn't bother in the end.

Change-Id: I6abc25fd4f7002d190632fe33963fdeb1af4b1ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208231
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-20 23:18:56 +02:00
Justin Luth df85a35496 tdf#128435 sc ExecSearch: accept any unfinished editing before search
If the user has edited a cell, but has not yet pressed enter
and then they start/resume a search,
then the change being made might be applied to a different sheet.

Yeah - so stop editing before doing a search, eh?

I excluded SID_SEARCH_ITEM because that is called every time
the dialog starts/stops, any checkbox is ticked, etc.
So excluded for performance/extreme redundancy reasons.

I can easily imagine wanting to use search when building a formula,
so let us exclude that case as well. (see tdf#137899)

Change-Id: I61b22e668c7080c4f1786e1a720b1c8b4bafa68c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208223
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-20 23:17:42 +02:00
Justin Luth 6de09b5027 tdf#160781 sc SearchAndReplace: also loop by Column backwards
If you search by Row or Column forwards,
you will loop back to the beginning.
If you search by Row backwards,
you will loop back to the end.

This patch adds looping when searching by Column backwards,
and it also works when 'All Sheets' is checked.

Change-Id: I23252671b47fe05953cfd386a46b1c065d512127
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208204
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-20 23:16:29 +02:00
Julien Nabet 5f0cf799b3 Related tdf#149890: SVG: pattern is displayed with black fill
Regression from 5707b5dce7
tdf#101083 speed up SVG rendering with pattern fill (2)
This is the same thing I did in

     commit 3cbe3a0259
     Author: Noel Grandin <noel.grandin@collabora.co.uk>
     Date:   Mon Jun 14 15:05:59 2021 +0200
     tdf#101083 speed up SVG rendering with pattern fill

but cut and paste from the VclPixelProcessor2D to the CairoPixelProcessor2D code.

Which makes this SVG render in reasonable time when using the cairo backend.

We can probably do even better by cutting out the usage of VCL here, but this
is good enough for now.

+ apply the same as af2175bb87
    crashtesting: divide by zero

    since:

    commit 7b807a6b79
    Date:   Fri Jun 21 12:28:30 2024 +0200

        tdf#161086 bitmap location wrong with SVG with an embedded PNG

    bodge it by using the requested width/height and not the possibly
    zero on fail actual sizes

Change-Id: Ie0e0462e564a568f99d1c5b9c62f71049f71f9b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208275
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-07-20 21:30:55 +02:00
Tomaž Vajngerl 72da83e66f sc: read and write solver cells through ScDocument, not the UNO API
The solver components reached every cell through the spreadsheet UNO API:
getSheets, then getByIndex for the sheet, then getCellByPosition, each with
a QueryInterface. That indirection is cheap once but expensive when it runs
for every variable on every evaluation.

Now that the solvers live in sc, recover the ScDocument from the document
through the UNO tunnel (ScModelObj) in setDocument and read and write cells
directly with ScDocument::SetValue and GetValue. Automatic recalculation is
turned on there as well, so writing the input cells and then reading the
recalculated objective and constraint cells behaves exactly as before. Both
the shared SolverComponent base (used by the CoinMP solver) and the
standalone SwarmSolver are converted.

The results are unchanged because the recalculation engine is the same. Only
the cost of getting values in and out of the document drops. The swarm solver
evaluates the objective for a whole population every generation, so this is
its hot path: on a 100-variable model its evaluation loop runs about four
times faster. CoinMP touches the cells only once, in a single pass that reads
off the linear coefficients, so it gains less, about 1.7 times faster on the
same model.

Library_solver now links sc and includes sc/inc. SwarmSolver keeps the UNO
cell lookup only for the uncommon case where a constraint's right-hand side
is given as a cell address.

Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: I03ccec74cdc4d6cde30c86e048bf4314c3ca1397
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4047
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.com>
(cherry picked from commit 929c17cf8e51a1510c32399de4a94ba946bb9919)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208281
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-07-20 21:09:30 +02:00
László Németh fc54f170b8 Update git submodules
* Update helpcontent2 from branch 'master'
  to c1ec0774ee9e428b6cf5337e3bfbf3461bb0148d
  - tdf#172674 add help for Better spacing/Less hyphen slider + interop.
    
    Follow-up to core commit 5da16bdc79
    "tdf#172674 offapi cui sw xmloff: add hyphenation slider feature".
    
    Add also information about the requested minimum and maxinum
    word spacing for MS-DOCX paragraph layout interoperability,
    see core commit 5a48070f59
    "tdf#126154 sw offapi xmloff cui: add min/max word spacing".
    
    Change-Id: I66f3d5e1da69bcf7dc3d3b5cc85cc83400333814
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/208297
    Tested-by: Jenkins
    Reviewed-by: László Németh <nemeth@numbertext.org>
2026-07-20 18:56:57 +02:00
Rafał Dobrakowski 6fac2ead2d tdf#171872 sc: allow copying status bar function values
Copy the value from the status bar.
According to the checkboxes selected in the submenu.
If “None” is selected, choosing “Copy Value...” saves
an empty string to the clipboard.
This effectively clears the clipboard.
Support for multiple national languages has been added.

Change-Id: I662e8be8feaeac5bf2e4d69f557a8fec2420ff47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207385
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2026-07-20 17:56:20 +02:00
Heiko Tietze 13ca39d939 Resolves tdf#172739 - Harmonize the Notebookbar tab order
Change-Id: I358a8aa469167579a76bafa4ef0c28f94771ce65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208272
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2026-07-20 16:37:19 +02:00
Aya Jamal 92d2a4bec5 tdf#103680: Implement SupportsOpenTypeMath in outdev
Change-Id: I425735e91ce83c6c2225ad562c3549067b80f053
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207987
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-07-20 15:13:17 +02:00
Ivan Vladimirovich Kuznetsov 56ef560f84 Android. Rename source module to app
According to documentation
https://developer.android.com/build/android-build-structure
the root module should be named "app".
So the source module was renamed.

Change-Id: I1d8e239ab2df54cc294aa7da0a9746a87952bb3c
2026-07-20 14:49:35 +02:00
d17f26e7ae android-viewer translated using Weblate
Romanian currently translated at 100.0% (116 of 116 strings)

Change-Id: I7007d15fb4b8bf9f5c350948d12784bd41802e01

Added translation for android-viewer using Weblate (Kurdish (Northern))

Change-Id: I7f30de3ee8784e767f723b5816f6ef583438309a
Co-authored-by: JiyanAlpirani <jiyanalpirani@gmail.com>
Co-authored-by: Miloiu Andrei-Valentin <miloiuandrei@gmail.com>
Co-authored-by: Weblate <noreply@documentfoundation.org>
Translate-URL: https://translations.documentfoundation.org/projects/android-viewer/android-strings/ro/
Translation: android-viewer/android-strings
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205560
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2026-07-20 14:44:21 +02:00
Michael Weghorn 652597d649 comphelper a11y: Drop KeyBindings typedef
It's only used once, in the very next line.

Change-Id: Iffbfae03378bf439cdc64d289f4346c8096669c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208269
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-20 14:40:21 +02:00
Andrea Gelmini 6d10a8e47b Fix typo
Change-Id: I2411ddcf7bb5751755b4375addc30e5c5a0d284a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208276
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-07-20 14:29:08 +02:00
Christian Lohmaier c786d58125 Update git submodules
* Update translations from branch 'master'
  to 165b4200a9471d813af4403952abdee5e06d17d3
  - update translations for 26.8/master
    
    and force-fix errors using pocheck
    
    Change-Id: I1e57d23ac4e75387ef6b2480fcb18a23526b80dd
2026-07-20 14:27:37 +02:00
Vissarion Fisikopoulos 7389be9f2d tdf#42713: new dialogues for maintaning sql comments
When the query has comments and the user clicks the
"Edit..." button, a dialogue with message
"The query contains SQL comments.
If you edit it in Design View, the comments will be lost.
Continue anyway or start editing in SQL View?"
pops up. There are 3 choices "SQL View", "Continue", "Cancel";
the first opens SQL view, the second goes to design view and
the last cancels the dialogue.

Change-Id: I1ea59ff24243ab8e3aeb09282f3c32dcb9b167af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208198
Tested-by: Jenkins
Reviewed-by: Vissarion Fisikopoulos <vfisikop@libreoffice.org>
2026-07-20 12:21:26 +02:00
ApurvR20 5571e8981d tdf#145538 : Use range based for loop in vbacontentcontrollistentry.cxx
Replace traditional style loop with range based loop

Change-Id: I98062781e4301c274ca9d16be18a0c08bf11e322
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208132
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-07-20 10:20:17 +02:00
Neil Roberts 8d77a6a77d officecfg: Add a unit test to execute macro in AcceleratorKeyChecker.fodt
Adds a unit test which executes the macro in the utility document
AcceleratorKeyChecker.fodt. This should help make sure it doesn’t bit
rot if there are API changes in the core source code.

Change-Id: Id972dda31d0c8a09904e76dd6fd9760c9f2ad739
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208220
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-07-20 10:01:40 +02:00
Neil Roberts b42b3d5c64 AcceleratorKeyChecker: Fix retrieving the accessibility context
The macro in the document was relying on the document window directly
implementing the XAcessible interface. This is no longer the case so the
macro was hitting an error. This fix is based on the changes in the
commit below:

commit d1a25112bb
Author: Michael Weghorn <m.weghorn@posteo.de>
Date:   Wed Jun 18 17:49:48 2025 +0200

    java a11y tests: Don't rely on XWindow being XAccessible

Change-Id: Ie8cede2108f26e9d36cf1cf16e47f7ec5feab722
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208207
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-07-20 10:01:10 +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
Devansh Varshney b336f57daf fix: Tiny typo in unoidl README.md
removed the extra a in 'from' and added backticks
to `N8 * Idx-String`

Change-Id: Id257c9a577421ff11224a7a0efb1f3f2973c767b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208255
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-07-20 07:47:51 +02:00
Julien Nabet b76fe8a06f Fix unknown type name locale_t on mac ARM64 TB (take 2)
In file included from fcarch.c:24:
./fcint.h:678:9: error: unknown type name 'locale_t'
typedef locale_t FcLocale;
        ^
./fcint.h:680:19: error: use of undeclared identifier 'LC_CTYPE_MASK'
    FC_LC_CTYPE = LC_CTYPE_MASK,
                  ^
./fcint.h:681:21: error: use of undeclared identifier 'LC_NUMERIC_MASK'
    FC_LC_NUMERIC = LC_NUMERIC_MASK,
                    ^
./fcint.h:682:18: error: use of undeclared identifier 'LC_TIME_MASK'
    FC_LC_TIME = LC_TIME_MASK,
                 ^
./fcint.h:683:21: error: use of undeclared identifier 'LC_COLLATE_MASK'
    FC_LC_COLLATE = LC_COLLATE_MASK,
                    ^
./fcint.h:684:22: error: use of undeclared identifier 'LC_MONETARY_MASK'
    FC_LC_MONETARY = LC_MONETARY_MASK,
                     ^
./fcint.h:685:22: error: use of undeclared identifier 'LC_MESSAGES_MASK'
    FC_LC_MESSAGES = LC_MESSAGES_MASK,
                     ^
./fcint.h:689:19: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_PAPER = LC_ALL_MASK,
                  ^
./fcint.h:694:18: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_NAME = LC_ALL_MASK,
                 ^
./fcint.h:699:21: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_ADDRESS = LC_ALL_MASK,
                    ^
./fcint.h:704:23: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_TELEPHONE = LC_ALL_MASK,
                      ^
./fcint.h:709:25: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_MEASUREMENT = LC_ALL_MASK,
                        ^
./fcint.h:714:28: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_IDENTIFICATION = LC_ALL_MASK,
                           ^
./fcint.h:716:17: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_ALL = LC_ALL_MASK,
                ^
14 errors generated.

I copied pasted the ifdef from src/fcstr.c

Change-Id: I82eb9382ab317af91da7ddd1432a974829458b93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208262
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-07-19 21:31:49 +02:00
Julien Nabet 0ebcec3593 Revert "Fix unknown type name 'locale_t' on mac ARM64 TB"
This reverts commit ad3deca43f.

Reason for revert: I had wrongly "ifeq ($(OS),MACOSX)" instead of "ifneq ($(OS),MACOSX)"

Change-Id: If839b5dfe55349d9b0fee0b07cea3c3d5e9292ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208261
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-07-19 20:13:01 +02:00
Michael Weghorn 0d237be3f8 vcl: Merge the two SystemWindow::GetWindowState variants
After previous commit

    Change-Id: Iea0a2d64a552ff27ff5f8595f6d4379b6b224f94
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Wed Jul 15 21:50:13 2026 +0200

        vcl: Consolidate SystemWindow::GetWindowState callers

, only the variant directly returning the vcl::WindowData
is used outside of the class.

Cosolidate the two methods by merging them.

Change-Id: I0fb094a8ed583a9700ff64e34ebce86826320aa4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208172
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-19 19:30:51 +02:00
Michael Weghorn 3471de2f73 vcl: Consolidate SystemWindow::GetWindowState callers
Switch/Simplify the 2 remaining callers of the variant with the
vcl::WindowData in/out param to use the one that takes the mask
and returns the vcl::WindowData.

Make the other variant private as it's by now only used
inside of the SystemWindow class itself.

Change-Id: Iea0a2d64a552ff27ff5f8595f6d4379b6b224f94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208171
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-19 19:30:44 +02:00
Michael Weghorn 4e81fbaa3f vcl: Directly return vcl::WindowData in SalFrame::GetWindowState
So far, SalFrame::GetWindowState had a bool return value
and a vcl::WindowData* out param.

The comment said:

    // if this returns false the structure is uninitialised

However, all implementations always return true.
All callers pass the pointer to a newly default-constructed
vcl::WindowData.

Instead, drop the (always true) bool return value and out param
and instead directly return the vcl::WindowData as the methods
return value.

For macOS, add a new vcl::WindowData member to the
RuninmainResult union, so this can be used as a return
value with OSX_SALDATA_RUNINMAIN_UNION in
AquaSalFrame::GetWindowState.

Change-Id: Icc55685cae9991a93fea43963273753d8aa2420f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208169
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-19 19:30:22 +02:00
Michael Weghorn 370524907c vcl: Pass SalFrame::SetWindowState param by const ref
... instead of by pointer.
This makes clear it's non-null and allows to
drop some corresponding null checks.

Change-Id: I3e6c85c555ebcc0d949628e10fce891bc1c83fd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208162
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-19 19:30:11 +02:00
Julien Nabet ad3deca43f Fix unknown type name 'locale_t' on mac ARM64 TB
In file included from fcarch.c:24:
./fcint.h:678:9: error: unknown type name 'locale_t'
typedef locale_t FcLocale;
        ^
./fcint.h:680:19: error: use of undeclared identifier 'LC_CTYPE_MASK'
    FC_LC_CTYPE = LC_CTYPE_MASK,
                  ^
./fcint.h:681:21: error: use of undeclared identifier 'LC_NUMERIC_MASK'
    FC_LC_NUMERIC = LC_NUMERIC_MASK,
                    ^
./fcint.h:682:18: error: use of undeclared identifier 'LC_TIME_MASK'
    FC_LC_TIME = LC_TIME_MASK,
                 ^
./fcint.h:683:21: error: use of undeclared identifier 'LC_COLLATE_MASK'
    FC_LC_COLLATE = LC_COLLATE_MASK,
                    ^
./fcint.h:684:22: error: use of undeclared identifier 'LC_MONETARY_MASK'
    FC_LC_MONETARY = LC_MONETARY_MASK,
                     ^
./fcint.h:685:22: error: use of undeclared identifier 'LC_MESSAGES_MASK'
    FC_LC_MESSAGES = LC_MESSAGES_MASK,
                     ^
./fcint.h:689:19: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_PAPER = LC_ALL_MASK,
                  ^
./fcint.h:694:18: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_NAME = LC_ALL_MASK,
                 ^
./fcint.h:699:21: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_ADDRESS = LC_ALL_MASK,
                    ^
./fcint.h:704:23: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_TELEPHONE = LC_ALL_MASK,
                      ^
./fcint.h:709:25: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_MEASUREMENT = LC_ALL_MASK,
                        ^
./fcint.h:714:28: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_IDENTIFICATION = LC_ALL_MASK,
                           ^
./fcint.h:716:17: error: use of undeclared identifier 'LC_ALL_MASK'
    FC_LC_ALL = LC_ALL_MASK,
                ^
14 errors generated.

I copied pasted the ifdef from src/fcstr.c

Change-Id: Ied864b90a735716e39f2eb5f4e8f594fd909f9ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208258
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-07-19 18:46:23 +02:00
Patrick Luby 215a462336 tdf#172399 fix jittery window drawing during live resizing
macOS Tahoe had several problems that caused incorrect
drawing of tab items. To fix these tab item drawing
problems, commit 5b9881108b
would add the NSSegmentedControl as a subview of a window.

However, this caused extremely jittery window drawing
during live resizing if a window included any tab items.
Fortunately, as of macOS Tahoe 26.5.1, Apple had changed
tab item drawing so that the NSSegmentedControl now only
needs to be added as a subview when the window is not the
key window (i.e. the selected tab item is drawn disabled).

Since a window in live resizing is normally the key
window, Apple's changes eliminate the jittery window
drawing during live resizing.

Change-Id: I138528dea6661e49306c1085aee50f58b8ad4dfb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208186
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
2026-07-19 15:04:08 +02:00
Julien Nabet db5d24b4e0 Fix macOs TB unused-parameter
Change-Id: I8ad7530f1ef22ce4d7902b49fa93faa108463c38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208247
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-07-19 11:13:36 +02:00
Julien Nabet edc78d10a9 Fix deprecation in fontconfig (Linux only)
The patch fails for Windows so I put it specifically for Linux.

Done with the advice from Chatgpt (GPT-5.5)

With Python 3.14.6 from Debian testing (updated 2026-07-18) and no python in autogen.input
Traceback (most recent call last):
  File "/home/julien/lo/libreoffice/workdir/UnpackedTarball/fontconfig/fc-const/./fc-const.py", line 181, in <module>
    main()
    ~~~~^^
  File "/home/julien/lo/libreoffice/workdir/UnpackedTarball/fontconfig/fc-const/./fc-const.py", line 158, in main
    type=argparse.FileType('w'),
         ~~~~~~~~~~~~~~~~~^^^^^
  File "/usr/lib/python3.14/argparse.py", line 1368, in __init__
    warnings.warn(
    ~~~~~~~~~~~~~^
        "FileType is deprecated. Simply open files after parsing arguments.",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        category=PendingDeprecationWarning,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        stacklevel=2
        ^^^^^^^^^^^^
    )
    ^
PendingDeprecationWarning: FileType is deprecated. Simply open files after parsing arguments.

Traceback (most recent call last):
  File "/home/julien/lo/libreoffice/workdir/UnpackedTarball/fontconfig/fc-genericfamily/./fc-genericfamily.py", line 189, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/julien/lo/libreoffice/workdir/UnpackedTarball/fontconfig/fc-genericfamily/./fc-genericfamily.py", line 156, in main
    type=argparse.FileType("w", encoding="utf-8"),
         ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/argparse.py", line 1368, in __init__
    warnings.warn(
    ~~~~~~~~~~~~~^
        "FileType is deprecated. Simply open files after parsing arguments.",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        category=PendingDeprecationWarning,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        stacklevel=2
        ^^^^^^^^^^^^
    )
    ^

Change-Id: I5a9e319562642c94b81076a33433a29ace32f400
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208245
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-07-19 11:04:43 +02:00
Andras Timar 72717f10ef scc translations were moved to sc domain
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iac533ca167082510aef72e93382c1d927aa86fd2
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/6906
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit d4c3edc017f04268a261b9a3a84d728efd63f42c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208253
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-19 10:51:41 +02:00
Andras Timar cb0857fbc4 sccomp and its translations are/will be in sc
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I00b3c61719330decc42e22302f62d7b7a6227367
(cherry picked from commit 7b7fa27178f49b7f7b767528f4819652c3e3e545)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208252
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-07-19 10:51:30 +02:00
Andras Timar 5ecc5c1ad7 sccomp has been removed from engine
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia6691ce57969507ab5cb2994ceeff8edfedad80e
(cherry picked from commit a88b15ce2e927b7a0d3a01ce915313472e52a237)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208251
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-07-19 10:51:23 +02:00