Commit graph

491452 commits

Author SHA1 Message Date
Caolán McNamara
4d01186dce cid#1546472 COPY_INSTEAD_OF_MOVE
and

cid#1546459 COPY_INSTEAD_OF_MOVE
cid#1546452 COPY_INSTEAD_OF_MOVE
cid#1546403 COPY_INSTEAD_OF_MOVE
cid#1546396 COPY_INSTEAD_OF_MOVE
cid#1546394 COPY_INSTEAD_OF_MOVE
cid#1546338 COPY_INSTEAD_OF_MOVE
cid#1546324 COPY_INSTEAD_OF_MOVE

Change-Id: If61457cfaf1d7ce4a069bcecdc0cc657aeb43c68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160445
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-08 09:33:59 +01:00
Caolán McNamara
6c91e70335 cid#1546475 std::swap COPY_INSTEAD_OF_MOVE
Change-Id: Ic5325a85deb370db2091e5ce5209b6408a8652bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160444
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-08 09:33:52 +01:00
Caolán McNamara
950d8b640a cid#1546501 COPY_INSTEAD_OF_MOVE
and

cid#1546486 COPY_INSTEAD_OF_MOVE
cid#1546485 COPY_INSTEAD_OF_MOVE
cid#1546484 COPY_INSTEAD_OF_MOVE
cid#1546482 COPY_INSTEAD_OF_MOVE

Change-Id: I53cc622f16afc0f57ffd72e3e0a6f18e390fbb83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160443
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-08 09:33:45 +01:00
Michael Stahl
2f12d5bb9c xmlsecurity: deploy asserts in OCipherContext
Missed a special case in previous commit, in case the input is
completely empty and PK11_DigestFinal() doesn't see a problem with it,
aResult could be empty too.

Change-Id: I8ea900774ae390857307ec5bab38876bead6bc86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160441
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-12-08 09:31:42 +01:00
Balazs Varga
cb099da392 tdf#158466 - UI: Part 49 - Unify lockdown behavior of Options dialog
for Calc - View Page.

Change-Id: I75fcb41b82c4946812d27dd364ffef8eb3086c0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160439
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2023-12-08 08:27:03 +01:00
Stephan Bergmann
ad6ba4a3a6 external/libnumbertext: Silence -Werror,-Wdeprecated-declarations
...when building against LLVM 18 trunk libc++,

> In file included from Numbertext.cxx:6:
> ~/llvm/inst/bin/../include/c++/v1/locale:3772:1: error: 'wstring_convert<std::codecvt_utf8<wchar_t>>' is deprecated [-Werror,-Wdeprecated-declarations]
>  3772 | wstring_convert<_Codecvt, _Elem, _WideAlloc, _ByteAlloc>::
>       | ^
> ~/llvm/inst/bin/../include/c++/v1/locale:3649:17: note: in instantiation of member function 'std::wstring_convert<std::codecvt_utf8<wchar_t>>::to_bytes' requested here
>  3649 |         {return to_bytes(__wstr.data(), __wstr.data() + __wstr.size());}
>       |                 ^
> Numbertext.cxx:164:22: note: in instantiation of member function 'std::wstring_convert<std::codecvt_utf8<wchar_t>>::to_bytes' requested here
>   164 |     return converter.to_bytes( s );
>       |                      ^
> ~/llvm/inst/bin/../include/c++/v1/locale:3591:28: note: 'wstring_convert<std::codecvt_utf8<wchar_t>>' has been explicitly marked deprecated here
>  3591 | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wstring_convert
>       |                            ^
> ~/llvm/inst/bin/../include/c++/v1/__config:942:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
>   942 | #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
>       |                                         ^
> ~/llvm/inst/bin/../include/c++/v1/__config:915:49: note: expanded from macro '_LIBCPP_DEPRECATED'
>   915 | #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
>       |                                                 ^

(The warning is apparently only emitted late during compilation when
instantiating template code, so extending the existing `#pragma GCC diagnostic
push/pop` area did not work, and the `#pragma GCC diagnostic ignored` rather had
to be enabled all through to the end of the TU.)

Change-Id: Iffc1c468426407e3252724d18f358b9923f7f733
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160437
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-08 07:31:54 +01:00
Tomaž Vajngerl
a010567c2c tdf#126084 document OOXML SVG tests and import
Change-Id: Ief29d04f2f0693a4cdfa44c7c100ac6164da38f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160378
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-12-08 03:55:42 +01:00
Kira Tubo
7081b28dd6 tdf#143148 Use pragma once instead of include guards
Replace include guards with #pragma once

Change-Id: Id7378d6cf43817a8501a314dd8614467fb10e33a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160417
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-12-08 03:32:20 +01:00
Andrea Gelmini
31e6767d43 Remove duplicated include
Change-Id: I9c0f1e9188c731077f57b6adaf8208bc8c84d829
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160438
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-12-08 03:31:32 +01:00
Patrick Luby
5ff701226b Related: tdf#155266 force flush after drawing native scrollbars
When scrolling on some Intel Macs either via dragging
the scrollbar thumb or via swiping the trackpad with two
fingers, final repaint of scrollbars doesn't appear to
get flushed to the screen. It appears that scrollbars
aren't updated and repainted until after a batch of
native scroll events have been dispatched. On slower
machines, this lag is long enough that any pending
forced flushes have already been done so when the timer
that repaints scrollbars finally fires, the repainted
scrollbars won't get flushed to the native window until
the next normal flush which may not occur until seconds
later.

Change-Id: Iadef6812cd2495a28347560caae81f604c908b51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160440
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@libreoffice.org>
2023-12-07 22:36:22 +01:00
Christian Lohmaier
573f61fdb0 update credits
Change-Id: I6bb7de64be70c68362169ae459cffa37478395b1
2023-12-07 22:03:27 +01:00
Michael Stahl
328b135f0d xmlsecurity: check for errors in OCipherContext::Create()
If this function returns null, storing a document will proceed without
reporting an error to the user, and lose all the data.

Change-Id: I0f9fd53702321e7997b28e12eb5bed3349bbcc13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160435
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-12-07 21:46:00 +01:00
Christian Lohmaier
1c93df52e5 Update git submodules
* Update translations from branch 'master'
  to 193b35fe99d7112b6a2b9c8077bbca6471326db3
  - update translations for master/24.2.0 beta1
    
    and force-fix errors using pocheck
    
    Change-Id: Ie89030ffdc21fe71f753b07ea11bbf838e91417c
2023-12-07 21:37:15 +01:00
Samuel Mehrbrodt
8a28201933 tdf#158576 Require viewing the certificate
before adding it to the list of trusted certificates.

This prevents certificates from being thoughtlessly
added to the list of trusted certificates.

Change-Id: Ifd0273df39f13432ebad72f1289ede0e6e7a8d5c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160427
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2023-12-07 18:59:20 +01:00
Xisco Fauli
f47ad18cba tdf#158223: chart2_uichart: Add unittest
Change-Id: I11e20682155c524fcc119701111f5bc91f6beed8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160404
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-12-07 18:56:02 +01:00
Caolán McNamara
12b96aca86 cid#1546503 Using invalid iterator
and

cid#1546284 Using invalid iterator
cid#1546275 Using invalid iterator
cid#1546049 Using invalid iterator
cid#1545929 Using invalid iterator
cid#1545870 Using invalid iterator
cid#1545668 Using invalid iterator
cid#1545420 Using invalid iterator

Change-Id: I3ad3000631b4be5917b9c5f49f21b8cc003a309c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159056
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-07 18:22:46 +01:00
Thorsten Behrens
caea33a11a Turn on MAR-based updater for Win64
But make it default-off for the while.

Change-Id: I54e2fb8544ceb5ffe88053504294e2f3d5df50d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160436
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-12-07 18:20:02 +01:00
Michael Stahl
c218b7eab5 xmlsecurity: W3C padding max size is the block size
Change-Id: I90c48aafd11deb2895d01c90764fc433a9161e07
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160434
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-12-07 18:01:49 +01:00
Stanislav Horacek
e89c2a5ae1 Update git submodules
* Update helpcontent2 from branch 'master'
  to 95ebe8994002023b90215765f0d0cbd946a25f89
  - rows are shown by clicking on rows headers
    
    Change-Id: I34ac6fd200964eac8bd83d4b49694a45480095de
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/160403
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-12-07 17:55:50 +01:00
Caolán McNamara
b36a8a532b busy loop seen on ods export attempt
ScXMLExport::ExportFormatRanges cannot advance because nMaxCols is 0
so busy loop and no progression

In ScRowFormatRanges::GetMaxRows, aRowFormatRanges is empty which is why
nMaxCols is 0

In ScFormatRangeStyles::GetFormatRanges aTables appears to be 30 empty
items.

But why it is empty can't be seen from the bt.

Force this to be an assert to ensure crashtesting can flush out this
case, rather than letting it get killed off as a timeout.

Set this case as an error and break so failure results in an error
message of failure to save instead of a hang.

Change-Id: I827e1e638cddd976a48340f86741c21075afe856
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160363
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-07 17:26:35 +01:00
Laurent Balland
0b504bb12e tdf#158500 missing style Object with no fill no line
Style "Object with no fill no line" was not correctly treated during
automatic translation to UI language

Change-Id: I9364b25e326387110af81494d7fa5e4c05b5f972
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160262
Tested-by: Jenkins
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
2023-12-07 16:56:36 +01:00
Gabor Kelemen
83cc8ef8f8 [API CHANGE] Drop unused SnapGrid/[X,Y]Axis config groups
from Impress/Draw

last mention of them was removed in 2006 by:
commit deef3fdfd9

removing a commented out caller
that was already commented out by "initial import" time

Change-Id: I50fefe42a92c752727dfbf3b9d7c645492d034da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160190
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-12-07 16:53:24 +01:00
Laurent Balland
c805fac171 tdf#158250 Candy Impress template: replace picture
Contribution from Jérôme Bouat
Replace 24 bits color picture by 8 bits color picture

Change-Id: If4f2f3a75f475a9dc0b43be4e0e8afdb98a0eaa8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160256
Tested-by: Jenkins
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
2023-12-07 16:48:32 +01:00
Stephan Bergmann
5d2c5b09c9 GUI to en-/disable the --enable-online-update-mar feature at runtime
...sharing the existing option tab page for the traditional
--enable-online-update feature

Change-Id: Ic7b04bf15bf841a46a96d62cf5a857deaa399428
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160430
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-07 16:26:46 +01:00
Alain Romedenne
a7af3df528 Update git submodules
* Update helpcontent2 from branch 'master'
  to e14d56e82ecb749cbb965dfaca447c72d9a3ca04
  - sf_toc updates
    
    - Old missing properties
    - New properties
    
    Change-Id: I7e95dcf99917bfddc7c478e7ff068f3adad190d3
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/160364
    Tested-by: Jenkins
    Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2023-12-07 15:53:19 +01:00
Alain Romedenne
5935620f27 Update git submodules
* Update helpcontent2 from branch 'master'
  to 77f51afc9223e752950b42306385cbbcbdf24473
  - ScriptForge (SF_Document) new XDocumentSettings property + Styles management + Toolbars
    
    Change-Id: I3c9b979a26a44aadb8dff0ab18122e1fb32ccb2a
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/158903
    Tested-by: Jenkins
    Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2023-12-07 15:52:48 +01:00
Balazs Varga
ea0f4d7414 tdf#158465 - UI: Part 48 - Unify lockdown behavior of Options dialog
for Calc - Defaults Page.

Change-Id: I813469c6e56f0bd148afb17644853116e4ae0398
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160419
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2023-12-07 15:06:38 +01:00
Jim Raykowski
c58efbfce1 use std::erase_if instead of std::remove_if + std::erase
Change-Id: Ib505c89d224c9d8418ff3b1138f26d3d6e576120
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160406
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2023-12-07 14:02:03 +01:00
Stephan Bergmann
b17d051ad5 Make --enable-online-update and --enable-online-update=mar orthogonal
...by turning the latter into its own option --enable-online-update-mar.  (The
intention is to potentially have the experimental --enable-online-update-mar
configured in alongside any traditional --enable-online-update, and have it
disabled by default at runtime---for which some configuration is needed and
which is forthcoming.)

Change-Id: Id53b4f52b310da472b305c8b23c1e2ba1931296d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160424
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-07 13:42:15 +01:00
Balazs Varga
308d822bf6 Resave with newer Glade version
Change-Id: I252b2a2a51a12463fb2ffc764c2531ac8d5f723c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160418
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2023-12-07 13:13:17 +01:00
Sarper Akdemir
8d3ac3968e tdf#158375: add expert option to disable active content
adds new expert option DisableActiveContent

Right now only disables active embedded content / OLE.

If OLE content is being imported via
UNOEmbeddedObjectCreator::createInstanceInitFromEntry with the
expert option DisableActiveContent set, the imported OLE object is
now forced to be ODummyEmbeddedObject.

ODummyEmbeddedObject doesn't implement any other state then
embed::EmbedStates::LOADED (i.e. doesn't implement RUNNING,
ACTIVE etc.) which makes it possible to prevent the imported OLE
object becoming active.

The functions that now throw lang::NoSuchElementException are
usually called on new creation of embedded content via UI. But
since the call sites expect the possibility of embedded content
failing to initialize, that is handled by showing a popup stating
some form of `unable to insert`.

A follow-up improvement of disabling insertion of OLE content via
dialogs could be implemented.

Change-Id: Ib558a2a129b491798f5036a7bb269116545be75d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160402
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir.extern@allotropia.de>
2023-12-07 13:07:17 +01:00
Caolán McNamara
bfbae5ddd5 cid#1558798 Unchecked return value
Change-Id: Iddb702f40ced018c104a8a42847bc396ba258ff8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160420
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-07 12:29:32 +01:00
Caolán McNamara
49d88e99a2 cid#1545320 Unused value
Change-Id: I772a5d7608b92634b7cfed1c1e1730eab34bee89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160421
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-07 12:29:19 +01:00
Sahil
0e942c11e0 tdf#33201 Move Cell position logic inside the function
Previously to Highlight some cell's row/column, one had to
get the current cell cursor position, and pass it to HighlightOverlay(),
but now that is not required.

Change-Id: I4d08bf1fa84fcbd4820fd166c1d137bd3d950413
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160151
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-12-07 12:03:17 +01:00
Noel Grandin
a214ac6774 simplify and modernise ScopedBitmapAccess
(*) Make all of it use a "Scoped" paradigm
(*) pass by value, no need to allocate on heap
(*) make all of the construction go via the *Access constructors, instead of it being some via the constructors and some via the Acquire*Access methods.
(*) take the Bitmap& by const& in the constructor, so we can avoid doing const_cast in random places.

Change-Id: Ie03a9145c0965980ee8df9a89b8714a425e18f74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160293
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-12-07 09:32:14 +01:00
Michael Stahl
7101c62085 sfx2: simplify SetCommonStorageEncryptionData() calls
Some of these look redundant, as SfxMedium::GetStorage() already does
this earlier.

Change-Id: Iba178196898adfd4ee260da908c7298f3f2c1734
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160408
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-12-07 09:28:50 +01:00
Michael Stahl
3b347664b2 tdf#105844 package,sfx2: wholesome ODF package wrapping encryption
Redo the ODF encryption by storing an ODF package and wrapping it as a
stream "encrypted-package" in another ODF package, such that there is
only one encrypted stream - this requires only one KDF computation.

* This is only enabled in Experimental mode for now.

* Avoid storing unencrypted data in the pTempFile of SfxMedium, as it
  is usually created in the same directory as the target file, which
  may be on a network share or similar less trusted location.

* SfxMedium::SetEncryptionDataToStorage_Impl() should just set an
  error status if it fails (how can it fail anyway)

* when loading a document, SfxDocPasswordVerifier extracts an encrypted
  inner package (by calling SfxMedium::TryEncryptedInnerPackage())

* SfxMedium::GetStorage() automatically decrypts an encrypted inner
  storage and sets it as the SfxMedium's xStorage

* when storing a document, SfxObjectShell::SaveTo_Impl() creates
  the wrapped storages

* One challenge is to keep the macro/scripting signature working; this
  can only be put in the inner storage, whereas the document signature
  should continue to be on the outer storage; also it must use a Zip
  storage, to see the "META-INF" directory.  This needs a new
  SfxMedium::GetScriptingStorageToSign_Impl() and changes in
  SfxMedium::SignContents_Impl().

Change-Id: Ibfee36ce3a9cd030f2aa2ce1484b6d001cba2389
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160401
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-12-07 09:28:38 +01:00
Michael Stahl
f6536f4db6 some cosmetic improvements, better warnings
Change-Id: I05a7eeb74088c278aab94519c7f53b0482e38058
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160400
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-12-07 09:28:08 +01:00
Stephan Bergmann
0f32809a86 Adapt consteval failure check to recent GCC 14 trunk
...which happens to accept the original check from
af34108d90 "Use C++20 consteval for the
Color(sal_uInt32) ctor" now, but would still fail to compile the actual code at

> In file included from xmloff/source/chart/ColorPropertySet.hxx:23,
>                  from xmloff/source/chart/ColorPropertySet.cxx:20:
> include/tools/color.hxx: In constructor ‘xmloff:💹:ColorPropertySet::ColorPropertySet(Color)’:
> xmloff/source/chart/ColorPropertySet.cxx:81:9:   in ‘constexpr’ expansion of ‘((xmloff:💹:ColorPropertySet*)this)->xmloff:💹:ColorPropertySet::m_nDefaultColor.Color::Color(10079487)’
> include/tools/color.hxx:82:11: error: modification of ‘*(xmloff:💹:ColorPropertySet*)this’ is not a constant expression
>    82 |         : mValue(nColor)
>       |           ^~~~~~~~~~~~~~

(see the comment at <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98752#c6>
"wrong "error: ‘this’ is not a constant expression" with consteval constructor")

Change-Id: I3b8b92cd7ba31724cf0c9fe38b6cf8aa2abd7c0f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160405
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-07 09:05:18 +01:00
Stephan Bergmann
d4370db8ce mkdir_p still needed by make create-partial-info
157298bb80 "android and bin/update: make pythonic"
had removed it, so that `make create-partial-info` would now fail at least with

> Traceback (most recent call last):
>   File "bin/update/create_partial_update.py", line 10, in <module>
>     from path import UpdaterPath, mkdir_p, convert_to_unix, convert_to_native
> ImportError: cannot import name 'mkdir_p' from 'path' (bin/update/path.py)

(and no idea if that make target would still do anything useful, beyond this
initial hurdle)

Change-Id: Ib1be3304e2b3468dc187c1b5e24041e68a3677fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160397
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-07 08:57:10 +01:00
Balazs Varga
4022666087 tdf#158464 - UI: Part 47 - Unify lockdown behavior of Options dialog
for Calc - General Page.

Change-Id: I2ff8edd0fb10a3f388459d842c79b157bc3861f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160407
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2023-12-07 08:34:24 +01:00
Samuel Mehrbrodt
030b72df0a tdf#157432 Expert config: Allow filtering by changed values
Change-Id: Ib8bbb7fc9e8014a9367278f3fa640f53af46dd2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159986
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2023-12-07 08:03:36 +01:00
Stephan Bergmann
7575e8afca loplugin:ostr (macOS)
Change-Id: I1b169e0c170c26a49941d22f0982a24ef547f941
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160391
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-07 07:15:25 +01:00
Michael Weghorn
185cd83bf5 sw a11y: Only report "level", no more "heading-level" obj attr
Stop reporting the custom "heading-level" object attribute in
addition to the "level" attribute.
As described in the Core Accessibility API Mappings spec, the
latter is specified in ARIA and maps to an attribute of
the same name for all of AT-SPI2, IAccessible2 and UIA [1].

Get rid of the non-documented "heading-level" as part of the
goal to align more closely to platform APIs/specifications.

NVDA's LibreOffice-specific app module currently relies on the
custom "heading-level" object attribute [2], but I've reported
an issue and submitted a pull request for this: [3] [4]

While neither the "level" nor the "heading-level" attribute are
currently mentioned in the the IAccessible2 object attribute
specification [5], the IAccessible2 doc for
`IAccessible2::groupPosition` [6] explicitly mentions
the "level" attribute for headings:

> This method is meant to describe the nature of an object's containment
> structure. It's exposed by trees, tree grids, nested lists, nested
> menus, but not headings, which uses the level object attribute.

[1] https://www.w3.org/TR/core-aam-1.2/#ariaLevelHeading
[2] 9cf925195e/source/appModules/soffice.py (L225)
[3] https://github.com/nvaccess/nvda/issues/15881
[4] https://github.com/nvaccess/nvda/pull/15882
[5] https://wiki.linuxfoundation.org/accessibility/iaccessible2/objectattributes
[6] https://accessibility.linuxfoundation.org/a11yspecs/ia2/docs/html/interface_i_accessible2.html#a94d4d84e000ef2fa3f2abf1148779941

Change-Id: I8e8994cc7565f9b0f40ca8bedff951512f56b59b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160347
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-12-07 07:10:35 +01:00
Michael Weghorn
90d49b980d sw a11y: Only report heading level attr for heading
Only report the "heading-level" and "level" object
attributes for a Writer paragraph when this paragraph
has a heading level that can be reported as the value
of the object attribute.
No longer report the attribute without any value set otherwise,
since the attribute doesn't provide any value then,
but is rather confusing/misleading.

Change-Id: I282345b00a32a74de229058ff368f3b169bf1c03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160346
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-12-07 07:09:49 +01:00
Patrick Luby
0ddd9f7e05 Related: tdf#155266 skip redisplay of the view when forcing flush
It appears that calling -[NSView display] overwhelms some Intel Macs
so only flush the graphics and skip immediate redisplay of the view.

Change-Id: I7a94a1ada35526c5eda1b793f872e206b4c833ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160399
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@libreoffice.org>
2023-12-06 23:52:49 +01:00
Noel Grandin
c574def363 update tsan suppressions
Change-Id: Ib91f900e93c10225769ba92f4d0819a4084f5847
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160390
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-12-06 20:27:49 +01:00
Noel Grandin
de9667d419 tdf#157915 Error when running a Basic macro with instruction commitChanges
regression from
    commit 1576ef8532
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Thu Dec 23 18:40:44 2021 +0200
    osl::Mutex->std::mutex in SvtCommandOptions

Note that this only fixes part of the issue - specifically the part that
the original reporter described.

There is a further issue, not fixed here, which only happens on
Linux/GTK, where the messagebox dialog manages to end up behind the
About dialog, and consequently cannot be closed, which freezes the
program.

Change-Id: Idbb7f51e494a69886c80eb92efaa7cf7c6911c16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160393
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-12-06 20:27:35 +01:00
Stephan Bergmann
cc3fb303db Fix apparent typo in make create-update-info
157298bb80 "android and bin/update: make pythonic"
had introduced this apparent typo, so that `make create-update-info` would now
fail (and no idea if that make target would still do anything useful, beyond
this initial hurdle)

Change-Id: I63c4e87e06370d99e5d036ce5c7f2a5bda3c1554
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160398
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-06 18:42:10 +01:00
Jean-Pierre Ledure
e8ac98c656 ScriptForge (SF_Root) Fix typos
Suppression of linefeeds in excess
inside english error messages.

Change-Id: I38189e7dcf9d24055e477a5cb6cfeb42644ded39
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160385
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2023-12-06 17:55:57 +01:00