Commit graph

496214 commits

Author SHA1 Message Date
Andrea Gelmini
6f30afeb72 Fix typo
Change-Id: I17f474cc3b749beccc6cce7a8175f46a1f2c646f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167801
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-05-21 22:13:00 +02:00
Andrea Gelmini
0a6f0d7ea7 Fix typo
Change-Id: Id44f05e97f04bfd624f3fe12dc729659183963d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167800
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-05-21 22:12:33 +02:00
Xisco Fauli
1ff9bc004e use SAL_RET_MAYBENULL in GetActiveViewShell()
Change-Id: I739a9be7486978b19f34939c7d6d7bb2d1adbf77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167899
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-05-21 21:36:07 +02:00
Xisco Fauli
860d11230d sc: check GetActiveViewShell()
See the recently introduced
https://crashreport.libreoffice.org/stats/crash_details/3da2dcd1-ca3e-409a-a665-dcb09d2a3ba0

Change-Id: If6ddc71bc2946232d57d5fd8fd6029b45b19495f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167903
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-05-21 21:35:50 +02:00
Leonard Sasse
6138f19537 tdf#158803 F821: remove unused variables and unused imports in librelogo/
Change-Id: I105a72f07d91231aa9ec471701784838e07b0c69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165579
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-05-21 21:12:08 +02:00
Olivier Hallot
26796cc201 Fix typos in sparklines extended tips
Change-Id: I96848ed20e9a6d3e2d18e07c5f781bb98ed72f80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167902
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-05-21 18:47:45 +02:00
Noel Grandin
bc456ccf9f loplugin:ostr in sc/qa
Change-Id: If731102d69667eaaa088cf804a8c7563b24ded5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167893
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-21 18:14:10 +02:00
Michael Weghorn
441d8ed9be tdf#145735 avmedia qt: Use QtMultimedia for Qt 6 media playback
Similar to the way that GTK 4's native facilities for
video playback are used for the gtk4 VCL plugin, initially
added in commit

        commit d0a527ec09
        Author: Caolán McNamara <caolanm@redhat.com>
        Date:   Thu Feb 10 12:55:18 2022 +0000

            first cut at using Gtk4 built in video playback

, implement media playback using QtMultimedia for the
Qt 6 based VCL plugins (qt6/kf6) via a new service
"com.sun.star.comp.avmedia.Manager_Qt".

Video playback with the mechanism used for qt5 no
longer works with qt6, as "qwidget5videosink"
that gets used on Wayland for qt5 wasn't ported
to Qt 6 and is unmaintained, s. the commit message of

        commit 88d57cf241
        Author: Michael Weghorn <m.weghorn@posteo.de>
        Date:   Wed Sep 29 11:09:51 2021 +0200

            qt6: Add a qt6 VCL plugin

for more details. Additionally, this also doesn't work
properly any more on X11/with the xcb Qt QPA platform, see
tdf#145735 comment 7.

Instead of using GStreamer directly, let Qt handle
the low-level stuff by using the QtMultimedia module [1]
instead.

This adds a new dependency on QtMultimedia.
For building, this requires installing the Qt 6 QtMultimedia
development headers (e.g. package `qt6-multimedia-dev`
on current Debian testing).

Except for WASM, the use of QtMultimedia is enabled by
default when building with autogen options `--enable-qt6`
or `--enable-kf6`, but can explicitly be disabled using
`--disable-qt6-multimedia`.

In tests with the qt6 VCL plugin on Debian testing, with a
sample presentation containing an embedded
video, attachment 145517 from tdf#120452, video playback
generally works for both, the xcb and the wayland
Qt QPA platforms:

* Video and audio are played as expected on the external
  screen in presentation mode when using the presenter
  console
* Video and audio playback work in non-presentation
  mode by clicking on the video and using the controls
  in the Impress sidebar (play, pause,...).

However, the following issues were observed with
the current implementation:

* There's an odd frame/margin around the video.
* In non-presentation mode, the placeholder
  shown until the video gets started using the controls
  in the sidebar is just an "audio icon", not a frame
  from the actual video. (This might be related to the
  fact that `QtPlayer::createFrameGrabber` currently
  returns an empty reference.)
* At least on Wayland (issue not observed with
  QT_QPA_PLATFORM=xcb so far), when using the presenter
  console,   video playback in the presenter console (i.e. on the
  non-presentation screen) is unreliable: The video
  sometimes shows, but sometimes doesn't. At least the
  (more important) one on the presentation screen was
  reliably shown in my tests, however.

Tested with git dev versions of qtbase
(as of commit 8d5e7d50d8dbf1ad79bd8ff9f6ef6028eba481c9),
qtwayland (as of commit 6f0ebd916f176f6fbe35af28caeb52b62768ac94)
and qtmultimedia (as of commit
264b7e8d7d5683252102b5e5149685c8b8a70c2d).

[1] https://doc.qt.io/qt-6/qtmultimedia-index.html

Change-Id: I29c3c7ded01c61b49b192fa5c313d8a92c942185
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167869
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-05-21 17:28:04 +02:00
Dione Maddern
4316851ec8 Update git submodules
* Update helpcontent2 from branch 'master'
  to bfc9b74f251bd2aca3605732c30b61bd6715a7eb
  - tdf#160382 Document new features in Slide Show Settings help page
    
    In text/simpress/01/06080000.xhp
    - Added additional index bookmark values to make the page easier to find.
    - Remove screenshot because it does not represent current dialog options
    - Updated the link to the embedded How to get section, to reflect changes to text/simpress/00/00000407.xhp.
    - Added information for the
      -  Live-mode slideshow editing
      -  Buttons size
      -  Enable insecure WiFi connections
      features.
    - Added a heading to the description of the Download App option.
    - Added Related Topics section.
    
    In text/simpress/00/00000407.xhp
    - Added TabUI instructions for accessing Slideshow Settings.
    - Created a new section called "slide_show_settings" to allow multiple paragraphs to be linked.
    
    In text/simpress/guide/presenter_console.xhp
    - Add variable tag to heading so that the page can be easily linked from other pages.
    
    Change-Id: I71a836cefd8f0aa176dfaec0d539f043b1e973c7
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167824
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-05-21 16:57:29 +02:00
Noel Grandin
6725ae0d7d loplugin:ostr in sw/qa/api
Change-Id: Ib8ad745095eceb588e502c44644136d943e79013
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167894
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-21 15:39:35 +02:00
Heiko Tietze
6ddb49bc32 Resolves tdf#160834 - Unclear meaning of "Ignore pieces of length"
Access in the UI removed
Find the options under ooO.Writer.Comparison.IgnoreLength and IgnorePieces

Change-Id: Ic76277ba6838bf5cf858089303f4882bc9a7c2de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167888
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2024-05-21 15:33:34 +02:00
Julien Nabet
7da5bb1ff4 tdf#161190: fix crash when exporting spreadsheet as PDF...
with "whole sheet export" option'

See bt here:
https://bug-attachments.documentfoundation.org/attachment.cgi?id=194240

Change-Id: I453882be5c8bb761a722482f9c94a2b2bb5c7dd4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167890
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-05-21 14:06:48 +02:00
Miklos Vajna
f2ba39c5e7 svx: prefix members of SdrUndoDelPage
See tdf#94879 for motivation.

Change-Id: I6ef4ca1df66f22e4fb6a13a7b39ca0152484fd6f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167883
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-05-21 13:05:42 +02:00
Chris Mayo
4dd9e8fd58 Fix bashism in configure tests for curl and libcmis
When /bin/sh is dash:

./configure: 35165: test: yes: unexpected operator
checking whether to enable breakpad... no
./configure: 35218: test: yes: unexpected operator

Causing HAVE_FEATURE_CURL not to be set to 1 and build to fail:

sw/source/ui/misc/translatelangselect.cxx:160:24: error: no member named 'TranslateDocumentCancellable' in namespace 'SwTranslateHelper'
  160 |     SwTranslateHelper::TranslateDocumentCancellable(m_rWrtSh, aConfig, m_bCancelTranslation);
      |     ~~~~~~~~~~~~~~~~~~~^

Introduced in:

5bf7c2fa57 ("Fix --disable-curl build", 2023-09-14)

Change-Id: Ifbc4bc1a7cde86101ff13b05ec7cee6836798605
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167831
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2024-05-21 12:50:09 +02:00
Tibor Nagy
2e1350593c tdf#69724 Allow to change default bullet symbols in UI
Change-Id: Ife700096fb55ebc752ae289398a36ee78b3e5ccb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167660
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2024-05-21 12:04:25 +02:00
Hubert Figuière
09f23b8c6c cool#9019: draw/impress: disable the Grid for now
So that the grid isn't shown in the thumbnail.
This will need to be reverted later for cool#7406

Change-Id: I01fbc7ebc9e33a27fb866b7ea6dbaaac68ae8f9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167872
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 41130a39ad)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167826
Tested-by: Jenkins
2024-05-21 11:59:02 +02:00
Leonard Sasse
f97944cca2 tdf#158803 pyflakes F821: undefined name 'com' and remove bare except clauses
Change-Id: Id116753a19a4fa5a29ad9a4f61f5ba3bf1ce95d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165451
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-05-21 11:43:46 +02:00
Leonard Sasse
52b08068c9 tdf#158803 compilerplugins: remove semicolons; improve membership checks
Change-Id: Ifd5fdee23e5adba2b5a667f74c38ba6fb28f54b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165446
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-05-21 11:40:31 +02:00
Andrea Gelmini
39f36dc445 Update git submodules
* Update helpcontent2 from branch 'master'
  to 0f39dc88044b1f0c431b90458ff8ae606b05ec67
  - Fix typo
    
    Change-Id: Ia07532dd18408e39d03cfbc8d9125ba89f3e8a1d
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167889
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-05-21 11:36:25 +02:00
Jaume Pujantell
c94a870f22 lok: translate formula bar functions to each locale
On calc the native formula symbols were loaded once on start-up and
assumed to not change.

This adds a map language to symbols when LOK is active and chooses
the correct set of symbols on each call.

Change-Id: I821fb3ad4a06d764399e3fdf4a2ec628909312db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167870
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jaume Pujantell <jaume.pujantell@collabora.com>
(cherry picked from commit 421ef056cf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167825
Tested-by: Jenkins
2024-05-21 11:24:07 +02:00
Tibor Nagy
708d619e32 fix crash when push the Bullets button on the toolbar and then press the
dropdown part of the button

caused by commit I40cfc39501006146f7c6c04a1f3c7cf877c6f1c4
(tdf#161056 Show bullets used in document in bullets dropdown)

Change-Id: I215d7cb677825821917a4fd8c498deaaab9fc9b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167838
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
2024-05-21 11:00:04 +02:00
Miklos Vajna
1ae5ea3f78 tdf#160984 sw continuous endnotes: enable DOCX import
This was working for DOC already.

For DOCX, this was already enabled once with commit
f9982c2406 (tdf#58521 DOCX import: enable
ContinuousEndnotes compat flag, 2021-07-13), but then it was reverted
later with commit commit eeda1b35a6
(Revert "tdf#58521 DOCX import: enable ContinuousEndnotes compat flag",
2021-08-10), because of tdf#143456.

Enable it again, now that the section-based layout seems good enough to
handle larger number of endnotes, e.g. the 48 endnotes from tdf#143456.

Change-Id: Id221f31f9208e84db2c358546d4d6ceea991b6b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167881
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-05-21 10:42:40 +02:00
Leonard Sasse
71f3be3bee tdf#158803 Remove E999: SyntaxError's and some other minor edits
Change-Id: I32d75eb03b1f1fd011dcbc6950bf74800446a422
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165464
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-05-21 09:59:45 +02:00
Michael Weghorn
575ab78504 qt a11y: Don't leak QAccessibleEvent
Create the `QAccessibleEvent`s passed to
`QAccessible::updateAccessibility` as local
stack variables instead of on the heap, to not leak
them, as `QAccessible::updateAccessibility` does
not take over ownership, i.e. doesn't delete them.

This is also what the example in the Qt doc [1]
does.

This fixes leaks reported by Valgrind, for example:

    ==104242== 416 bytes in 13 blocks are definitely lost in loss record 23,612 of 27,514
    ==104242==    at 0x4840F83: operator new(unsigned long) (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
    ==104242==    by 0x186F6884: QtAccessibleEventListener::HandleStateChangedEvent(QAccessibleInterface*, com::sun::accessibility::AccessibleEventObject const&) (QtAccessibleEventListener.cxx:144)
    ==104242==    by 0x186F8478: QtAccessibleEventListener::notifyEvent(com::sun::accessibility::AccessibleEventObject const&) (QtAccessibleEventListener.cxx:401)
    ==104242==    by 0x61B2756: comphelper::AccessibleEventNotifier::addEvent(unsigned int, com::sun::accessibility::AccessibleEventObject const&) (accessibleeventnotifier.cxx:256)
    ==104242==    by 0x61ADB50: comphelper::OCommonAccessibleComponent::NotifyAccessibleEvent(short, com::sun::uno::Any const&, com::sun::uno::Any const&, int) (accessiblecomponenthelper.cxx:127)
    ==104242==    by 0xBAA46FB: VCLXAccessibleComponent::ProcessWindowChildEvent(VclWindowEvent const&) (vclxaccessiblecomponent.cxx:173)
    ==104242==    by 0xBAA4285: VCLXAccessibleComponent::WindowChildEventListener(VclWindowEvent&) (vclxaccessiblecomponent.cxx:124)
    ==104242==    by 0xBAA3BBC: VCLXAccessibleComponent::LinkStubWindowChildEventListener(void*, VclWindowEvent&) (vclxaccessiblecomponent.cxx:114)
    ==104242==    by 0xD56C687: Link<VclWindowEvent&, void>::Call(VclWindowEvent&) const (link.hxx:111)
    ==104242==    by 0xD56977E: vcl::Window::CallEventListeners(VclEventId, void*) (event.cxx:296)
    ==104242==    by 0xD6C83A1: vcl::Window::ImplSetReallyVisible() (window.cxx:1328)
    ==104242==    by 0xD6C846C: vcl::Window::ImplSetReallyVisible() (window.cxx:1344)

[1] https://doc.qt.io/qt-6/accessible-qwidget.html

Change-Id: I82af810f0c618ffd5c5e4c8f568f4b4358df5900
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167862
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-21 09:57:09 +02:00
Michael Weghorn
ad4f75bdb4 qt a11y: Use "r" prefix for reference
Change-Id: Icf3021872321bc1ea23c09497008b5fc401a3591
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167861
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-21 09:57:03 +02:00
Jaume Pujantell
e39c57022a writerfilter: avoid infinit loop when resolving embeddings on docx
If a docx file contains a loop on the .rels files for headers and/or footers
the code would enter an infinite recursion while looking for embeddings.

Change-Id: I2122fd6b1677812f561e96a9511a61b0e938e94a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167784
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-05-21 08:33:10 +02:00
Olivier Hallot
ae798781ef Update git submodules
* Update helpcontent2 from branch 'master'
  to 2662257ca9594a0c5fc1371c8e397f562c726f8c
  - tdf#159872 UNIQUE function help page
    
    - Attempt to address issues raised by Regina.
    
    Change-Id: I85892d15a5bf8bb798f733cd4fddc309e5906894
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167755
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-05-20 22:25:55 +02:00
Noel Grandin
d573e2ae17 loplugin:ostr in various
Change-Id: I9f399b3752da9df930e0647536ffcd4e82beb1ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167856
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-20 22:09:56 +02:00
Noel Grandin
41c04ceb3b use more concrete UNO types in sw
Change-Id: I3cf017e74e7cc9902486d6dba1d89f70c47c978a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167864
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-20 19:14:14 +02:00
Noel Grandin
6b9ff63cf4 remove hole in SwFrameAreaDefinition struct
since this is used in various performance sensitive places

Change-Id: Ibdce6bd0de458a5a970654a88b984aff49210ef4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167863
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-20 19:14:06 +02:00
Mike Kaganski
9851311055 Drop remnants of a long-obsolete hack
In commits 6dd5a96e1e
(INTEGRATION: CWS unopkg1 (1.1.2); FILE ADDED, 2004-04-14),
19a10039a5 (INTEGRATION: CWS
unopkg2 (1.2.4); FILE MERGED, 2004-06-11), and
886715b6b6 (INTEGRATION: CWS
scriptingf7 (1.3.4); FILE MERGED, 2004-07-23), a hack was
introduced to allow empty substorages.

Later, in commits 0d6b24a721
(INTEGRATION: CWS tdoc3 (1.7.24); FILE MERGED, 2004-11-09)
and 5f4d17724f (INTEGRATION:
CWS scriptingf9 (1.6.2); FILE MERGED, 2004-12-23), that
hack was removed, but one place was kept, which is removed
now.

Change-Id: Iaaf46421ddbe942878ebe17ca1e585be9db5999d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167823
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-05-20 17:31:19 +02:00
Dione Maddern
e503518c14 tdf#160969 Update extended tip for Comment Indicator
In sc/uiconfig/scalc/ui/tpviewpage.ui
- Updated extended tip for "Comment Indicator" to reflect the current appearance of the Tools > Options> Scalc > View dialog

Change-Id: Iff0d7b0c05d54099818816e6146bc678d06a1e32
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167867
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-05-20 16:22:15 +02:00
Dione Maddern
6a3273ddf6 Update git submodules
* Update helpcontent2 from branch 'master'
  to cbb8c2d8d957f8a4729b32ac098c8a88f72d797a
  - tdf#160909 Update help page for Scalc View Options
    
    In text/shared/optionen/01060100.xhp
    - Added index bookmarks for new features
    - Removed old comment.
    - Updated "How to get" section to reflect current menu options.
    - Updated help page to cover new options:
      - Pointer
      - Comment authorship
      - Column/Row highlighting
      - Edit cell highlighting
      - Summary on search
    - Removed the section describing the "Color" option because that option no longer appears in the "View" dialog.
    
    In text/shared/optionen/01060000.xhp
    - Added link and variable tags to the title, so that the page can be easily linked from other pages.
    
    Change-Id: Ib738453b33efcded574576052b7add3cb6bb25c0
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167463
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-05-20 16:00:42 +02:00
Stéphane Guillou
625c150771 Update git submodules
* Update helpcontent2 from branch 'master'
  to 975d11c1c7bc9f57a7bce5ab8901ea1ec9f29d5c
  - related tdf#69192 document --show=slide_number option
    
    Change-Id: I9944a6d4dbaa7ec7f5283c677063cac74bc7e80d
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167614
    Reviewed-by: Justin Luth <jluth@mail.com>
    Tested-by: Jenkins
2024-05-20 15:44:23 +02:00
Justin Luth
3d4a3b30ae tdf#69192 fix cmdlinehelp: --show[=slide_number], etc.
I had skimmed the help file earlier, and concluded that { }
are used elsewhere to indicate optional paramaters.
However, there is --quickstart[=no], and -env:<VAR>[=<VALUE>]
which exactly match my optional addition.

Thanks Stéphane for pointing this out.
Also included are some other changes we made
to clarify the help wording in general,
so the documentation and the cmdline help are in sync.

We dropped
    Files other than Impress documents are opened in
    default mode, regardless of previous mode.
because:
-from an initial reading it doesn't convey any useful meaning.
-searching for other uses of "mode" in the file suggests it means
 that prior --print/--convert-to/--view modes
 no longer apply. This override of prior modes is true for all modes,
 but only this argument tries to spell this out.
-it seems rather inconceivable that any user would attempt
 to mix --show with any other arguments or more than one file.

Change-Id: I191e572506cf2b39ed6c9ff4ebaf66f258a176a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167633
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-05-20 15:42:36 +02:00
Justin Luth
382801ee53 documentation: list format placeholder has been "%1%" since LO 7.2
Vasily's commit aa5c6d1275
    new ODF numbered list parameter loext:num-list-format

    Internal LO format for list format is changed:
    instead of placeholders like %1, %2, etc
    we right now use %1%, %2%... Reason: for ODT documents,
    having more than 9 levels there is ambiguity in "%10":
    it is "%1" followed by "0" suffix, or "%10"?

It was introduced in 6.4.5 for DOCX support with
Vasily's commit 7459b9ecb5
    tdf#116883: sw: support for lists level format string

Change-Id: I5962ed04c555356c6a3fc05ab7e036975d7eee40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167833
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-05-20 15:41:19 +02:00
Justin Luth
a94db2e3b6 tdf#156105 sw: make SvxNumberFormat GetPrefix/Suffix more trustworthy
As soon as SetPrefix or SetSuffix are called,
any partially formed sListFormat is invalid (unless nothing changed).

ListFormat creates sPrefix/sSuffix as a convenience/compat item,
and changing it directly is NOT reflected in the sListFormat itself.
Trying to keep them in sync would be very complicated.

Any process that uses these functions OUGHT TO be doing it as
building blocks to eventually call SetListFormat(prefix, suffix, lvl),
at which point a proper sListFormat will be created.

Change-Id: I05f681c812ea5207cb8127b30dafbd543ffea219
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167832
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
Reviewed-by: Vasily Melenchuk <vasily.melenchuk@cib.de>
2024-05-20 15:40:58 +02:00
Justin Luth
65e226aff6 tdf#156105 sw: trust SvxNumberFormat GetPrefix/GetSuffix
After LO 7.4 (backported to 7.2.5) created this
function that manually identifies the Prefix/Suffix,
there was some work done to ensure
GetPrefix and GetSuffix were trustworthy in
LO 7.5's commit 835cda5612
Author: Justin Luth on Tue Aug 2 13:30:31 2022 -0400
    related tdf#150197: use SetListFormat or SetPrefix/Suffix
    GetListFormat DEPENDS on having managed prefix/suffix itself...

So, lets make sure we use and fix these functions in only one place.

make CppunitTest_sw_ooxmlexport21 \
    CPPUNIT_TEST_NAME=testTdf156105_percentSuffix

Change-Id: I44c021a200ba45960e39983087c6af268751fbc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167792
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Vasily Melenchuk <vasily.melenchuk@cib.de>
Tested-by: Jenkins
2024-05-20 15:40:38 +02:00
Justin Luth
047e3f6290 related tdf#156105 sw UI: recognize '%' in numbering prefix/suffix
bug 156105's listWithPercents.odt is an example of a
properly defined ListFormat which contains a percent symbol
in the prefix and suffix, which looked fine in the document itself,
but was cut off short in the UI.

sw/qa/extras/ooxmlexport/data/tdf116883.docx is also an example,
which can be seen if you reduce the first entry to level 1
instead of level 2.
Level 1 is improperly defined as "1%>". This is invalid formatting,
so the entire thing should be considered a suffix.
MS Word also considers it to be a suffix.

This code segment still isn't completely comprehensive
because it won't properly parse "%1xyz%1%." and "%1xyz%10%."
but I'm losing patience.

There is still a potential problem with the
nInclUpperLevels calculation in case
a '%' is used as an in-between separator,
but that seems extremely theoretical and irrelevant to me.
IIUC, the main impact is that it shows some extra dots
in the bullets and numbering UI preview.

Change-Id: Ic1b8fbda62917ad4c7b88bf4fff136d72242f977
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167782
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Vasily Melenchuk <vasily.melenchuk@cib.de>
Tested-by: Jenkins
2024-05-20 15:40:07 +02:00
Xisco Fauli
02c0194232 update language-subtag-registry to 2024-05-16
How the file was created:
mkdir data
cd data
wget
https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
cd ..
tar cvjf language-subtag-registry-2024-05-16.tar.bz data/language-subtag-registry

Change-Id: I1070881fac9d88508e58715c9a87d547ddf86a50
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167860
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-05-20 15:30:02 +02:00
Andrea Gelmini
267f1f6517 Fix typo
Change-Id: I4ba7595b39be27161c333f8731ec4b0b35dab50a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167852
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-20 15:23:30 +02:00
Andrea Gelmini
9487549d2a Fix typo
Change-Id: I439e80659a6e4aeba9c3f35decb0e2c7a8c87eeb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167851
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-05-20 15:23:18 +02:00
Michael Weghorn
ba41718095 avmediagtk: Use gb_Library_set_include for GTK4_CFLAGS
In the same way that `vcl/Library_vclplug_gtk4.mk` does
it, set the `GTK4_CFLAGS` (which have the includes) via
`gb_Library_set_include`, not `gb_Library_add_cxxflags`.

This makes sure that they end up in the `INCLUDE`
section in `workdir/GbuildToJson/Library/libavmediagtk.so`
and thus end up in the IDE integrations as includes,
which makes Qt Creator's Clang Code Model  find them
instead of showing an error
("gtkplayer.cxx:28:10: 'gtk/gtk.h' file not found").

See also this similar commit for more details:

    commit 6a53832080
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Mon Dec 17 15:35:58 2018 +0100

        Use 'gb_Library_set_include' for GTK3_CFLAGS

Change-Id: I5ef01aff32073d37b8add0b2250402ccaa48b2dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167857
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-05-20 15:22:49 +02:00
Noel Grandin
5a602ed852 loplugin:ostr in sc/.../vba
Change-Id: Ifdf0ebba617432f49e2c14c8a52c495dc1c6a36a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167853
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-20 14:40:36 +02:00
Noel Grandin
9312f954b6 loplugin:ostr in sw/.../access
Change-Id: Ib859d48d62ffcb9d82d3c63cc778430f45fe1d1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167854
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-20 12:29:03 +02:00
Caolán McNamara
8b0b016493 don't need -I ... YaccTarget/connectivity/source/parse in forms
since:

commit f0c8312bc6
Date:   Sat Feb 1 22:47:11 2020 +0100

    tdf#42949 Fix IWYU warnings in forms/

Change-Id: I77835488ef0b19d4c271ad39018138cc371a352d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167849
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-20 12:13:38 +02:00
Andrea Gelmini
e3bd3c7e31 Fix typo
Change-Id: I10d05b41028df776713db37d60e688d4f04bb739
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167774
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Tested-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2024-05-20 08:56:49 +02:00
Andrea Gelmini
eadcbef8b3 Fix typo
Change-Id: I22cd12c51d91bd7620bca29227871b3081813a36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167776
Reviewed-by:   <20001722@ymail.ne.jp>
Tested-by: Jenkins
2024-05-20 08:54:48 +02:00
HakimOttey
9dad7c0f10 tdf#147906 implement hypot function for s1 x s1 + s2 x s2 statements
Change-Id: I50a2f4cf7738ee3797723929fb6840d2633c882c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166814
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-05-20 08:20:40 +02:00
HakimOttey
ad3f86880b Change for loop to have getAccessibleChildCount in accessibletabbar
Change-Id: Ic020b1cd36abe2c568a119dfd400c718dc9de452
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166989
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-20 07:47:44 +02:00