Commit graph

501646 commits

Author SHA1 Message Date
Michael Weghorn
657873772c gtk3 a11y: Simplify gtk3/gtk4 version check
One gtk3-specific section is sufficient.

Change-Id: I42a5cd1b94df7874665743a386af8e2e19590b0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176786
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-20 07:56:32 +01:00
Noel Grandin
c5834bcfac use default implementation for hasFastDrawTransformedBitmap
so only the one that implements it needs to override it

Change-Id: I1acffb4796d95d75edc4507f533d9b1f8987972b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176790
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-11-20 07:08:06 +01:00
Caolán McNamara
3746195ff9 catch invalid ranges at export
log failure and continue to export the remainder of the document

 #0  0x0000733dda8ae4a1 in __cxa_throw () from target:/lib/x86_64-linux-gnu/libstdc++.so.6
 #1  0x0000733dc5d0bd43 in ScCellRangeObj::getCellRangeByPosition (this=0x2a753d60, nLeft=43, nTop=-7, nRight=43, nBottom=-7)
     at sc/source/ui/unoobj/cellsuno.cxx:4638
 #2  0x0000733dc66150d5 in ScTableSheetObj::getCellRangeByPosition (this=0x2a753d60, nLeft=43, nTop=-7, nRight=43, nBottom=-7)
     at sc/source/ui/unoobj/cellsuno.cxx:6711
 #3  0x0000733dc62d3e38 in ScXMLExport::GetMerged (this=0x1fc74160, pCellAddress=<optimized out>, xTable=...)
     at sc/source/filter/xml/xmlexprt.cxx:2750
 #4  0x0000733dc62d7104 in ScXMLExport::AddStyleFromCells (this=0x1fc74160, xProperties=..., xTable=..., nTable=0, pOldName=0x0)
     at sc/source/filter/xml/xmlexprt.cxx:2156
 #5  0x0000733dc62dfebb in ScXMLExport::collectAutoStyles (this=<optimized out>)
     at sc/source/filter/xml/xmlexprt.cxx:2559
 #6  0x0000733dc62d0fff in ScXMLExport::ExportAutoStyles_ (this=0x1fc74160)
     at sc/source/filter/xml/xmlexprt.cxx:2657
 #7  0x0000733dd833a7a4 in SvXMLExport::ImplExportAutoStyles (this=0x1fc74160)
     at xmloff/source/core/xmlexp.cxx:1123
 #8  0x0000733dd833d098 in SvXMLExport::exportDoc (this=0x1fc74160, eClass=<optimized out>)
     at xmloff/source/core/xmlexp.cxx:1389
 #9  0x0000733dd83386f6 in SvXMLExport::filter (this=this@entry=0x1fc74160, aDescriptor=...)
     at xmloff/source/core/xmlexp.cxx:815
 #10 0x0000733dc62e6452 in ScXMLExport::filter (this=0x1fc74160, aDescriptor=...)
     at sc/source/filter/xml/xmlexprt.cxx:5472
 #11 0x0000733dc63204a0 in ScXMLImportWrapper::ExportToComponent (this=0x7ffc11959890, xContext=..., xModel=..., xWriter=..., aDescriptor=..., sName=...,
     sMediaType=..., sComponentName=..., aArgs=..., pSharedData=...)
     at sc/source/filter/xml/xmlwrap.cxx:707
 #12 0x0000733dc632679a in ScXMLImportWrapper::Export (this=this@entry=0x7ffc11959890, bStylesOnly=bStylesOnly@entry=false)
     at sc/source/filter/xml/xmlwrap.cxx:943
 #13 0x0000733dc6465d5e in ScDocShell::SaveXML (this=0x11d1c440, pSaveMedium=0x138252f0, xStor=...)
     at sc/source/ui/docshell/docsh.cxx:653
 #14 0x0000733dc646a519 in ScDocShell::SaveAs (this=0x11d1c440, rMedium=...)
     at sc/source/ui/docshell/docsh.cxx:1913
 #15 0x0000733dd6ae7432 in SfxObjectShell::SaveAsOwnFormat (this=0x11d1c440, rMedium=...)
     at sfx2/source/doc/objstor.cxx:3378
 #16 0x0000733dd6af0ae6 in SfxObjectShell::SaveTo_Impl (this=0x11d1c440, rMedium=..., pSet=0x7ffc11959fe0)
     at sfx2/source/doc/objstor.cxx:1520
 #17 0x0000733dd6af2f08 in SfxObjectShell::DoSave_Impl (this=0x11d1c440, pArgs=0x7ffc11959fe0)
     at sfx2/source/doc/objstor.cxx:2760
 #18 0x0000733dd6b2b3aa in SfxBaseModel::storeSelf (this=0x5348c30, aSeqArgs=...) at /opt/rh/devtoolset-12/root/usr/include/c++/12/optional:306
 #19 0x0000733dd6ab2671 in SfxStoringHelper::GUIStoreModel (this=this@entry=0x2ba275b0, xModel=..., aSlotName=..., aArgsSequence=...,
     bPreselectPassword=bPreselectPassword@entry=false, nDocumentSignatureState=SignatureState::NOSIGNATURES, bIsAsync=false)

perhaps some relation to https://gerrit.libreoffice.org/c/core/+/160363
which is a somewhat similar situation

Change-Id: I6b28ef0e9df0f44641fa5c582b5827dbcfb4af8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176765
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176792
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-19 21:26:25 +01:00
Xisco Fauli
08c04a589a tdf#163486: PVS: variable is used after it was moved
Since
commit 9fe2ead3d5
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date:   Fri Oct 8 06:43:18 2021 +0200

    loplugin:moveparam in svx

V1030 	The 'aSdrObjects' variable is used after it was moved.

Change-Id: I9b426204ff2e2e2d0f6b375e201259765aa12736
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176785
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-19 21:13:37 +01:00
Xisco Fauli
f6a539cb5f sfx2: unused returns
Change-Id: I0ab14e51d10cf67c956624710d1f82c69662e586
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176784
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-19 21:13:17 +01:00
Caolán McNamara
836d73a651 consider VndSunStarExpand an exotic protocol
and generally don't bother with it when fetching data
from urls

Change-Id: I51a2601c6fb7d6c32f9e2d1286ee0d3b05b370b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176645
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-19 20:20:03 +01:00
Dione Maddern
40a1affe63 Update git submodules
* Update helpcontent2 from branch 'master'
  to e9c7414e4fd17c6f2ffbe6208db2c741fe33e803
  - tdf#162504 Create help page for Number Format pane
    
    Create new page source/text/scalc/sidebar_number_format.xhp to describe
    the features of the Number Format pane in the Properties sidebar deck.
    
    In AllLangHelp_scalc.mk
    - Add new file source/text/scalc/sidebar_number_format.xhp to
    repository.
    
    In source/text/scalc/01/default_number_formats.xhp
    - Add variable and section tags so that content can be easily linked and
    embedded in other pages.
    - Remove old comments
    
    In source/text/shared/01/05020300.xhp
    - Add variable and section tags so that content can be easily linked and
    embedded in other pages.
    - Remove old comments
    
    In
    /home/dione/libreoffice/helpcontent2/source/text/shared/01/sidebar_properties.xhp
    THIS PAGE IS A WIP AND WILL NOT BE LINKED IN HELP UNTIL IT IS FINISHED
    - Embed description of the help page for Number Formats
    - Added index bookmarks (Currently commented out)
    - Updated application switches to hide the desription of the Paragraph
    pane for CALC and BASE.
    
    Change-Id: I7e1849ddc41cad7fd5d4b6c57e8a03186eb6575f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176720
    Tested-by: Jenkins
    Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-11-19 19:59:28 +01:00
Bogdan Buzea
74d46954cd tdf#160084 Simplify comparison for basegfx::fTools
Change-Id: I6ae56ad61ceec5bc34898befd636a0ceae8266e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176700
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-19 18:19:58 +01:00
Xisco Fauli
d02286e772 sw: unused return
Change-Id: I18a5665609b3e15a98bb88e6d307e9f18be967e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176778
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-19 18:03:34 +01:00
Xisco Fauli
980164fe22 svx: unused return
Change-Id: If747870121e3fc8c2d97b5fc769b2d928a4c3f9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176777
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-19 18:03:18 +01:00
Noel Grandin
f1ab6d3e04 Simplify SalGraphicsImpl::Init
it is only used for one thing, so rename it, and
use a default implementation to avoid having empty
implementations everywhere

Change-Id: Ib650bb520ccbfcc27537b754db4d3de4ad10e638
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176733
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-19 16:55:43 +01:00
Stephan Bergmann
256463f132 loplugin:passparamsbyref
Change-Id: I9ad592670399f25eeaea375bf71e6d30ee20118f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176763
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-11-19 16:25:54 +01:00
Xisco Fauli
d991795635 canvas: simplify calcTransformedRectBounds
Change-Id: Ia0314a985ae2183727587ad254faec12ee49b66c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176769
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-19 16:14:13 +01:00
Xisco Fauli
b20156432f canvas: simplify calcRectToOriginTransform
Change-Id: I851d9d11c9d3f3c34353913a146ad168a98dc3d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176771
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-19 15:48:30 +01:00
Xisco Fauli
e289fdedeb canvas: simplify getViewStateTransform/getRenderStateTransform
Change-Id: If9487aff0d80f7ee9d368cd97bc2828a856cc392
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176766
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-19 15:45:34 +01:00
Miklos Vajna
b0eceb839a svx: prefix members of SvxB3DVectorItem
See tdf#94879 for motivation.

Change-Id: I74c53028d9966ca4059c7a145b3fb0d914d8ae77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176770
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-11-19 15:32:51 +01:00
Hossein
1163713bca Improve LOK tilebench README.md for joining test
The previous command was not working, because of the lack of absolute
path and also the wrong path to the test document. This should be fixed
now.

Change-Id: I2230041e17e4b6b33cfd44e5f15a5fce086a5f1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176764
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
2024-11-19 15:18:10 +01:00
Pranam Lashkari
85ced7dad8 LOK: use boolean or disabled payload for EditDoc
it is more appropriate state variable for this particular command,
as in many cases its disabled and that can not be treated as false
as document still maybe editable

Change-Id: Ib19a0cc087518a18bf295abd08b93815606af1fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176736
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 04375f2a31cc6c233a015215f06682462b30425f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176748
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Tested-by: Jenkins
2024-11-19 15:04:25 +01:00
Tomaž Vajngerl
540ac6933b intruduce RenderContext, RenderOptions to remove code duplication
To remove code duplication when rendering main and master slide,
it is needed to put them into common code, so add RenderContext
and RenderOptions classes to put the common code into those.

Change-Id: Icf4039f85e0aa5bf4d43e6fe5efb725c90504173
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176762
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-11-19 12:54:55 +01:00
Christian Lohmaier
10d6a5d62e Update git submodules
* Update translations from branch 'master'
  to fdabff5f73e16046cb570561051304029eef48f9
  - update translations for master / 25.2 alpha1
    
    and force-fix errors using pocheck
    
    Change-Id: I667061bab346925defe899a544153314133b6bc5
2024-11-19 12:41:45 +01:00
Stephan Bergmann
d44621c7a7 Adapt to LLVM 20 trunk QualType::isAtLeastAsQualifiedAs change
...in
<b9d678d22f>
"[Clang] Use TargetInfo when deciding if an address space is compatible
(#115777)"

Change-Id: Ibe9e4882057edbdcdbd286416c3d317c292b2298
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176760
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-11-19 12:22:57 +01:00
Pranam Lashkari
69817b8a8c LOK: send state of EditDoc for write protection status
Change-Id: I58eb4ab04b4063e382bc6550b5cf08d7806a6c6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173470
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 3fa8df9e7f46fd7bf988ca96b0454e5c1ee0a153)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176749
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Tested-by: Jenkins
2024-11-19 10:47:47 +01:00
Miklos Vajna
c8b607b7c0 tdf#163883 editeng RTF export: fix broken offsets into the para style table
Regression from commit 70d1bd6ee0
(tdf#161652 editeng, RTF copy: only write used paragraph styles,
2024-06-20), type a few characters into the title placeholder shape in
Impress, switch to the Outline view, select all, copy, paste into
Writer: the resulting text nodes won't have paragraph styles, just
direct formatting.

Inspecting the produced RTF, the problem is that the styles table
started to omit unused styles, but the style -> offset mapping table
still included them, so the offset didn't match, which results in losing
the style on RTF import.

Fix the problem by building the mapping table later also also ignoring
unused paragraph styles there, to restore consistency between declaring
style entries and referring to them.

Change-Id: I9156a881543cc710eb12990f110ceefc77a1858b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176747
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-11-19 10:06:58 +01:00
Caolán McNamara
04afe8b86c cid#1608576 silence Overflowed return value
Change-Id: I131a201cbcbda3415864e357a45f0ac0cd296d7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176741
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-19 09:31:16 +01:00
Oliver Specht
f5cb83c033 tdf#160621 tdf#162702 Variable field dialog page resize
Reduce the size of the upper boxes to get more space for the
field value input.
Fixes also tdf#162702 by setting the size also to the number
format list box.

Change-Id: I96cc38b30fa7afccf6ca009aad3b15f1f051d381
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176106
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2024-11-19 09:16:01 +01:00
Andras Timar
6cb711645b docx: export empty GrabBag elements as self-closing xml tags
Although <tag></tag> and <tag/> are syntactically equivalent, we
got a report that some 3rd party tool could not process a docx file
produced by LibreOffice. In styles.xml there was
    <w14:ligatures w14:val="standardContextual"></w14:ligatures>
instead of
    <w14:ligatures w14:val="standardContextual"/>
This patch is meant to fix this, to mimic what Word does anyway.

Change-Id: Iea409981d2a2eac40c460bdae4d3dc7e8b0c33ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176680
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins
2024-11-19 08:10:27 +01:00
Michael Weghorn
c5f360a8f6 tdf#130857 uui: Drop empty GtkSizeGroup from password.ui
As the GtkSizeGroup [1] says:

> GtkSizeGroup provides a mechanism for grouping a number of widgets
> together so they all request the same amount of space. This is typically
> useful when you want a column of widgets to have the same size, but you
> can’t use a GtkGrid widget.

However, "sizegroup1" in this .ui file is empty, i.e.
doesn't group any widgets that should be the same size,
so drop it altogether.

[1] https://docs.gtk.org/gtk3/class.SizeGroup.html

Change-Id: I9ffa6d0d302c08c6668b40847dde04de11fb24cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176737
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-19 07:53:18 +01:00
Noel Grandin
193207c5ab improve loplugin passparamsbyref
I think I managed to disable this when I converted it to
use the shared plugin infrastructure.

So fix that, and then make it much smarter to avoid various
false positives.

Change-Id: I0a4657cff3b40a00434924bf764d024dbfd7d5b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176646
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-19 07:46:25 +01:00
Gülşah Köse
b4b3949da1 Fix the wrong detection of hidden autofilter button
Regression caused by 2942fdc8db

OOXML <filterColumn colId="0">

Autofilter range colID is not absolute id. It starts always with 0 even
if the autofiltered range doesn't start with col 0 in the document.

So we are checking the flag from document (rDoc), not from the autofiltered range. So
we should use absolute column id  to get right flag.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I1f94058caa23686596d57dd6983ddf02cd8f5e71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176564
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176717
Tested-by: Jenkins
2024-11-19 05:38:59 +01:00
Oliver Specht
3e9658a201 tdf#163340 pasting paragraphs with lists changed again
Pasting paragraph with a list into an empty or completely selected
paragraph with lists has been changed:
If the pasted paragraph(s) are all formatted with a list from the
paragraph style then this list will be preferred.
If some the pasted paragraphs including the first one are formatted
with a hard list then these attributes will be preferred.
If all paragraphs have a hard list or no list at all the list at
the target position will be preferred.

Change-Id: I5aa6834d32f7c69b2eb9f8330b282c0ae6fca559
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176478
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Jenkins
2024-11-19 01:15:43 +01:00
Oliver Specht
43b9ab55a3 tdf#163956 calculate line height differently in FORMTEXT
Lines containing EN_SPACES only ignore character height
while calculating line height. In FORMTEXT fieldmarks the character
height of the default EN_SPACES is not ignored.

Change-Id: I8a89f13875f61ed287ce1697a91b42f20bd17192
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176147
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Jenkins
2024-11-19 01:15:00 +01:00
Oliver Specht
c4aa95310d tdf#160267 Fix SVG and add PNG format from the clipboard
Since 6c04b8356c SVG was added
to the supported clipboard formats but it did not work.
SVG support is now fixed and PNG format is added in the gallery.

Change-Id: Ic9cb2eebfc37bd38605dfaa3a1c353a7532af357
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165908
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-11-19 01:14:11 +01:00
Oliver Specht
0313b56b93 tdf#162198 Reset default cell padding in RTF
66b4bfe302 introduced a default left/right
cell margin of 0.19 cm in DOCX import but is was also applied in RTF.
This is no longer applied in RTF import.

Change-Id: I192b2d17018c234837b926be64fdf27554b024e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173981
Tested-by: Jenkins
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-11-19 01:13:36 +01:00
Oliver Specht
075560420a tdf# 162326 reset paragraph list attributes on style apply
Follow-up to a593c27e88.
If Ctrl key is presseed then remove list attributes of the paragraph, too.

Change-Id: I29ea97ff08f45061d532b11cb981c534cc786f0f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174977
Tested-by: Jenkins
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-11-19 01:13:17 +01:00
Eike Rathke
03b2f4afc5 Resolves: tdf#163903 Add French (Republic of Guinea) {fr-GN} locale data
Change-Id: I46eb65f05a2015f7bd884585a544e030e143f5b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176735
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2024-11-18 22:45:54 +01:00
Eike Rathke
6acaa43376 Related: tdf#163903 Add French (Republic of Guinea) {fr-GN} [0x940C]
Change-Id: I2ebea83a757533088fc49a3c849e6b7890277d1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176734
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
2024-11-18 22:45:45 +01:00
Xisco Fauli
7a1ab3f0a3 tdf#163486: PVS: reference may become invalid
V758 	The 'aModel' reference becomes invalid when smart pointer returned by a function is destroyed.

Change-Id: If06b81fda6fdaf4debf5061dd0e3c6c7caccad5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176742
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-18 22:40:54 +01:00
Xisco Fauli
fd63354d2d tdf#163486: PVS: dereferencing of a potential null pointer
V522 	There might be dereferencing of a potential null pointer.

Change-Id: I23e4eba0399243ca67ecaa3101a327eece825687
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176722
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-18 22:37:52 +01:00
Caolán McNamara
a025eef003 cid#1606638 silence Overflowed integer argument
and

cid#1608572 Overflowed integer argument
cid#1607772 Overflowed integer argument
cid#1607196 Overflowed integer argument
cid#1606568 Overflowed return value
cid#1607573 Overflowed return value

Change-Id: I9a701b19026572127399712c3b660094f2a0bd40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176740
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-18 22:24:40 +01:00
Caolán McNamara
331bcad4db Revert "add an autotext 'common' directory like templates/common"
This reverts commit 3b267b65d2.

reports of test failures at:
https://gerrit.libreoffice.org/c/core/+/176508

Nothing depends on this right now, so I'll have second go at this later.

Change-Id: I95999f05c69fa9b2459128116927616b1f6a9ca5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176743
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-18 22:24:27 +01:00
Noel Grandin
09de897e57 simplify X11SalGraphics::DeInit
it is always called in the destructor, so lets just centralise the logic
here

Change-Id: I8c9b204d147315b6693fa7a08f759b53b9a6a17c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176731
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-18 20:51:52 +01:00
Noel Grandin
e4a6ca79be SalGraphics does not need virtual freeResources()
it is only called to do one thing, in X11SalGraphics, so make
it private to that class, and rename it to better fit its
purpose.

Change-Id: I16ea2f86f8b596351354faa80bb2bab4d2ac6e7c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176729
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-18 20:51:39 +01:00
Caolán McNamara
2261734d88 Resolves: tdf#163831 Invalidate cache if the style is modified
Change-Id: I4a43936a6a7130734f5ae459a9406da99bf0f5f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176727
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-18 20:22:47 +01:00
Michael Weghorn
7a551570fe qt: Update vim headers/trailers
Following

    commit 4f08a15f3b
    Author: lovatico21 <lorenzo04lovato@gmail.com>
    Date:   Wed Nov 13 18:12:58 2024 +0100

        updated vim footers in vcl/qt6/*.cxx

, update vim header/trailers to those in current
`TEMPLATE.SOURCECODE.HEADER` for other qt5/qt6
headers and sources as well (i.e. for directories
`vcl/inc/qt5`, `vcl/inc/qt6` and `vcl/qt5/`).

Change-Id: If9fea8f4ce955396f064dbd9fd706e76d947bce1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176705
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-18 18:48:35 +01:00
Michael Weghorn
4e770803c6 tdf#163792 gtk3: Don't always focus combobox when its popup closes
Since

    commit 405cf00e48
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Tue May 28 11:50:12 2024 +0200

        related tdf#160971 gtk3 a11y: Keep new combobox value

, closing an (editable) combobox like the font size one
in the Writer formatting toolbar resulted in the combobox's entry
having focus, while the focus was set to the document before that
commit.

Make this work as expected (again), by making grabbing the
focus conditional in 2 places:

1) In GtkInstanceComboBox::signal_popup_toggled,
only set the focus to the GtkEntry of the custom
combobox implementation if the child focus is already
inside of the combobox. As I understand it, the intended
logic is "move focus from the combo box's button to its entry",
not "unconditionally grab the focus".
This also matches what the gtk4 implementation does. Sync the
comment from the gtk4 implementation, which explicitly
mentions the case of the font combobox in the toolbar (which
behaves the same as the font size one in that regard) where
focus should not be grabbed.

2) In GtkComboBox::menu_toggled, only explicitly set focus to
the toggle button if the combo box is located inside of a popup.
This is the same condition used to grab all keyboard events.

The code to do both was introduced in

    commit 131c1c7da8
    Date:   Sun Nov 21 19:53:47 2021 +0000

        Related: tdf#145786 cooperate between our own grabs

whose commit message only explicitly mentions grabs
for popups. The scenarios described in the commit message
still work as expected with GDK_BACKEND=x11.

With this in place, focus now moves to the document
as expected when clicking on a combobox entry in the popup
for the font size combobox in Writer's formatting toolbar,
while clicking an entry in any of the comboboxes in e.g.
Writer's "Format" -> "Character" dialog's "Font" tab still
results in the entry of the combobox getting focus.

Change-Id: Ib07b034f8327dab19a2264ae3ed8e20ea918dd89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176713
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-18 18:42:59 +01:00
Xisco Fauli
b223a06401 tdf#163486: PVS: reference may become invalid
V758 	The 'rModel' reference becomes invalid when smart pointer returned by a function is destroyed.

Change-Id: I34cbf998da49a576b43b946187de94495f5e5529
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176716
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-18 16:39:45 +01:00
Stephan Bergmann
14f5d64771 Limit to len the number of UTF-16 code units being read
Change-Id: I62bcf2919cb97d16811e9a59a63f1155437b6740
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176718
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-11-18 16:37:28 +01:00
Xisco Fauli
f41701a71b CppunitTest_sw_layoutwriter2: split in two
It already had 109 tests

Change-Id: I52e7416091bb3ffa80c39a1409dc283771f7d9ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176710
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-11-18 13:59:06 +01:00
Patrick Luby
dbe8a75f79 tdf#163945 Lower priority of Skia flush timer
Commit f4c2c7c79c fixed tdf#157312
by lowering the timer priority to TaskPriority::POST_PAINT. But
it caused tdf#163734 so it was reverted to TaskPriority::HIGHEST
in commit 5a38e4f979.

While reverting to TaskPriority::HIGHEST did not cause tdf#157312
to reoccur, it did cause tdf#163945 so set the timer priority to
TaskPriority::HIGH_IDLE. This priority appears to be low enough to
fix tdf#16394 without causing tdf#163734 to reoccur.

Change-Id: Ifc2833a886d52117d46c02a80c88c674ad080824
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176698
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
2024-11-18 13:52:46 +01:00
Vasily Melenchuk
3c371b7bde Windows Taskbar: use progress bar feature (ITaskbarList3)
Any status progress in LO status bar is also represented
as progress in Windows taskbar.

Change-Id: Ibd7131ff6246cf5ea37ab8730d0eddfa084265c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171886
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-11-18 13:03:52 +01:00