Commit graph

495033 commits

Author SHA1 Message Date
Stephan Bergmann
75fe059974 Embind: throwUnoException from JS
(If throwUnoException directly took a css::uno::Any argument, JS client code
would need to create one with `new Module.uno_Any(...)` and call .delete() on
it, but there is no place where it could call .delete(), so make
throwUnoException take two arguments instead and assemble the css::uno::Any on
the C++ side.)

Change-Id: Iae4ae6af804354d5cf752115e272b79d61427440
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166253
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-04-18 22:16:33 +02:00
Miklos Vajna
4322ec8f8f CppunitTest_sw_uibase_docvw: turn on set_non_application_font_use
Similar to commit dc4d7500c9 (Fix
CppunitTest_sd_import_tests-smartart non_application_font_use,
2023-10-23), though this didn't find anything.

Change-Id: I775e984410c1e25fb1ae09a9ddfa09793a4f9bb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166231
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-04-18 21:51:08 +02:00
Mike Kaganski
3f0220f18a Handle empty range properly
Since commit 690526f95e
(Generalize basegfx::fround for templated return type, 2024-04-14),
an assertion could fail for certain case, like

include/o3tl/unit_conversion.hxx:75: sal_Int64 o3tl::detail::MulDiv(I,
sal_Int64, sal_Int64) [I = long]: Assertion `isBetween(n,
(SAL_MIN_INT64 + d / 2) / m, (SAL_MAX_INT64 - d / 2) / m)'

The problem was unchecked case of empty B2DRange.

Change-Id: Ice9125ea557b73a7fabf64bc1ad9368f503ad525
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166101
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-04-18 21:28:16 +02:00
Stephan Bergmann
edfe8adcec Embind: call decrementExceptionRefcount upon catching
The note at
<https://emscripten.org/docs/porting/exceptions.html#handling-c-exceptions-from-javascript>
is a bit vague whether decrementExceptionRefcount would only be needed for
Wasm-based (-fwasm-exceptions) exceptions, or also for the JS-based
(-fexceptions) ones that we currently use.  (But it does state clearly that for
the latter we need to manually call incrementExceptionRefcount first.)

Change-Id: I7714935607c990385f68730d02e367e70fa0ea03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166250
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-04-18 20:58:50 +02:00
Caolán McNamara
fbaeeee7ac crashtesting: crash on export of forum-mso-en4-470772.xlsx to xlsx
similar fix as:

commit 1d5630c5de
Date:   Tue Apr 16 15:21:49 2024 +0900

    pivot: add checks that prevent reading out of vector bounds

Change-Id: I190da7586cff9c7e8dd4011ad61e68abba6ecd53
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166240
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-04-18 20:24:51 +02:00
Mike Kaganski
86a8a3a43b tdf#160594: Use the recommended fallback of 0.5em for ex in font-size
This fixes the error of identical treatment of em and ex in font-size,
which violated https://drafts.csswg.org/css-values-4/#font-relative-length.
The fix uses the fallback of 0.5em for ex, similar to the code used in
SvgNumber::solveNonPercentage. A follow-up should implement the correct
use of "x-height of the first available font".

Change-Id: Id9d581994e158d629d9752299ad93ac7e9fe4cad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166234
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-04-18 18:21:15 +02:00
Mike Kaganski
e275726861 tdf#160593: make sure to use current element's font size for em unit
According to https://drafts.csswg.org/css-values-4/#font-relative-length
em is "equal to the computed value of the font-size property of the element
on which it is used". This means, that for an element that defines its own
font-size, attributes like 'dy' using em refer to the new font-size, not to
inherited font-size.

Change-Id: Ie5a013df99a68edddf466e4c0ee5311f6219fcb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166233
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-04-18 18:21:09 +02:00
Balazs Varga
d7214aba95 tdf#160517 - chart odf: import/export formatted chart titles
(main, sub, axis titles) texts properly to/from odf format.

Fix odf export of formatted chart titles. The exported data structure
will look like:

<chart:title svg:x="3.304cm" svg:y="0.285cm" chart:style-name="ch2">
    <text:p>
        <text:span text:style-name="T1">This</text:span>
        <text:span text:style-name="T2"> is</text:span>
        .
        .
        .
        <text:span text:style-name="T3">3</text:span>
        <text:span text:style-name="T2"> a </text:span>
    </text:p>
</chart:title>

Fix import of formatted chart titles. Put the properties and related texts
into the chart2::XFormattedString2 uno objects.

Follow-up commit of:
55e9a27afd
Related: tdf#39052 - chart ooxml: export formatted chart titles

4f994cec38
tdf#39052 - Chart: make characters formatable in editable chart textshapes

--
TODO: chart data point / dataseries labels are handled differently
since those are not editable objects, but that is a completily different
issue.
--

Change-Id: I1842f2c69c132bdf578bb2d354f451cc9d49c63c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166122
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2024-04-18 18:07:57 +02:00
Xisco Fauli
176406a07e svgio: factor out common code
Change-Id: Ib86f04364593546f53419b37d35469c561561aa1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166188
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-04-18 17:24:10 +02:00
Stephan Bergmann
830ec75f2f Embind: We no longer need interface FromAny ctor
...now that we have uno_Any get() since 8428368d79
"Improve Embing'ing of UNO Any somewhat"

Change-Id: I06572e1ca152117c5c93a1552e50b1399af84780
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166244
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-04-18 17:13:28 +02:00
Olivier Hallot
191d7d251d Update git submodules
* Update helpcontent2 from branch 'master'
  to 7e29cad08d812997ae5053444c86edf1c8c971d4
  - Use svg icons in Help page
    
    Change-Id: I1418d54df7393321e79706d4885af50e6fdea59b
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/166249
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-04-18 16:39:18 +02:00
Olivier Hallot
c8f2cca985 Update git submodules
* Update helpcontent2 from branch 'master'
  to 9e32990654d9b4ad397f6e0d21973483b1bf47f9
  - tdf#86427 automatic label detection explanation
    
    + refactor a warning and cross-link between option pages and guide.
    
    Change-Id: I0f337c4999d41a96355422540da4d173f02b5a21
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/166252
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-04-18 16:38:36 +02:00
jucasaca
7edca7dc74 tdf#158056 Connect to MS Access .mdb files by mean of ACE.OLEDB.12.0 provider
* Modify the code so that all connections to MS Access files, both .mdb
and .accdb are made with the provider "Microsoft.ACE.OLEDB.12.0".
* Remove all references to the "Microsoft.Jet.OLEDB.4.0" provider to clean
up the code.
* Leave only one entry "Microsoft Access" in the Connection Wizard, which
would work for .mdb and .accdb files.
* Remove the entry "Microsoft Access 2007" from the Connection Wizard,
since it is no longer needed.

Change-Id: If523712d071199d61e0c994b35291d3a69246ad1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165756
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-04-18 16:19:04 +02:00
Noel Grandin
e1268721d4 tdf#160706 speed up loading conditional formatting rule in XLS (3)
the comment when calling MakeCellStyleSheet does not match the
implementation, so make the implementation match the comment.
i.e. if there is an existing stylesheet with that name, just return it.

Reduces load time for me from 47s to 33s

Change-Id: If1bd08baf8515933b87c075d9eef04bc0a125357
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166241
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-04-18 15:42:01 +02:00
RMZeroFour
68c04836ab tdf#160084 Simplify comparing with zero when using fTools
As part of the efforts in #160084 to simplify parts of the codebase
by replacing basegfx::fTools::more/less calls with direct comparisions
against zero, this commit performs the changes in a few files in the
drawinglayer/ module.

PS-2: Fix wrong identifier, courtesy of an accidental backspace press...

Change-Id: I52a183dda5ae11989f8ffc8b26ff16ac77d6ebb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165600
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-04-18 15:19:33 +02:00
Caolán McNamara
42c235fe8a Related: tdf#160056 use simple ref count for temp double tokens
Change-Id: I268a20fb4f87c62f2344f1b518a3a79ac3e8b55e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166232
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-04-18 14:40:21 +02:00
Tomaž Vajngerl
92edab3d95 tdf#160016 tdf#160704 Set the direction from src in StretchAndConvert
The direction of the BitmapBuffer was never set, so it defaulted
to BottomUp. The best is to set the direction to be the same as
source - It's unlikely they would be different.

Regression from 6588c30ed4
"vcl: separate scanline direction from ScanlineFormat"

Change-Id: I0e02106309141d09160defee0a0d72d34642a6ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166182
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-04-18 14:11:26 +02:00
Sarper Akdemir
efef507cfd tdf#33603: make the notes pane handle placeholder text on focus
Change-Id: Id2bca2b8a8bafa9da44a5f97a8e763b512078ef7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166152
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir.extern@allotropia.de>
2024-04-18 13:48:28 +02:00
Olivier Hallot
91f41cd463 Update git submodules
* Update helpcontent2 from branch 'master'
  to 23abe69086280eabf5e160fa0e847bbe28d3ff2a
  - tdf#130185 Clarify font embedding properties.
    
    Change-Id: Ic612b41019edafe266bc324cf137b40e0f0b62bd
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/166190
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-04-18 12:33:13 +02:00
colton Garrett
3908011762 Update git submodules
* Update helpcontent2 from branch 'master'
  to 79b57de908932267b64efeec42002431417eb965
  - tdf#137292 (Part) Paragraph Signature Help page.
    
    Change-Id: I2786dd736903426d62a6ee88d4c79265ce4bfed4
    Signed-off-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/166187
    Tested-by: Jenkins
2024-04-18 12:32:46 +02:00
Kira Tubo
abab2d24b3 tdf#156546: sw unit test: freeze redo insert table
Unit test checks if writer freezes when the user performs redo on
table inserted into a new document.

Change-Id: I9d48f32a1ef27deb01c8042a68c21b0be20f2d05
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165919
Tested-by: Jenkins
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-04-18 12:20:54 +02:00
Stephan Bergmann
560989ff89 external/argon2: Adapt vcxproj to Debug|ARM64
Change-Id: I3a881c56859d5db36ee13a63aec6926d0e3f2638
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166230
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-04-18 11:55:00 +02:00
Taichi Haradaguchi
18a7f0aaad xmlsecurity: Change spelling from "Certification" to "Certificate"
Unify the terms used in the View Certificate dialog.

Change-Id: I820e4f246d2efc235794745bbd889540a39231eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166175
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-04-18 11:16:22 +02:00
Armin Le Grand (allotropia)
052c668da3 tdf#160669 IASS: flush Prefetch for SLideShow as needed
Change-Id: I3c0e2be658358ab5b412ab18cce197eb28e5c0db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166177
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-04-18 11:12:40 +02:00
Xisco Fauli
f1c8804636 libwebp: Upgrade to 1.4.0
Change-Id: I196316b0c7efbe27c06b8dfed90db5248db6dce4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166185
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-04-18 09:47:21 +02:00
Noel Grandin
828c1999e0 move writerfilter inside sw
writerfilter wants to convert incoming RTF and OOXML files into
writer's document model. But it currently has to do so by
manipulating the limited subset that we expose through the UNO
API.

This is both slower and less accurate than having access
to the full document model.

So move it inside, and then we can strip out various hacks, and
optimise imports.

Change-Id: Ie1114d28130ef5f9a786531bc552cb8ee7768015
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165953
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-04-18 09:16:12 +02:00
Oliver Specht
8e86df886f tdf#160621 Redesign name and value fields in variabe fields dialog page
The space available in the bottom of the dialog page
is now used to make the input fields longer

Change-Id: If936decbcc44ff356095fc291ff8306084c248ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165952
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-04-18 08:56:12 +02:00
Tibor Nagy
d129495bb1 tdf#160698: fix crash after opening print dialog
Regression from I5a0ab3d781b21eff575afaebb233237eff1827d5
"tdf#155218 sc: fix regression page orientation in print dialog"

Change-Id: Iccdd8a6eefcadea963a1ffec61c0bcf798931fcd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166197
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
2024-04-18 08:34:48 +02:00
Mike Kaganski
3e38fdacba Optimize a bit, to avoid a copy of the vector
Change-Id: I747662e346151e2e055cb803278c2a6c7709f273
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166166
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-04-18 08:18:21 +02:00
Noel Grandin
00c13dfcdb Simplify DxfContext
(*) we don't need two fields, they are both serving the same purpose
(*) we don't need to check for null, the field is never null

Change-Id: I98c69de399ac463c9bfd32cde450941e04ac92cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166186
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-04-18 08:14:17 +02:00
Noel Grandin
5060893f0b tdf#160706 speed up loading conditional formatting rule in XLS (II)
Reduce the work we do in IndexedStyleSheets::Reindex

takes my test document from 117s to 48s

Change-Id: I2e23b05684d0f2e3a9dc05c0a0fc4e9bbea7008d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166180
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-04-18 08:14:06 +02:00
Stéphane Guillou
eeeff49f40 Update git submodules
* Update dictionaries from branch 'master'
  to 8c5b63124f5cedf97ed4799560fdd1202f039511
  - tdf#157716 rename 'Language Settings' to 'Languages and Locales'
    
    ... for bundled dictionary dialogs. The string still exists in
    various README files but prefer not to touch because some refer
    to OpenOffice dialogs, others could be fixed upstream (e.g.
    lv_LV), and some are explicitly legacy (it_IT).
    
    Also remove pt_BR hardcoded translations.
    
    Change-Id: I9dce059fc5e6fa6553c2acc16d2b6285bced72e3
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/166137
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
    Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2024-04-18 07:54:26 +02:00
Tomaž Vajngerl
3b50c9f549 pivot: test for issue when pivot table format not matching data
Fix was added with [1][2] and this adds the tests to make sure
this keeps working in the future.

[1] 1d5630c5de
[2] https://gerrit.libreoffice.org/c/core/+/166138

Change-Id: I0a7e62ee6139cc5334c03e7022ce49306d578e1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166149
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-04-18 01:33:36 +02:00
Caolán McNamara
589fb36b66 add Spell state to impress RenderState like we do for calc/writer
Change-Id: I1adfef0fa7220d93b096fbe4b86d0c04b2e5547e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166099
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-04-17 21:53:51 +02:00
Michael Weghorn
58de3a5f1c wina11y: Drop unnecessary null check and make static
`AccObject::GetMAccessibleValueFromAny` converts an
Any to a string representation, which is unrelated
to any class members, so drop the null check for the
`m_pIMAcc` member and make the method static.

Change-Id: I07216f87c0fadbe239d1e16a048e2799cebac7bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166184
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-04-17 21:33:06 +02:00
Stephan Bergmann
89610c2176 Embind: Clean up JS UNO obj implementation in embindtest.js
We don't need a dedicated implXInterface, any other interface derived from it
works as well.  But we should arguably implement css.lang.XTypeProvider.  Which
in turn requires two sequences, which need to be eventually .delete()'ed, so add
impl* for them.  And while at it, rename refcount to implRefcount for
consistency.

Change-Id: I8cfd0df74058383bd432e2a6a86f7f2039a87ffb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166181
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-04-17 20:40:54 +02:00
Noel Grandin
dac30c44c6 tdf#160706 speed up loading conditional formatting rule in XLS
we only need to finalizeImport on the last ExtDxf we loaded, otherwise
we end up with an O(n^2) performance problem

Change-Id: I566ef43189a1bb7ac7c55e1bccf9445c9cea19b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166179
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-04-17 19:40:22 +02:00
Omkar Santosh Nikam
681e113fae tdf#143148: Use pragma once instead of include guards
Change-Id: I2beda26661abb57ffa7b7d6e404eb5f5a26ca5b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166162
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-04-17 17:53:54 +02:00
Omkar Santosh Nikam
123fdb0c7a tdf#143148: Use pragma once instead of include guards
Change-Id: I84080f2b647ccdd91fa44401b4edae4bf31a92a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166167
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-04-17 17:53:30 +02:00
Pranam Lashkari
11ae1cf4e4 sw lok: .uno:SetDocumentProperties: add file size parameter
problem:
in LOK/online to support async save, files in jails may have
different extensions (ie: .upload, .uploading)
this caused problem to detect files as original file name may not exist.
As result property like file size were always set to 0

Change-Id: I552aef203297470d01032659a266210970129e66
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165769
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit aa4e10efc6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166171
Tested-by: Jenkins
2024-04-17 13:32:27 +02:00
Jonathan Clark
fb94cc0d13 tdf#49885 Reviewed BreakIterator customizations
This change completes the review of BreakIterator rule customizations,
and adds unit tests for relevant customizations.

Change-Id: I06678fcccfc48d020aac64dd9f58ff36a763af30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166017
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2024-04-17 13:27:57 +02:00
Laurent Balland
47187acee7 tdf#129701 Follow-up of previous change
According to comments in https://gerrit.libreoffice.org/c/core/+/163536
Follow-up of previous change

Change-Id: Icd7b6798d6ef35ca9574125cd3d4c4d89044569c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166133
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2024-04-17 13:05:52 +02:00
Miklos Vajna
c53b3f0877 CppunitTest_sw_rtfexport3: avoid DECLARE_RTFEXPORT_TEST
No need to go via Writer-specific macros here.

Change-Id: I5cc93ca6ee7bfc2f14d90edfe837a14c182bc73c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166169
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-04-17 12:18:19 +02:00
Xisco Fauli
c61aeb5b87 svgio: map all 'in' keywords to target for now
Change-Id: I18d6c839c4005e4052397c4f6682d78c664d25ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166145
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-04-17 09:22:44 +02:00
Caolán McNamara
e16730a87c ofz#68081 keep within bounds
Change-Id: Ib7f11f2447d5a2cc6b9b559727f2a0127c15913e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166154
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-04-17 09:18:17 +02:00
Andrea Gelmini
1bfdf89dcf Fix typo
Change-Id: I64398416dcad6b573cb2eeb2089a43bf42f5bed3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166163
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-04-17 09:18:09 +02:00
Ashwani5009
c72cfece6a Simplify nested for loops
Nested for loops are replaced with direct distance checking between
triangle vertices. The goal is to improve the code readability and
efficiency in AddTriangleVectorToBody() function.

Change-Id: I753253031738d49e7910f20110da7da07a10cb1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165863
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Hossein <hossein@libreoffice.org>
2024-04-17 08:55:12 +02:00
Michael Weghorn
0425b6eb47 tdf#160695 wina11y: Send status change events for toolbar buttons
When the checked or indeterminate state of a toolbar button
changes, forward the corresponding UNO a11y event as
a corresponding MSAA event.

For roles `AccessibleRole::PUSH_BUTTON` and
`AccessibleRole::TOGGLE_BUTTON`, `AccObject::GetMSAAStateFromUNO`
uses `STATE_SYSTEM_PRESSED` instead of
`STATE_SYSTEM_CHECKED`, so also use
`UnoMSAAEvent::STATE_PRESSED` for the event.

It's unclear why sending of such events would generally
be omitted for "special toolbar items" previously.

The events can be used to implement announcement of
toggled font attributes in NVDA, e.g. when the "Bold"
button in the formatting toolbar is toggled via a keyboard
shortcut, similar to how Orca does it (s. tdf#123864).

Related NVDA issue for which I plan to submit a PR: [1]

[1] https://github.com/nvaccess/nvda/issues/4248

Change-Id: Ic2846e338802c3cb7656de5b77e4df23bd5b0703
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166155
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-04-17 08:07:17 +02:00
Stephan Bergmann
d304fdb336 Embind: css::uno::Type should probably use sharing_policy::NONE
Given the reasoning in 0957ee9f5d "Embind: No need
for $query", those sharing_policies appear to be (solely) about upcasting of
those smart pointers, and css::uno::Type doesn't involve any class hierarchies,
so NONE ("no upcasting", in genericPointerToWireType in Emscripten's
src/embind/embind.js) appears to be the best match here.

Change-Id: I74b74d3c31cc17a7fd0a6d072160316e60884557
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166160
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-04-17 07:56:09 +02:00
Mike Kaganski
96f62b48b4 Simplify a bit
Change-Id: Iadfa442f762aa3caf3a8de7f3633be4e73bfd91a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166091
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-04-17 06:40:40 +02:00