Commit graph

497137 commits

Author SHA1 Message Date
Noel Grandin
b17171b949 improve lifecycle of SdrItemPool
I ran into a problem where this global object would be destroyed and
then resurrected during shutdown.
Rather than make the existing code more complex, extend the existing
vcl::DeleteOnDeinit code and re-use that here.

Change-Id: Ib63739f57f489b1131111e9bab1db5fba7fd17bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169697
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-28 17:38:31 +02:00
Michael Weghorn
802a106541 tdf#157009 android: Add missing subdir for Triple-T/F-Droid icon
Even with

    commit 69189de8fa
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Thu May 16 09:26:44 2024 +0200

        tdf#157009 android: Add icon symlink for F-Droid

(and its 24-2 backport) in place, the icon is not shown
for LibreOffice Viewer in the F-Droid app and on the repo
website [1].

Revisiting the related specs [2] [3], it turns out
that the icon needs to be in an "icon" subdir in the
"graphics" directory, so add that missing "icon" subdir
and move the symlink there.

From [2]:

> └── listings
>     ├── en-US                           (en-US is the default locale in F-Droid)
>     │   ├── title.txt                   (app name)
>     │   ├── short-description.txt       (short description, max 80 chars, mandatory)
>     │   ├── full-description.txt        (full app description, mandatory)
>     │   ├── video-url.txt               (URL to a video introducing the app)
>     │   ├── whatsnew                    (alternative changelog location; single file, no .txt)
>     │   └── graphics
>     │       ├── icon                    (app icon; mandatory if your app doesn't include any png icon)
>     │       │   └── *.(png|jpg)         1 image, usually 512x512

[1] https://f-droid.org/en/packages/org.documentfoundation.libreoffice/
[2] https://f-droid.org/en/docs/All_About_Descriptions_Graphics_and_Screenshots/#triple-t-structure
[3] https://github.com/Triple-T/gradle-play-publisher?tab=readme-ov-file#uploading-graphic-based-listings

Change-Id: I43c23040bf63a34f8f9648b45fab6c47a8816b8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169700
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-06-28 16:36:48 +02:00
Olivier Hallot
f60e65e196 Update git submodules
* Update helpcontent2 from branch 'master'
  to 8351b40030008eec294de3712fc1b67d99d00931
  - Organizer -> General in Help pages
    
    Change-Id: Ibe5a9e819138b964a5f7336f9d4a71c5d43dc1bb
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/169683
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-06-28 15:42:49 +02:00
Stephan Bergmann
80715756c6 Adapt flatpak build to upstream changes
<09d348eefc>
"krb5: Update krb5-1.21.2.tar.gz to 1.21.3 (#294)"

Change-Id: If99afd812eca43258398d79c1a7c009988d374e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169695
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-06-28 15:16:05 +02:00
Noel Grandin
86f296e82b use more ASSERT_CHANGE_REFCOUNTED_ITEM
which did I not see when I did
    commit cb3c65fb70
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Thu Jun 27 19:24:28 2024 +0200
    assert when SfxObjectItems are modified while in a pool

Change-Id: I16e2ee72eda4b3ca69f83eb70ad4f4b0a14748a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169696
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-28 14:58:33 +02:00
Noel Grandin
d900a952eb reduce number of SvxUnoShape listeners on SdrModel
when we have a lot of shapes, the number of listeners attached to
SdrModel becomes a serious bottleneck because of the number of
broadcast/notify function calls.

So
(1) make SvxUnoShape listen to the SdrObject
which achieves the same end, and reduces the bottleneck on the SdrModel.
(2) repurpose the maAllIncarnatedObjects set, which tracks all
objects linked to the SdrModel, so we can shut down the associated
UNO shapes during ClearModel. There is no other good way of doing
this, and if we don't do it, we get various use-after-free
issues during shutdown.

This takes the load time of a large DOCX with lots of shapes,
from 35s to 17s on my machine.

Change-Id: I34a6ac35c90de8b7103a7373aafe6e9607cc01c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169612
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-28 14:55:54 +02:00
Samuel Mehrbrodt
c519de2296 Fix autotext shortcut generation
The first character was replaced with a number.

Fallout from 1f93816dd5

Change-Id: I3b9a39336d5f6f3c10c85231f86fd196a29e3644
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169621
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Jenkins
2024-06-28 14:35:28 +02:00
Taichi Haradaguchi
9fdb507637 licence: Fix div tag and move License Statements
Change-Id: I9547679d0749e1bf539867cb1038c78ef8dcae12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169586
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
2024-06-28 14:30:29 +02:00
Sarper Akdemir
5e14349232 tdf#33603: fix notespane (side/tool)bar interactions
Introduces OverridingShells that when set, makes the view
act like the MainViewShell.

The main use case is having more then one ViewShell in a
single window, where context (toolbars, sidebars etc.) can
jump in between different ViewShells.

Uses OverridingShells to enable NotesPane to react
ToolBarShells. Accessing the functionality of ToolBarShells
without the previous hacks with slot forwarding.

Change-Id: Icc9721d7f54097025bc9dc7ef7069aed856e6d96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169658
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir@allotropia.de>
2024-06-28 14:25:36 +02:00
Sarper Akdemir
a7d1a6f313 languagetool show cURL errors with the interaction handler
Only shows the error once for a given checkerURL.

Change-Id: I1873dc09584df33162c93d9d133b12eb8dfede04
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169518
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir@allotropia.de>
2024-06-28 14:24:22 +02:00
Patrick Luby
2e87c64424 tdf#159680 fix memory leak of CTFontRef
The CTFontRef in CoreTextFontFace::GetVariations() was never
released and a new CTFontRef was allocated in every call to
CoreTextFontFace::GetVariations(). So release the CTFontRef
and only allocate it once when mxVariations is populated.

Change-Id: I08999956501d5860fff67e48001ef85a62ca8079
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169690
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-06-28 13:23:36 +02:00
Christian Lohmaier
2fd72ed9cb makefile simplification: cleanup template packaging mess
the tmplate packaging code was full of copy'n'paste code with little
understanding on how the rules actually work/what the statements
actually do. (e.g. using separate calls to addprefix can be a matter
of taste, but adding the call to get the extra files each time is
pointless and just adds the same set of files multiple times).

Unifying the fixed list of files and standardizing the base path for the
relative filenames further allows to streamline the recipes

Change-Id: I814fdb6f6534a9d5046281c45b6da87110f2093e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169342
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-06-28 12:56:49 +02:00
Sarper Akdemir
2ad7d5cfb0 make additionsdialog show connection errors
use non-scoped interaction handler instead of the scoped
SimpleFileAccessInteraction so that errors will be handled
with correct pop-up dialogs.

Also throw the correct type of DAVException for
USC_CONNECT_FAILED in Content::Open

Change-Id: If2031dfa2796f91fad6866bc9608194c92658b96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169519
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-06-28 12:06:25 +02:00
Christian Lohmaier
93dbba5361 Update git submodules
* Update translations from branch 'master'
  to b87971d7ac97460271cb13bd0e4cb2e554654a45
  - update translations for 24.8/master
    
    and force-fix errors using pocheck
    
    Change-Id: I512d2cb5e312ef9dcec6426c13ad33d10441b017
2024-06-28 11:51:29 +02:00
Olivier Hallot
50b982570e Update git submodules
* Update helpcontent2 from branch 'master'
  to 7c187e488710f930d4d0ec5291308af2e3776a46
  - Fix broken links on Insert Table Help pages
    
    + refactor of the files
    
    Change-Id: I60dbaf848250abefc80272b5885ad01536cc218f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/169652
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-06-28 11:07:37 +02:00
Miklos Vajna
b3e01bd3bd Related: tdf#161708 sw content controls: fix custom default of dropdown to PDF
Export the bugdoc to PDF without noticing that there is a content
control around some of the content and notice how the PDF export lacks
some words from the body text.

What happens is that content controls are exported to PDF as PDF forms
by default, and the selected option of a dropdown has to be an index, so
in case the text of the dropdown content control is not one of the
options, then the PDF will miss those words.

Fix the problem by inserting the text of the dropdown at the start if
there would be no valid index for it.

Also add a bit of padding around the rectangle of the content controls,
it turns out there is a default 1pt border in PDF, and this would lead
to a cut-off text at the end if we don't compensate for that border.

Change-Id: I99447894b320b42ad9ffe0d54d0190000621616b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169694
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-06-28 09:40:34 +02:00
Noel Grandin
912c55537b item-specific instance managers for SwFormatFrameSize and SwFormatVertOrient
and add some asserts to catch if we modify these things when they inside
a pool, which now that they are in hash-based container, will cause
trouble.

Change-Id: I2779f25cbcf056fbf71e417731d9b1f09ae33dd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169629
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-28 09:18:04 +02:00
Noel Grandin
cb3c65fb70 assert when SfxObjectItems are modified while in a pool
which has always been a problem, but becomes a more obvious problem when
I implement some upcoming optimisations

Change-Id: I8b0368b0b8e9a726c71d241841afeed3876281d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169657
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-28 09:17:52 +02:00
Andrea Gelmini
5b33bc4438 Fix typo
Change-Id: I8a970902688bdece46774e73b76ee2bdeea3de57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169608
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-06-28 09:11:07 +02:00
Andrea Gelmini
0381750784 Fix typos
Change-Id: I0418baac572db21f3b87af6281572e61b983e11d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169689
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-06-28 09:10:52 +02:00
Bogdan Buzea
390bfad2bb Resave with newer Glade version
Change-Id: If3fb270c17a32410fdd23ac37e46389c9cfdf56e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169604
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2024-06-28 05:17:20 +02:00
Bogdan Buzea
97833217eb Resave with newer Glade version
Change-Id: Iaa30a56068f7db4a735793d99e04f31054f8e17c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169426
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2024-06-28 01:48:29 +02:00
Bogdan Buzea
2668a9bb59 Resave with newer Glade version
Change-Id: I7524659a266204a470f2fd407112a2d8fc47c99d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169422
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Tested-by: Jenkins
2024-06-28 01:47:12 +02:00
Bogdan Buzea
e9dd8d2311 Resave with newer Glade version
Change-Id: Ic951f42f5a6dd7ab2d972a5ccc2d6e7fd3b5fa91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169596
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Tested-by: Jenkins
2024-06-28 01:45:51 +02:00
Justin Luth
5c6c6a73e9 tdf#43767 mso-format layout: no smallcaps applied to numbering
If the paragraph marker is formatted as Uppercase,
then Uppercase is applied to that line's numbering as well.
However, if the marker is formatted as SmallCaps,
it MUST NOT be applied for MSO formats.

Apparently MSO only supports Uppercase and SmallCaps,
not Lowercase or Titlease.

I don't like these adhoc exceptions, so I didn't
attempt to apply them to ODF formats.
Let's keep it simple for ODF - any char format that applies
to the entire paragraph should apply to numbering as well
(except for the existing underline/overline exceptions).
- if you don't like that char attributes apply at all, blame MSO.
- if you don't like that DOCX is missing your goofy formatting,
  blame MSO for being inconsistent.

ooxmlexport12's tdf143384_tableInFoot_negativeMargins.docx
is almost interesting because it applies superscript
and small caps. However, the list is already uppercase,
so it can't be used for the test.

make CppunitTest_sw_ooxmlexport21 \
    CPPUNIT_TEST_NAME=testTdf43767_caseMapNumbering

Change-Id: I273baebc996adfd001e1c591dbb9aef9272a42f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169476
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2024-06-28 01:24:36 +02:00
László Németh
8fc2fd284b tdf#92029 AutoCorrect: correct 's and 't in Dutch to apostrophe
“In Dutch (in Belgium as in the Netherlands), when you type "'s"
or "'t" in sentences like: "Ik ben 's morgens opgestaan", the
apostrophe is changed into an opening quote by the autocorrect
feature, which is incorrect and requires a manual correction.”

The bug reported with the suggested AutoCorrect extension
by Pierre François. The difference here is always to use the
de facto standard typographic apostrophe in the replacement.

Change-Id: I2ede612f72145abcca2bc1477ffae3cabc9e5641
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169645
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2024-06-27 23:07:29 +02:00
Patrick Luby
1ac602f6cc tdf#161498 use COL_ALPHA_OPAQUE for finding opaque pixels
Starting with commit 81994cb2b8,
pixels now contain an alpha value instead of a transparency
value.

Change-Id: I07dd39859057bbbbd153a21ee38625049039b106
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169654
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-06-27 22:32:09 +02:00
Tibor Nagy
df61a58461 tdf#157019 PPTX import: Workaround for object placeholder shape preset
Follow-up to commit Ic8a8ab3f6dfb7367ecd2c619ce888bf77abef460
"tdf#132557: PPTX import: Workaround for slide footer shape presets"

note:
This is a workaround because there is no custom shape support for
placeholder shapes in LibreOffice.

Change-Id: Iefb9d97e0eb10a04c39b515b11e549aeb7be8f25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169626
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Tested-by: Jenkins
2024-06-27 21:56:23 +02:00
Mike Kaganski
a337a6ed16 warning C6011: Dereferencing NULL pointer 'sNewPath'
C:\lo\build\instdir\sdk\include\LibreOfficeKit\LibreOfficeKitInit.h(161) : warning C6011:
 Dereferencing NULL pointer 'sNewPath'. : Lines: 136, 137, 138, 140, 143, 144, 157, 159, 160, 161

Change-Id: I0fba0db79b4a36f293e867da262a970eb152e3d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169651
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-06-27 20:44:24 +02:00
Noel Grandin
589bce3776 avoid OUString temporary
in a hotspot

Change-Id: I9fc3abc90c73e17b82fc7a4b197a91557c2ac6f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169610
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-27 19:09:22 +02:00
László Németh
7f593484a1 tdf#158051 AutoCorrect: don't apply final sigma before apostrophe
Don't change Greek sigma with final sigma, if the sigma is
followed by an apostrophe, which means removed word part (vowel)
here.

Follow-up to commit 5ecc0cad3f
"tdf#116387 Autocorrect greek character σ (sigma) to ς (final sigma)".

Change-Id: I6b7045502c04993cbad92f21f96ca5799abd1fd5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169637
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2024-06-27 18:24:27 +02:00
RMZeroFour
dd13569254 .NET Bindings: Remove absolute path check in DotnetLibrary
This commit removes the gb_DotnetLibrary__ensure_absolute gbuild
function that was breaking out-of-source directory builds.

Code using that function was changed to accept already absolute paths
as arguments.

Change-Id: I6d9d3dac33e296cf0e69910f16564d822047857e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169353
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-06-27 18:18:49 +02:00
Balazs Varga
f5f5ff719f Related: tdf#127293 Ignore 'search-criteria-must-apply-to-whole-cell'
dependency for XLOOKUP and XMATCH because of better compatibility.

The idea is to specify, that the global setting 'search-criteria-must-apply-to-whole-cell'
is ignored and XMATCH and XLOOKUP always behaves as if 'search-criteria-must-apply-to-whole-cell'=true.

That would affect exact search in Match_mode value 0. Users would need to use wildcard or regex
to get a match to part of the content. But removing dependency to the global setting increases
interoperability with MS Excel.

Also the ODF TC will follow that in the final specification of these functions:
https://issues.oasis-open.org/browse/OFFICE-4154

Follow-up commit: 17d578ba91
(Related: tdf#127293 Add new Match_mode option for XLOOKUP and XMATCH functions.)

Change-Id: I1317865631d2925eaff72e9c1425d93386c3d016
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169582
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Tested-by: Jenkins
2024-06-27 18:06:21 +02:00
Tomaž Vajngerl
e3d865274b annot: rename testAnnotationUpdate and add comments
testAnnotationUpdate is not specific, so rename the test name to
testAnnotationPositionUpdate.

Change-Id: I1608025143455ad789cf2cce84b80e8b8b6b2e34
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169641
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2024-06-27 17:31:42 +02:00
Balazs Varga
16d8f37cae tdf#159777 - A11Y sidebar: Add warning about ParaTopMargin
and ParaBottomMargin direct formats.

Change-Id: Ifac19eba9d3c2e3631ebede1a5f9f172bbaf8927
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169541
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Tested-by: Jenkins
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
2024-06-27 17:12:01 +02:00
Tomaž Vajngerl
189aed797b use ESelection::NoSelection() instead of manually setting values
Change-Id: I65f378d0178c0fcd209dc629f49befacfce02de2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169640
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-06-27 17:08:37 +02:00
Balazs Varga
5173341825 tdf#159925 - A11Y sidebar: Check for missing hyperlink name
Check if the hyperlink have missing name and add a fix button
to fix the warning.

Change-Id: I3a69490aa81cf0ed9d0edb04eaa3401e4b47eb7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169508
Tested-by: Jenkins
Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2024-06-27 17:08:31 +02:00
László Németh
2b9fee5a3e tdf#161737 i18npool: fix bad word selection with NNBSP
Fix word breaking rules also for editing. Previously
the word was selected with the following narrow no-break
space, e.g. at French words before exclamation and question
marks (where narrow no-break space allows to get correct
typography, if the OpenType/Graphite font doesn't have
this feature).

Add this and the previous fixes for Hungarian, which
handled by extra word-breaking rule files.

Follow-up to commit 6e002da161
"tdf#161737 i18npool: fix fake spelling alarms with NNBSP".

Change-Id: I7230bd356e5f0360172b652e615a61d96131d336
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169624
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2024-06-27 16:49:51 +02:00
László Németh
6e002da161 tdf#161737 i18npool: fix fake spelling alarms with NNBSP
Fix word break by excluding narrow no-break space at the
end of the words for spell checking.

This was a problem e.g. for French, where (automatically? or
manually) inserted narrow no-break space is used to get correct
typography before exclamation and question marks, also after and
before guillemets, if the OpenType/Graphite font doesn't have this
feature).

Regression from commit 44699b3de3
"tdf#49885 BreakIterator rule upgrades".

Note: this fixes also the problem, when digits separated
by NNBSP thousand separator weren't handled by spell checking,
alarming fake spelling mistakes, when "Check words with numbers"
was enabled in Tools->Options->Languages and Locales->Writing Aids.
(TODO: at the case of thousand separators, remove NBSP by the
linguistic module or by the spell checking dictionaries to allow
to check numbers with thousand separators and with correct suffix.)

Change-Id: I36e10add7e0ba840f207a375ccc8668dbfef9572
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169618
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2024-06-27 16:48:41 +02:00
Miklos Vajna
274ecfa4e2 sw: simplify SwShellCursor::Show()
If we carefully dereference the shell and its sfx view shell, then no
need to do this again, as pointed out at
<https://gerrit.libreoffice.org/c/core/+/169509/2#message-087d761946aeeb8e6a25ed46dafa10adc5dacc67>.

Change-Id: I4da444d1f4001849c7fe70ac0acd5e8af26b3415
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169636
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-06-27 16:29:02 +02:00
Tomaž Vajngerl
374a76adc5 vcl: Remove graph. reader context from {Imp}Graph and GraphicReader
This removes the mpContext member variable from ImpGraph, which
also make {Get,Set}ReaderContext on Graphic obsolete and is also
removed. GraphicFilter and other code is adjusted and simplified.

Change-Id: Icd1927d7b1bd4624b523d0f49a4343911ec6cd0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165214
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-06-27 16:07:20 +02:00
Samuel Mehrbrodt
0acac1a274 xlsx: Don't export notes author when in privacy mode
Change-Id: Id0b3f0aca7bd4e21f41c2a8307964423debcf5bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169616
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2024-06-27 13:49:05 +02:00
Samuel Mehrbrodt
9d0d9d8aa0 xlsx: Don't export changes author/date when in privacy mode
Change-Id: I1b1ef4dd75f02cc545721d5458617cfa92b26615
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169453
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Tested-by: Jenkins
2024-06-27 13:45:05 +02:00
Noel Grandin
2a9b53bb9f tdf#160345 Slow rendering of filled polygon
Partial fix of this problem.
The tiled image is a single pixel big, so we can do a solid color fill.
Ideally vcl needs to pass the operation down to skia/cairo and let those
layers do the tiling.

Change-Id: Ifcb1d1a71f0b23b772bbacf1b1e2b15ea315f578
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169619
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-27 13:10:01 +02:00
Noel Grandin
534b8f6d8a reduce boilerplate code for type-specific ItemInstanceManagers
create a template class to reduce repetition

Change-Id: I8c9c71fdfdac20a3b34432affac07aa1d46e8373
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169613
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-06-27 12:51:43 +02:00
László Németh
3a02490e1a tdf#138258 i18npool: allow ASCII double quote to match typographic quote
Similar to the straight (typewriter or ASCII) apostrophe, straight
double quotation mark (") matches its typographic variants now,
like other word processors do.

Note: regex search doesn't use this matching, similar to the apostrophe
search.

Follow-up to commit d40f2d02df
"tdf#117643 Writer: fix apostrophe search regression".

Change-Id: If6a3ee00750828583cd0cfc4aa7f7b656ea9bd1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169605
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: Jenkins
2024-06-27 10:22:11 +02:00
Miklos Vajna
8bc8f073e8 Related: tdf#161652 sw, RTF paste: avoid duplicated numbering styles
Open the DOCX bugdoc from
<https://bugs.documentfoundation.org/show_bug.cgi?id=161652#c6>,
select-all, copy, open a second document, paste as RTF, paste as RTF
again, the number of char styles in the document change from 27 to 55,
then to 73. That is surprising, paragraph styles work by first creating
them then a 2nd paste just refers to them.

It seems what happens is that paragraph styles are handled in
StyleSheetTable::ApplyStyleSheetsImpl(), and we have an explicit "When
pasting, don't update existing styles" code there; on the other hand
ListDef::GetStyleName() solves the style name collision by appending
enough "a" characters at the end of the style name till there is no
collision.

Fix the inconsistency by adapting the list style behavior to match what
paragraph styles do: if we don't open an RTF file but paste into an
existing document, then try to use the existing style on collision.

Fixing this on the RTF producing side would be less effective, also one
could argue that in case a numbering uses e.g. 3 levels, then it still
makes sense to emit the definition for all levels to help the editor
once numbering levels are increased in the pasted content.

Change-Id: Ia211cb4300c3c41dae8c815ddfaf30cc2f0de8b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169609
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-06-27 10:11:01 +02:00
Bogdan Buzea
5292ef333b Resave with newer Glade version
Change-Id: I258621ed37dd79e1254ebaa98a76964be6a98c38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169403
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2024-06-27 09:54:09 +02:00
AungKhantOo
9d9cd78049 tdf#159380 Add an UNO command to close all documents
Add an UNO command which closes the documents and also prompts the user to save while
closing unsaved documents.

This command also open the start center after all the documents are successfully closed.

Change-Id: I9c502cfa2e550c6f60fa8867fb42e36aded65999
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166041
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-06-27 08:05:15 +02:00
Moritz Duge
c8f72c2a3a Improve documentation on key and mouse handlers and listeners.
Change-Id: I443fd0c53f1fb11df3b4e13806771c2c649cae23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169473
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Tested-by: Jenkins
2024-06-27 07:24:31 +02:00