Commit graph

496214 commits

Author SHA1 Message Date
Rizal Muttaqin
32d8a539ce tdf#154774 Sifr: Adjust contrast for dark variant
Change-Id: Ifef5be9023d09f75d526f92e326f361072ea288b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168039
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2024-05-27 00:27:08 +02:00
Thorsten Behrens
9f55ef05d6 Fix WASM build
Wrong line for closing brace, after 1bd9747a12

Change-Id: I552853f0eafc92c3d5435e4292de6c88db4d1260
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168078
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Jenkins
2024-05-27 00:00:53 +02:00
Dione Maddern
f1d624aae1 Update git submodules
* Update helpcontent2 from branch 'master'
  to 12e13425715a23ff426715e0bb7248d4aea55be9
  - tdf#129097 Fix inconsistent names for Name Box/Sheet Area Box
    
    In text/scalc/01/04070100.xhp
    - Added variable tags to H1 to allow the page to be more easily linked from other pages
    - Updated reference to "Sheet Area" to read "Name Box" instead
    
    In text/scalc/02/06010000.xhp
    - Added index bookmarks to make the page easier to find
    - Added a hid bookmark so that pressing F1 opens this page when the Name Box is selected in Calc
    - Added variable tags to H1 to allow the page to be more easily linked from other pages
    - Added variable tags to name in syname_box so it can be embedded in other pages. Changes to the menu option will update the name in linked pages.
    - Added a Related Topics Section
    
    In source/text/scalc/04/01020000.xhp
    - Replaced reference to "Sheet Area" with an embedded link to text/scalc/02/06010000.xhp
    
    In source/text/scalc/main0206.xhp
    - Replaced reference to "Sheet Area" with an embedded link to text/scalc/02/06010000.xhp
    
    Change-Id: Iddd26877397f3ffcf7ee38b95c38550f1a216d87
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167947
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-05-26 23:14:33 +02:00
Caolán McNamara
f0960e05c2 Resolves: tdf#155364 resize buttons and change widget font sizes on zoom
Change-Id: Ied951e6c96881bd56a40ae01077cd7f76f9b7853
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168071
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-26 20:21:10 +02:00
Caolán McNamara
f292fd3ac1 ofz: Use-of-uninitialized-value
Change-Id: I8e43bdea51b7ab4943a2243e4d2ddb9d714f1895
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168049
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-26 20:19:17 +02:00
Caolán McNamara
07a372592c drop unused __SIMPLE_FUNC
presumably unused since:

commit a3ce60eb3c
Date:   Tue Nov 27 14:41:16 2012 +0200

    We only support MSVC 2008 (_MSC_VER 1500) or later

Change-Id: Ica1c319ac485a1bd539ccd7df604df5786608698
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168048
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-05-26 20:18:43 +02:00
Caolán McNamara
3a647dd08e presumably __SIMPLE_FUNC is unused
Change-Id: I49cb3f981d913082bcf37b9142139c6831c79e87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168047
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-26 20:18:36 +02:00
Thorsten Behrens
e6ea581519 Add gssapi/kerberos libs to mariadb connector lib check
After https://gerrit.libreoffice.org/c/core/+/159954 this started to
fail with:

    > instdir/program/libmysqlclo.so has suspicious NEEDED: libgssapi_krb5.so.2
    >

Change-Id: I6014136a053ba7ef92aef55a80517fb38c75e4ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168042
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-05-26 20:10:14 +02:00
Eike Rathke
62e88a17fd Resolves: tdf#160371 Relax significant whitespace intersection pre-check
Change-Id: I3bef7c70571ee6ce8c98d60e6f6f017f3760530f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168070
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2024-05-26 19:44:50 +02:00
Mike Kaganski
741ab3c453 Use Rectangle::expand instead of four Adjust* calls
Change-Id: I0d1cf1e1609fee235d8df12714d59b408d3193bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168056
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-05-26 17:28:35 +02:00
Caolán McNamara
560f0f10a1 ofz#69256 Integer-overflow
Change-Id: I564635a52282ee632a0c028199ec86dd4bff99a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168044
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-05-26 15:41:55 +02:00
Caolán McNamara
fda349ab8e ofz#69246 Integer-overflow
WTMM takes/returns a double anyway, so just promote earlier

Change-Id: I055fa7e7b155abfd15ef51335b34c2e6cfa8a209
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168043
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-05-26 15:41:47 +02:00
Ilmari Lauhakangas
aa4188b8a6 Remove remaining dynamic exception specifications in odk/examples
as begun in

commit ddcc98fa50
Author: Stephan Bergmann <sbergman@redhat.com>
Date:   Wed Jul 22 13:41:12 2020 +0200

    Remove obsolete dynamic exception specifications from SDK example C++ code

Change-Id: I70a799655f7633e255d80e829f12a88a27a3c2f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167289
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-05-26 14:31:10 +02:00
Mike Kaganski
c9571914b8 tdf#161222: LOK: do not fine-tune text scaling for tile rendering
For unclear reason, this shifts text on all tiles except the top left one.
I wasn't able to track where the coordinate is changed: it seems that the
pixel offset of the virtual device, its MapMode's origin, as well as the
start point passed to the DrawTextArray method, are all only changed by a
tiny amount, if at all, so it should be no more than a pixel off compared
to before commit cc3663bbae (tdf#160702:
improve text positioning, 2024-04-20). However, it is already more than
half the tile size (more than 128 pixel) offset in 75% scale case for the
second tile; and it's completely off the tile for all the rest (third+ in
a row), and for greater scales (100%+) even for second tile.

Change-Id: I64dc24bea4bab0cac90f11f2500bba0fd9bc7855
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168041
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-05-26 09:56:54 +02:00
Patrick Luby
0735a4306d Related tdf#158914: fix memory leaks by calling (auto)release selectors
Found the following memory leaks using Xcode's Instruments application:

1. Posting an NSAccessibilityUIElementDestroyedNotification
   notification causes [ AquaA11yWrapper isAccessibilityElement ]
   to be called on the object so mark the object as disposed
   before posting the destroyed notification and test for disposed
   in all of the standard NSAccessibility selectors to prevent
   any calls to likely disposed C++ accessibility objects.

2. In [ AquaA11yWrapper accessibilityHitTest: ],
   [ AquaA11yFactory wrapperForAccessibleContext: ] already retains
   the returned object so retaining it until the next call to this
   selector can lead to a memory leak when dragging selected cells
   in Calc to a new location. So autorelease the object so that
   transient objects stay alive but not past the next clearing of
   the autorelease pool.

3. [ AquaA11ySelectionWrapper selectedChildrenAttributeForElement: ] is
   expected to return an autoreleased object.

4. [ AquaA11yFactory wrapperForAccessible: ] is not a getter. It
   expects the caller to release the returned object.

5. CreateNSString() is not a getter. It expects the caller to
   release the returned string.

Change-Id: I824740d7e3851b0c3e31e2c009860aa822c94222
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168034
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-26 09:52:41 +02:00
Caolán McNamara
d1e065ea7a ofz#69215 Heap-use-after-free
maybe since?
commit 397d7af2cb
Date:   Wed May 22 15:03:40 2024 +0200

    tdf#161210 speedup loading large XLS

==344604== Invalid read of size 4
==344604==    at 0x1D74DEC5: XclImpXFRange::XclImpXFRange(int, int, XclImpXFIndex const&) (xistyle.hxx:555)
==344604==    by 0x1D746AFB: XclImpXFRangeColumn::SetXF(int, XclImpXFIndex const&) (xistyle.cxx:1777)
==344604==    by 0x1D747483: XclImpXFRangeBuffer::SetXF(ScAddress const&, unsigned short, XclImpXFRangeBuffer::XclImpXFInsertMode) (xistyle.cxx:1908)
==344604==    by 0x1D747629: XclImpXFRangeBuffer::SetXF(ScAddress const&, unsigned short) (xistyle.cxx:1929)
==344604==    by 0x1D2C0334: ImportExcel8::Labelsst() (excimp8.cxx:250)
==344604==    by 0x1D32AB78: ImportExcel8::Read() (read.cxx:1196)
==344604==    by 0x1D29FC2A: ScFormatFilterPluginImpl::ScImportExcel(SfxMedium&, ScDocument*, EXCIMPFORMAT) (excel.cxx:256)
==344604==    by 0x1D2A28BC: TestImportXLS (excel.cxx:483)
==344604==    by 0x405D76: sal_main_with_args(int, char**) (fftester.cxx:393)
==344604==    by 0x40363D: main (fftester.cxx:100)
==344604==  Address 0x2ab5fc08 is 8 bytes inside a block of size 12 free'd
==344604==    at 0x48463F3: operator delete(void*) (vg_replace_malloc.c:1051)
==344604==    by 0x1D761DDC: std::__new_allocator<XclImpXFRange>::deallocate(XclImpXFRange*, unsigned long) (new_allocator.h:172)
==344604==    by 0x1D761B27: std::__cxx1998::_Vector_base<XclImpXFRange, std::allocator<XclImpXFRange> >::_M_deallocate(XclImpXFRange*, unsigned long) (allocator.h:210)
==344604==    by 0x1D76170E: void std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> >::_M_realloc_insert<XclImpXFRange>(__gnu_cxx::__normal_iterator<XclImpXFRange*, std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> > >, XclImpXFRange&&) (vector.tcc:519)
==344604==    by 0x1D763576: std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> >::_M_insert_rval(__gnu_cxx::__normal_iterator<XclImpXFRange const*, std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> > >, XclImpXFRange&&) (vector.tcc:372)
==344604==    by 0x1D763409: std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> >::_M_emplace_aux(__gnu_cxx::__normal_iterator<XclImpXFRange const*, std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> > >, XclImpXFRange&&) (stl_vector.h:1887)
==344604==    by 0x1D762F29: __gnu_cxx::__normal_iterator<XclImpXFRange*, std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> > > std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> >::emplace<XclImpXFRange>(__gnu_cxx::__normal_iterator<XclImpXFRange const*, std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> > >, XclImpXFRange&&) (stl_vector.h:1344)
==344604==    by 0x1D762CCB: __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<XclImpXFRange*, std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> > >, std::__debug::vector<XclImpXFRange, std::allocator<XclImpXFRange> >, std::random_access_iterator_tag> std::__debug::vector<XclImpXFRange, std::allocator<XclImpXFRange> >::emplace<XclImpXFRange>(__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<XclImpXFRange const*, std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> > >, std::__debug::vector<XclImpXFRange, std::allocator<XclImpXFRange> >, std::random_access_iterator_tag>, XclImpXFRange&&) (vector:545)
==344604==    by 0x1D74E0FD: __gnu_cxx::__enable_if<!std::__are_same<XclImpXFRange, bool>::__value, __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<XclImpXFRange*, std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> > >, std::__debug::vector<XclImpXFRange, std::allocator<XclImpXFRange> >, std::random_access_iterator_tag> >::__type std::__debug::vector<XclImpXFRange, std::allocator<XclImpXFRange> >::insert<XclImpXFRange>(__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<XclImpXFRange const*, std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> > >, std::__debug::vector<XclImpXFRange, std::allocator<XclImpXFRange> >, std::random_access_iterator_tag>, XclImpXFRange&&) (vector:580)
==344604==    by 0x1D74712E: XclImpXFRangeColumn::Insert(XclImpXFRange, unsigned long) (xistyle.cxx:1798)
==344604==    by 0x1D746AD8: XclImpXFRangeColumn::SetXF(int, XclImpXFIndex const&) (xistyle.cxx:1776)
==344604==    by 0x1D747483: XclImpXFRangeBuffer::SetXF(ScAddress const&, unsigned short, XclImpXFRangeBuffer::XclImpXFInsertMode) (xistyle.cxx:1908)
==344604==  Block was alloc'd at
==344604==    at 0x4842F95: operator new(unsigned long) (vg_replace_malloc.c:483)
==344604==    by 0x1D761C4A: std::__new_allocator<XclImpXFRange>::allocate(unsigned long, void const*) (new_allocator.h:151)
==344604==    by 0x1D761A33: std::__cxx1998::_Vector_base<XclImpXFRange, std::allocator<XclImpXFRange> >::_M_allocate(unsigned long) (allocator.h:198)
==344604==    by 0x1D7615F1: void std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> >::_M_realloc_insert<XclImpXFRange>(__gnu_cxx::__normal_iterator<XclImpXFRange*, std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> > >, XclImpXFRange&&) (vector.tcc:459)
==344604==    by 0x1D76148D: XclImpXFRange& std::__cxx1998::vector<XclImpXFRange, std::allocator<XclImpXFRange> >::emplace_back<XclImpXFRange>(XclImpXFRange&&) (vector.tcc:123)
==344604==    by 0x1D761371: XclImpXFRange& std::__debug::vector<XclImpXFRange, std::allocator<XclImpXFRange> >::emplace_back<XclImpXFRange>(XclImpXFRange&&) (vector:519)
==344604==    by 0x1D74DE8C: __gnu_cxx::__enable_if<!std::__are_same<XclImpXFRange, bool>::__value, void>::__type std::__debug::vector<XclImpXFRange, std::allocator<XclImpXFRange> >::push_back<XclImpXFRange>(XclImpXFRange&&) (vector:508)
==344604==    by 0x1D7467AD: XclImpXFRangeColumn::SetDefaultXF(XclImpXFIndex const&, XclImpRoot const&) (xistyle.cxx:1727)
==344604==    by 0x1D7478A7: XclImpXFRangeBuffer::SetColumnDefXF(short, unsigned short) (xistyle.cxx:1956)
==344604==    by 0x1D2713A5: XclImpColRowSettings::SetDefaultXF(short, short, unsigned short) (colrowst.cxx:175)
==344604==    by 0x1D30E12F: ImportExcel::Colinfo() (impop.cxx:682)
==344604==    by 0x1D32A34E: ImportExcel8::Read() (read.cxx:1141)

Change-Id: I55cc65d511878e31646d10dc7f367f30bd4454f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168038
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-26 00:51:48 +02:00
Caolán McNamara
034b68eb3a ofz#68840 another putcontig8bitYCbCr22tile issue
Change-Id: I6e119cf1b3bec609f94784eb0c439835875d6112
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168031
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-25 21:04:17 +02:00
Michael Meeks
c28bcfd7a0 WakeupThread - re-factor to have a single shared wakeup thread.
The WakeupThread is an attempt to avoid needing to call gettimeofday
and/or update a visual status bar very regularly, and to have a thread
marking the passing of time to emit progress updates infrequently.

Re-factor this to have a single time-keeping thread, so it will be
easier to shutdown and re-start for LOK; and also to simplify some
of the complexity lurking here.

Change-Id: Ia95890e5d6041a029484aa3f7df13b59a0397086
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167949
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins
2024-05-25 14:57:23 +02:00
Michael Weghorn
4d2c41e817 related tdf#158914 sc a11y: Release references when disposing sheet
Clear all `ScAccessibleCell` references that are owned by
`ScAccessibleSpreadsheet` when disposing the sheet instead
of when the sheet is deleted.

While `ScAccessibleSpreadsheet::disposing` is always called,
`ScAccessibleSpreadsheet::~ScAccessibleSpreadsheet` is not called
until all of the sheet's `ScAccessibleCell` instances have been
deleted. So make sure that `ScAccessibleSpreadsheet::disposing`
releases all `ScAccessibleCell` references.

This might possibly reduce some of the leaks mentioned in [1].

[1] https://gerrit.libreoffice.org/c/core/+/167961/comments/15a6a4e4_91a77291

Change-Id: Iaf14338945c1899d54c8e7f8a16f38a48316ac98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167985
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-25 09:02:38 +02:00
Caolán McNamara
b227481b63 pViewShell arg is never null, just use a reference here
Change-Id: I29b5e9084da5b5f0817ffad37e3e5496577372fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168029
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-05-24 22:34:25 +02:00
Caolán McNamara
50c718557d cid#1598442 Dereference null return value
Change-Id: Id44fb940ba17549068c5be554d5738ce81ced79a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168028
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-24 22:34:18 +02:00
Caolán McNamara
da15cb3d11 use same pattern as elsewhere for consistency
Change-Id: I126fbbee916fd515a7057e3793f239e6f69748fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167835
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-05-24 22:11:13 +02:00
Noel Grandin
137f423cc1 tdf#161210 speedup loading large XLS (2)
shave 2% off time by inlining GetDoc which is quite hot

Change-Id: I20ede177e6032761598b1b977e90ff969bd2162a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168012
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-24 20:11:12 +02:00
László Németh
4da6f52f5f tdf#161261 sw: fix lost size of image resized in fixed-height cell
A fixed-height cell can contain a bigger image, which is cropped by
cell boundaries. It was not possible to resize this image with a simple drag & drop, because its size changed to the cell size immediately.
Now it's possible, like MSO does.

Follow-up to commit 30de13743f
"tdf#160836 sw: resize rows at images cropped by row height".

Change-Id: I9d63e6e526135b6d8541f904c363b9186bb3cfc4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168023
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2024-05-24 19:46:46 +02:00
Adolfo Jayme Barrientos
293e3e683f Update git submodules
* Update helpcontent2 from branch 'master'
  to f26ce1d963abdd6d0503d2f225abc9423a77ccdd
  - Fixups
    
    Change-Id: I9b66bb7e7bf2e5cee67ad3e6f952a0b98afda66f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168025
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
    Tested-by: Jenkins
2024-05-24 18:31:58 +02:00
Noel Grandin
397d7af2cb tdf#161210 speedup loading large XLS
takes the time from 22s to 20s for me

Change-Id: Ib401c03ba13f82047c8376741e3547aadf5b18df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168011
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-24 18:29:02 +02:00
Michael Weghorn
79644440bd tdf#145735 qt avmedia: Return video resolution for preferred win size
In `QtPlayer::getPreferredPlayerWindowSize`, retrieve the
video resolution from the meta data and return that for the
preferred window size if available, instead of always returning
an empty rect.

For the sample presentation referenced in tdf#145735,
the size retrieved this way also matches what
`GtkPlayer::getPreferredPlayerWindowSize` returns
(720x400).

As mentioned in

    commit 441d8ed9be
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Mon May 20 16:25:09 2024 +0200

        tdf#145735 avmedia qt: Use QtMultimedia for Qt 6 media playback

, the behaviour without this was:

> * 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.)

With this in place, the placeholder is now a different
icon, a "video icon" (but still not a frame from the actual
video).

Change-Id: I295abe6b7973fece3fcaf9a38af2602cb08610a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168013
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-24 18:18:17 +02:00
Michael Weghorn
81c94af712 tdf#145735 qt: Set margins for video widget/layout to 0
Set all of the content margins of the layout that
holds the widget for video playback to 0.

Quoting [1]:

> Sets the left, top, right, and bottom margins to use around the layout.
>
> By default, QLayout uses the values provided by the style. On most platforms,
> the margin is 11 pixels in all directions.

This makes the odd margin/frame shown around the video
on video playback mentioned in

    commit 441d8ed9be
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Mon May 20 16:25:09 2024 +0200

        tdf#145735 avmedia qt: Use QtMultimedia for Qt 6 media playback

disappear.

[1] https://doc.qt.io/qt-6/qlayout.html#setContentsMargins

Change-Id: I29f1093caa986e6818fd575b031375ded0a572bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168010
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-24 18:17:58 +02:00
Sarper Akdemir
a50b13f357 related tdf#33603: update current page on SlideSorter view
Make SlideSorterView update the current page properly when it is the
MainViewShell.

Also fixes Notes Pane not properly updating on SlideSorter
view mode.

Change-Id: If4fed4e84951cb4a1707874b288ac46e6d5c26da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168022
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir@allotropia.de>
2024-05-24 18:03:28 +02:00
Miklos Vajna
8112883acf sw qa: rename writerfilter/cppunittests to just writerfilter
15:47 <vmiklos> noelgrandin: any objections to go further with your writerfilter rename and turn sw/qa/writerfilter/cppunittests/* into sw/qa/writerfilter/* ? (suggest to either do it now or not at all if we're past the libreoffice-24-8 branch-off)
15:59 <noelgrandin> vmiklos, not at all, go for it

Change-Id: Ic0eb6907463389f3be326cdf183002f1bfcb42be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168024
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-05-24 17:34:09 +02:00
Caolán McNamara
c88ce0eb99 fix up assert
Change-Id: Ib7276af8adc1e8e8957486b6e95db4005ce45b08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168020
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-05-24 17:14:13 +02:00
Heiko Tietze
1e9a5ee867 Resolves tdf161196 - Visibility of formatting marks
* Special indicators such as "°" for no-break space but also
  "," for zero width space are hidden if non-printable chars
  are disabled
* Special indicators use the same color (NON_PRINTING_CHARACTER_COLOR)
* Hard hyphen becomes blueish with non-printable chars on
* Hard blank as well as hard hyphen are controlled by Formatting Aids >
  Non-breaking spaces; and both highlighting and indicator are hidden
  with non-printable chars off

Change-Id: Ifa29371587ba44d825e04368c5f5c5bf7ed94c7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167987
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-05-24 16:30:31 +02:00
Mike Kaganski
98dd23286a Avoid more cases of unneeded GetTextWidth
Change-Id: I45ccf6e3c84f22d46b42c36179cb380ca803d08b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168014
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-05-24 15:58:37 +02:00
Sarper Akdemir
8fc4eb1149 related tdf#33603: sd: outlineview: update current page on moving cursor
The "early rejection test" removed here is a historical
artifact when UpdateForKeyPress was created.

in the current state it checked if
pOutlineViewShell->GetActualPage() was different from
itself.

In the OutlineViewShell::UpdatePreview, there's an
additional check if we have actually moved to a new page, so
we can just safely remove this.

Also fixes Notes Pane not properly updating on Outline View Mode

Change-Id: Ic9de2e7302e76260809f90360533f0bfe6e05d2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168017
Reviewed-by: Sarper Akdemir <sarper.akdemir@allotropia.de>
Tested-by: Jenkins
2024-05-24 15:18:29 +02:00
Sarper Akdemir
dc208a0de0 tdf#33603: sd: notes pane: properly handle movement keys
Makes it so that notes pane handles some previously
incorrectly handled keys itself. e.g. PageUp & PageDown

Change-Id: I19f73fa2782900a752889544dcc79fc180ee52d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168008
Reviewed-by: Sarper Akdemir <sarper.akdemir@allotropia.de>
Tested-by: Jenkins
2024-05-24 15:18:11 +02:00
Miklos Vajna
6de49dee82 sw: rename SwIndex to SwContentIndex in comments
Leftover from commit 9fdb06d65a (rename
SwIndex->SwContentIndex, 2022-07-25).

Change-Id: I9a410e9b9ca8529454c50e93afd48b731a0fa320
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168018
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-05-24 14:22:07 +02:00
Miklos Vajna
a3150fc8a5 tdf#145972 sw image dialog: fix bad rel width w/ pt units and kept aspect ratio
Regression from commit 02c4350820 (sw keep
aspect ratio: add filter for this setting, 2021-06-07), once UI units
are set to poins (instead of cms), the image dialog for the bugdoc was
showing 5% width instead of 48%.

48% is roughtly correct, visually the image is taking half of the body
frame width. Previously the bad rel size didn't happen because we didn't
save the "keep aspect ratio" to documents, so it was off by the time the
dialog was initialized.

Fix the problem by introducing a new flag, so we can differentiate
between the user changine the width or height vs the dialog being
initialized. RelSizeClickHdl() is meant to adjust the other axis in the
user case, and this is not wanted in the init case.

A higher level fix would be to make sure once aspect ratio is kept,
that ratio is stored in documents explicitly, so we can say 50% wide
with e.g. 4:3 ratio, that would avoid all this trouble by even looking
at the calculated sizes when we want to work with percents. This storing
of the aspect ratio is not done here.

Change-Id: I901e7f6d5e6f7f1349d7beeb05985ddbf99a34a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168015
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-05-24 13:58:07 +02:00
Miklos Vajna
755f3bebd9 tdf#160984 sw continuous endnotes: fix the endnote separator length
See
<https://bug-attachments.documentfoundation.org/attachment.cgi?id=194324>,
Word has a longer separator line for the foot/endnote than Writer for
this bugdoc.

Writer defaults to 25% of the body frame width in the SwPageFootnoteInfo
ctor, and we don't seem to change that in the DOCX import. Word has a
static 2 inches setting, which is only reduced if it would go outside
the body frame.

Fix the problem by extending SwFootnoteContFrame::PaintLine() in the
DocumentSettingId::CONTINUOUS_ENDNOTES case to do the same.

I searched the OOXML spec and the MS implementer notes, they don't
specify this 2 inches length, but it seems static: the value doesn't
change with the page size. With this, the single-section bugdoc is now
rendered fine.

Change-Id: I3bb23680937580179b8d37c940ea14e0f80fc7f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168009
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-05-24 12:36:21 +02:00
Henry Castro
7cd07676df lok: sc: fix print mode document back color
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I334ff51230ef01d7a87790409a6d76541c57ba54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167911
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 11eaf501798cec2c5758cd7fd447998e202ae1f9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167944
Tested-by: Jenkins
2024-05-24 12:31:29 +02:00
Michael Weghorn
248a19ad2b a11y: Rename m_aAccessibleChildren1 -> m_aAccessibleChildren
Was previously changed the other way around in

    commit 28c89e58d9
    Date:   Wed Aug 30 15:16:01 2023 +0200

        use concrete type for OAccessibleMenuBaseComponent::m_aAccessibleChildren

for no apparent reason.

Change-Id: I0d0c6627134bcef8ac9732cc8a5213ab266afbf7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168005
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-05-24 11:07:42 +02:00
Michael Weghorn
56572e8b9a a11y: Drop AccessibleChildren typedef
... which is only used in the next line anyway.

Change-Id: I3bb038cfba3b3b31df45ca316242d54442db7220
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168004
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-05-24 11:07:29 +02:00
Andrea Gelmini
2d568fe29b Update git submodules
* Update helpcontent2 from branch 'master'
  to 7fe9ae80c7df68c70dae06b9d6002fbc42d1ab7e
  - Fix typo
    
    Change-Id: Ia0a17632d7e505bff252bb788384a83869aef00b
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168003
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-05-24 10:14:51 +02:00
Michael Weghorn
87c41bbf04 gtk3 a11y tests: Increase timeout for AT-SPI method calls
As discussed in the ESC call of 2024-05-23,
CppunitTest_vcl_gtk3_a11y fails relatively often recently:

>     38 CppunitTest_vcl_gtk3_a11y                gerrit_linux_clang_dbgutil
>    + this week: have a new problem with CppunitTest_vcl_gtk3_a11y (Cloph)
>      + failure is not new, but the frequency increased recently
>      + assume: timing issue

Jenkins logs show that failures are due to running into
timeouts, example from [1]:

    [...]
    found run attribute: CharTopBorder=<Any: (com.sun.star.table.BorderLine2) 0x6831c50>
    found run attribute: CharTopBorderComplexColor=<Any: (void)>
    found run attribute: MMToPixelRatio=<Any: (float) 1.25>
      matching atspi attribute is: mm-to-pixel-ratio=1.25
    unknown:0:Test1::TestBody
    An uncaught exception of type com.sun.star.uno.RuntimeException
    - timeout from dbind at /home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/vcl/qa/cppunit/a11y/atspi2/atspiwrapper.hxx:302

Increase the timeout for method calls from 2.5 to 10 seconds
in the hope that will help.
(Issue is not reproducible locally for me.)

[1] https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/162811/consoleFull

Change-Id: Ib0eef753cf9f574ee5b2a013a46a0a600c91eb34
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168002
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-24 08:44:29 +02:00
Michael Weghorn
ee168614dd tdf#160971 gtk3 a11y: Manually unset focus for combobox popup
The gtk3 VCL plugin uses a custom implementation that
has a listbox in a popup (s. vcl/uiconfig/ui/combobox.ui).

The popup window gets shown when expanding the combobox, e.g.
using Alt+Up/Alt+Down while the edit has focus.

Once the popup is closed again, focus is given to the edit
again.

That one correctly reports focus when checked via
`gtk_widget_has_focus`, but for some unknown
reason, the listbox in the popup assumes/claims
it still has global keyboard focus as well, despite it no
longer being visible and the `gtk_widget_has_focus` doc [1]
explicitly mentioning:

> Determines if the widget has the global input focus.
> See gtk_widget_is_focus() for the difference between
having the global input focus, and only having the focus
> within a toplevel.

The tree view listbox still assuming focus leads to it
emitting invalid active-descendant-changed a11y events
when the selected entry changes, which e.g. breaks focus
tracking by the Orca screen reader.
As a consequence, current Orca git main
(as of commit d70919051ef01384c473e08321a88cec52549cd2)
doesn't doesn't announce the new value of e.g. the "Font Name"
combobox in the Writer toolbar when changing it via the
Up/Down arrow keys any more once the popup has been shown.
(It works fine before showing the popup for the first time.)

To avoid that problem, manually unset the focus
using `gtk_widget_send_focus_change`.
Its doc [2] mentions

> This function is not meant to be used by applications.

, but since the focus is apparently not unset
automatically, still use it as a workaround for now.

[1] https://docs.gtk.org/gtk3/method.Widget.has_focus.html
[2] https://docs.gtk.org/gtk3/method.Widget.send_focus_change.html

Change-Id: Ifd32c2a66b4a7b9e827f5c8dc2927c7e359a42aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167994
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-24 06:25:54 +02:00
Weblate
7ae9dc0420 android-viewer translated using Weblate
Japanese currently translated at 68.1% (79 of 116 strings)

Change-Id: I1c42877ea415bdf3830bbee64c97589eafa7fa1c

android-viewer translated using Weblate

Change-Id: I9efdbae451a5313cb5b8ef4a169696969696969b
Co-authored-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Co-authored-by: Weblate <noreply@documentfoundation.org>
Translate-URL: https://translations.documentfoundation.org/projects/android-viewer/android-strings/
Translate-URL: https://translations.documentfoundation.org/projects/android-viewer/android-strings/ja/
Translation: android-viewer/android-strings
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167986
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-05-24 06:02:41 +02:00
Bogdan B
322b158c5c Update git submodules
* Update helpcontent2 from branch 'master'
  to 25f4e3d465bed888952ef7cafa2e47736bb0214d
  - tdf#148903 Improve Help about positioning
    
    Change-Id: I695530a298d61ec7e7c83603addccf40741fad6c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/149886
    Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-05-23 23:17:33 +02:00
Dione Maddern
d4243c3646 Update git submodules
* Update helpcontent2 from branch 'master'
  to c9ef3ec7d50ab940d9f9d2a4c255c2cd16a47048
  - tdf#130838 tdf#154996 Add warning about copying/moving in record mode
    
    In text/scalc/01/02180000.xhp
    - Add statement that sheets can't be moved or copied in Record Changes mode.
    
    In text/shared/00/edit_menu.xhp
    - Updated howtoget instructions for "Track Changes" and "Record Changes", including adding Tabbed UI instructions for "Record Changes" and hiding instructions for the Track Changes toolbar behind an application switch, because Calc does not have a Track Changes toolbar.
    
    In text/shared/01/02230000.xhp
    - Added variable tags to H1 so that the page can be more easily linked from other pages
    
    In text/shared/01/02230100.xhp
    - Moved howtoget function to text/shared/00/edit_menu.xhp
    - Updated embed link for howtoget section
    
    Change-Id: I4776c0d45cd5d58a822cf00ede81ae3769ef8218
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167943
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-05-23 23:10:39 +02:00
Dione Maddern
93510ceb3d Update git submodules
* Update helpcontent2 from branch 'master'
  to 35c331d42654a28c9852187474b102db1c987e53
  - tdf#105988  tdf#130024 Update Edit Points Bar help page
    
    Created new file text/shared/02/eliminate_points.xhp so that more detailed information on "Eliminate Points" mode is on its own page.
    - Updated the description of the "Eliminate Points" feature to more accurately describe how the feature works.
    
    In AllLangHelp_shared.mk
    - Added new page text/shared/02/eliminate_points.xhp
    
    In source/text/shared/01/05270000.xhp
    - Added section and variable tags to allow content to be easily embedded in other pages.
    
    In source/text/shared/main0227.xhp
    - Added section and variable tags to allow content to be easily embedded in other pages.
    - Moved the link to "Converting 2D Objects to Curves, Polygons, and 3D Objects" to a new Related Topics section
    - Replaced "Edit Points" section with an embedded link to the description in text/shared/01/05270000 (Edit Points mode) to avoid repetition
    - Replaced "Edit Points" section with an embedded link to the description in text/shared/02/eliminate_points.xhp to avoid repetition.
    - Created a Related Topics section
    
    In text/simpress/02/10080000.xhp
    - Added variable tags to allow the page to be easily linked from other pages
    - Changed the Title and Heading 1 from "Curve" to "Curves and Polygons" to reflect current menu options.
    
    Change-Id: Ib9038f35b97b4177e11171bfdedd10c0a4149dd2
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167939
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-05-23 22:54:02 +02:00
Miklos Vajna
f1d0b4e34a tdf#160984 sw continuous endnotes: fix the endnote separator position
See <https://bugs.documentfoundation.org/attachment.cgi?id=194306>, the
total height of the endnote separator is now correct, but the
distribution of upper space, line width, lower space is still bad, when
compared to Word.

Our model is 2 spacings and a line width, while Word seems to simply
split the amount of available space: 60% goes above the separator and
the rest goes below.

Fix the problem by breaking up the monster expression for the separator
rectangle in SwFootnoteContFrame::PaintLine(), and then the compat +
horizontal case can do the 60% spacing in the Word compat mode.

The width of the separator is still not correct.

Change-Id: Ic065c138041892225b3c1b7d4bd64d4f1c625611
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167990
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-05-23 21:01:31 +02:00
Xisco Fauli
b46b0e92e5 use SAL_RET_MAYBENULL in GetViewBindings(), GetBestViewShell()...
... GetViewData() and GetShellByNum()

Change-Id: I9a53e2d4cf1241195985cf095d274f596abd6427
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167993
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-05-23 20:28:22 +02:00