Commit graph

497835 commits

Author SHA1 Message Date
Caolán McNamara
990490781c cid#1555646 COPY_INSTEAD_OF_MOVE
Change-Id: I477cb9b74c99b32eb06e054fa38dd3ffa6bb77da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170447
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-14 15:16:31 +02:00
Caolán McNamara
2f3d6cf4d8 cid#1608181 Double lock
Change-Id: Id6121213f11c4ce0c855a0937fd2d7c81946c076
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170446
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-14 15:16:18 +02:00
Caolán McNamara
069fd3f54e cid#1608236 COPY_INSTEAD_OF_MOVE
Change-Id: I3f46c1d7e68dbf79ddbc9dc50d2735ebe1727b14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170445
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-14 15:15:58 +02:00
Caolán McNamara
e3e325d0ce cid#1607284 COPY_INSTEAD_OF_MOVE
Change-Id: Iacaf551260e878f39a36adc8b6d0ea142c092f98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170444
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-14 15:15:49 +02:00
Caolán McNamara
18b7d1895d cid#1608349 COPY_INSTEAD_OF_MOVE
Change-Id: I00f4afb09907b91c4d180a9dd7464226bb327af3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170443
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-14 15:15:22 +02:00
Caolán McNamara
c6d168749b cid#1608424 COPY_INSTEAD_OF_MOVE
Change-Id: Id56d0bf130e2c0a5935a577b82db6c6edd4c7610
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170442
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-14 15:15:15 +02:00
Caolán McNamara
a625049ead cid#1608453 COPY_INSTEAD_OF_MOVE
Change-Id: I059fb6a6b3af58ecedcf14c347adbb698348da1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170441
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-14 15:15:09 +02:00
Caolán McNamara
524ec386b2 cid#1608516 Overflowed constant
Change-Id: I0d494f512a45e93933fdb03f64238f12ed2570a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170440
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-14 15:14:42 +02:00
Caolán McNamara
aa8f60c90f move declares to first uses
Change-Id: Ia05d12b87093e1b9a87f4d4e144d4d98c2fbeaac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170439
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-14 15:14:26 +02:00
Caolán McNamara
884dd38e57 cid#1608572 silence Overflowed integer argument
try to convince coverity of the errors of its ways

Change-Id: I4e847f3773931dccaff1724166072bfde0b97941
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170438
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-14 15:14:09 +02:00
Caolán McNamara
b904816f73 cid#1608584 Overflowed constant
Change-Id: Ieefa43899f84938ba12227b30a2c9b273ac2c202
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170437
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-14 15:13:47 +02:00
Arnaud VERSINI
be1c9ee5b3 i18npool : use new OUtring literals
Change-Id: I2000f4c5409d988c9030e2eec70247d8f79059e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166970
Reviewed-by: Arnaud Versini <arnaud.versini@pm.me>
Tested-by: Jenkins
2024-07-14 15:00:25 +02:00
Yuki Joou
cfe6ce1656 tdf#145538 - related: Make tools::PolyPolygon iterable
This patch allows tools::PolyPolygon to be iterated using c++11's
fancy range-based for-loops. It also upgrades a bunch of old-style
for-loops iterating over polypolygons to the new style to make code
more readable.

Note that not all for-loops iterating over polypolygons have been
upgraded, as I didn't find a way to automatically find those. I just
did a few I found manually.

Change-Id: Ifa8d0d44e6f0aa28fdcfd87d70058b12f48c1349
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168730
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-07-14 12:24:14 +02:00
HakimOttey
63fe0d6c07 tdf#114441 replace sal_uLong with tools::Long
Make variable nHScrX have tools::Long data type as it is expected to be tools::Long when used in SetPostSizePixel

Change-Id: If7e0c1ee1a9832b215c766cbf8bf916c731edfd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167804
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-07-14 09:33:38 +02:00
Julien Nabet
f9de7bc951 Fix Python: use is None/is not None instead of == None/!= None
Thank you Kevin for having spotted this!

Change-Id: Ic63469d2d8dfd3f7848b6fc2250f90271055c027
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170449
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-14 08:46:22 +02:00
Jim Raykowski
2c46d3c2ff tdf#161811 Changes in TC manager dialog should be in order of
appearance in document

Adds a drop down control to the Writer Manage Changes dialog/sidebar
panel that can be used to select how the changes list is sorted.

Change-Id: I9602322ec61ae6e15a08fbc26aa69de1b64294e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170390
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2024-07-14 05:31:46 +02:00
Tomaž Vajngerl
3f7d0f79f1 annot: make all keys work when writing in annotation window
We did not call the method on the superclass when we don't handle
the key ourselves, but we should.

Change-Id: I67d55773b7e86297c00727b4791c16a1adcc37f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170430
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-07-14 05:20:49 +02:00
Tomaž Vajngerl
aff09d7cb4 tdf#161994 annot: trigger selection of the current annotation
Delete annotation isn't active if no annotation is selected, but
we do not report a new selection anymore, so fix this.

Change-Id: Idb455d0c0d42412c55de4a7ca037342b58da548b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170429
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2024-07-14 05:20:41 +02:00
Tomaž Vajngerl
45d8c51610 annot: simplifx getting the proper window for popup
Change-Id: Ic9e01d57137ddfbb6f4ec741a275b579741675a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170428
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-07-14 05:20:04 +02:00
Mike Kaganski
ccc3996cfc tdf#161990: take MapMode's origin point into account
Regression from commit cc3663bbae (tdf#160702:
improve text positioning, 2024-04-20).

Change-Id: I03f461d7f03c3e67ccdb8c4376720feb69903d6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170432
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-13 23:17:11 +02:00
Mike Kaganski
86fc557c70 Add a note about autogen.input into autogen.sh --help output
Change-Id: Ie983645114817d3cadca8b5f243f4a47db054e0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170435
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-13 22:18:14 +02:00
Caolán McNamara
4724386984 cid#1609652 COPY_INSTEAD_OF_MOVE
Change-Id: I0d8901983a81b84d653b4279e90fd961b97ed0d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170436
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-13 22:11:44 +02:00
Caolán McNamara
22909e7e94 cid#1610240 Unchecked dynamic_cast
Change-Id: Iee9088344bb3319b751bc3c611ad0ab5e42374b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170434
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-13 22:11:37 +02:00
Caolán McNamara
72922587b9 cid#1610241 silence Improper use of negative value
Change-Id: If258376bb3303ea6cd497c30c0610f22f7fe2f7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170433
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-13 21:59:49 +02:00
Noel Grandin
154b204010 boost::unordered_map to std::unordered_map in configmgr::Partial
Change-Id: I030a175af694d1e0025ac2c047141913b08c3be4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170395
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-07-13 18:49:04 +02:00
Noel Grandin
3fcdebc472 use DeleteOnDeinit for EditEngine pool
to avoid it accidentally coming to life during shutdown.

Change-Id: I016a3396639c30350432b60c375c9777e551eb84
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170425
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-07-13 18:48:25 +02:00
Mike Kaganski
b5907f1d6e Simplify a bit
Change-Id: I7eaedfcd630a71ca2966d9622121c40aefae1e03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170427
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-07-13 18:16:22 +02:00
Laurent Balland
9eeffa4d2b Update Beehive template
- group hexagons
- replace correctly hexagons
- use Outlined Yellow and Filled Yellow as styles for hexagons
- correct ODF validator errors

Change-Id: I5f618f9812230ccf54763638c51adf197e87efea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170066
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
Tested-by: Jenkins
2024-07-13 15:56:15 +02:00
Laurent Balland
45a306ddd1 tdf#161799 Preserve default styles in Freshes template
Same as https://gerrit.libreoffice.org/c/core/+/169661
for Freshes template

Change-Id: I20630ef6a1b1c31c9b91bfc4c3389609586c6414
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169768
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
Tested-by: Jenkins
2024-07-13 09:52:19 +02:00
Julien Nabet
1f8a9bfcdb Python: use is None/is not None instead of == None/!= None
Change-Id: I1c34181897506ad29a063865d752cb85ab76dbc3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170408
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-07-13 09:13:54 +02:00
Jonathan Clark
4c8f88bef9 tdf#92064 sw: Improve Tibetan layout performance
This change includes the following scalability improvements for
documents containing extremely long paragraphs:

- Reduces the size of layout contexts to account for line breaks.

- Disables a misbehaving glyph cache performance optimization for long
  strings.

Change-Id: Ie9a3365076c0d112a7a655988d672a9f4609b42b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170420
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2024-07-13 04:22:05 +02:00
Julien Nabet
08e117def0 Reindent mailmerge.py to use 4 spaces instead of tabs
No functional change.
I used reindent.py from https://github.com/certik/python-3.2/blob/master/Tools/scripts/reindent.py

Change-Id: I03c5425ef26131f09e0b9de56737b2e069722e7e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170419
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-13 00:08:12 +02:00
Caolán McNamara
ddcca37dbf cid#1607312 silence Overflowed integer argument
Change-Id: I5de8e5756bbbe1d47d9dd40c2d49122ef8e7f15b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170418
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-12 22:41:31 +02:00
Caolán McNamara
9b11c113e9 cid#1607641 silence Uncaught exception
Change-Id: I26b4c999cfd6d782c340a7a101b11c979d0a8329
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170416
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-12 20:04:58 +02:00
Caolán McNamara
725d235c53 cid#1607932 Unused value
since:

commit 84a3db80b4
Author:     Jens-Heiner Rechtien <hr@openoffice.org>
AuthorDate: Mon Sep 18 23:08:29 2000 +0000

    initial import

Change-Id: Ic853ca130d45c2393f0f6b20877a4461ef6fa585
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170415
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-12 20:04:51 +02:00
Caolán McNamara
5e55d482b1 cid#1555962 Use of auto that causes a copy
and

cid#1556100 Use of auto that causes a copy
cid#1556199 Use of auto that causes a copy
cid#1556239 Use of auto that causes a copy
cid#1556313 Use of auto that causes a copy
cid#1556373 Use of auto that causes a copy
cid#1556680 Use of auto that causes a copy
cid#1557020 Use of auto that causes a copy
cid#1557099 Use of auto that causes a copy
cid#1557251 Use of auto that causes a copy
cid#1557334 Use of auto that causes a copy
cid#1557468 Use of auto that causes a copy

Change-Id: Ib5ab5b33eabcac3d18899ceaaa9119e13b0139f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170412
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-12 20:04:43 +02:00
Caolán McNamara
6f0f0bbaeb cid#1555513 silence Use of auto that causes a copy
Change-Id: I9c079460215ca2c62126a04caec2b1246dff0f46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170411
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-12 20:04:35 +02:00
Caolán McNamara
b6fb455dee cid#1555260 Use of auto that causes a copy
Change-Id: I256705562832a408b751b28c0bb133f4561e5522
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170410
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-12 20:04:17 +02:00
Stephan Bergmann
a0f3225984 Turn org.libreoffice.embindtest.Test from singleton to service
...so that testing its StringAttribute stars out with a known state.  And which
revealed that the test code in unotest/source/embindtest/embindtest.js was
actually wrong in assuming that that UNO attribute would be represented by a JS
accessor property, when actually it is represented by a pair of
get-/setStringAttribute member functions.

Change-Id: I1a6e7c9f26e9a08cd089b7972a23f4c608c6b1bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170414
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-07-12 19:36:46 +02:00
Armin Le Grand (allotropia)
f74bb604ff Make SystemDependentData mechanism type-based
Up to now that genereal buffering mechanism used
typeid.*hash_code to identify the class. As we
have learned this is not safe. Thus I changed it
to use enum'ed SystemDependentDataType definitions

Change-Id: I803912ec419290db1d40bae0bc41364fad64cbfd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170385
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-07-12 17:59:50 +02:00
Caolán McNamara
943ee53259 cid#1555177 Use of auto that causes a copy
Change-Id: I35cd8baa84fdbca49c17143968a71dcc9a0d760f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170409
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-12 17:39:16 +02:00
Balazs Varga
629a20b97f tdf#159776 - A11Y sidebar: Fix no warning about multiple tabs
used for creating spacing.

Change-Id: I9a2725954406140efa27ccc3ae30f19d0bd1fa8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170387
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Tested-by: Jenkins
2024-07-12 16:54:01 +02:00
Mike Kaganski
8b8fd948cf Optimize a bit
Change-Id: I676533742f1a91bb1f68b0098a1d54a93d09c6ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170402
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-12 16:29:20 +02:00
Caolán McNamara
79b6c25a2a cid#1555445 silence Using invalid iterator
Change-Id: I7a4084a9b35f808f41abb4509315d5441eb526e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170396
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-12 16:24:27 +02:00
Ilmari Lauhakangas
64021a1039 PyUNO bridgetest: adapt to alias removals in unittest module and
fix syntax errors

Change-Id: I7e853ba25fd0b541ea7d2770335810b2d9dcb207
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170399
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-07-12 15:18:35 +02:00
Rafael Lima
2f113fe5b2 tdf#161785 Fix order overlays are repainted
Prior to this patch, the selection overlay was painted above the cursor when scrolling/resizing the window. This patch reorders it so that the selection overlay is always below the cursor.

Change-Id: I5a9a66eeb6285b4a9b8954a44189ddcb6039d155
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170299
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-07-12 14:47:42 +02:00
Mike Kaganski
410da49f01 tdf#129244: fix thinko
Change-Id: I838dfce7d9d329a938c09a2a114dbafffe149ace
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170405
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-07-12 14:14:59 +02:00
Vladislav Tarakanov
fe897b36ae tdf#158510 Launch media from a presentation dir path
Added a check for the existence of a file at a given URL.
If the specified file could not be found, the path formed from the
directory containing the presentation file and the file name is used.

Change-Id: Ia4124f4fa5e5cef19c81f325676749a2540e486a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164023
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-12 14:02:42 +02:00
Andrea Gelmini
7fbce44cac Fix typo
Change-Id: I1782388a1d6d3e554867427532f4eb98d7ca200a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170403
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-12 12:21:06 +02:00
Mike Kaganski
c2eb8d81e0 tdf#129244: Let ImpGraphic update its buffer for new pixel sizes
It used getVectorGraphicReplacement once,  getting a bitmap with pixel
size that depended on the default device DPI,  unrelated to the needed
bitmap size. It was not updated later, using the cached bitmap for any
requested size.

The DPI passed to convertPrimitive2DSequenceToBitmapEx  must represent
the relation  between the vector logic size  and the pixel size of the
generated bitmap, not the target device DPI.

This change introduces VectorGraphicData::getBitmap to obtain a bitmap
for any requested pixel size, and uses it every time in the introduced
ImpGraphic::updateBitmapFromVectorGraphic method every time it needs a
new size of the image.

Change-Id: Ife1305821fff28f0cd4070615ab032211a5d8c4f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170391
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-12 12:06:48 +02:00