Commit graph

497835 commits

Author SHA1 Message Date
Tomaž Vajngerl
c0653c1e26 vcl: add more GIF metadata to GraphicFormatDetector
Change-Id: Ie85947371df087495a80179e4e0f2f660877e368
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166277
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2024-07-07 09:41:24 +02:00
Tomaž Vajngerl
02c91f82c2 move UniqueID to tools and rework to increase counter in constructor
In the tools module it can be used in more other modules.

Changed the instantiation to increase the counter already in the
constructor, so no need to check if the ID is 0.

Also test for UniqueID

Change-Id: I77c80461875c69496a7e218534d16d6550c168c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170061
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-07-07 09:41:02 +02:00
Tomaž Vajngerl
7cc291a8f2 vcl: inch-size.emf is actually PICT format, rename to inch-size.pct
Change-Id: I69c1cf65415546811777ec3df914db3596887db6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166276
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-07-07 03:47:33 +02:00
Tomaž Vajngerl
267083e9e7 vcl: remove GraphicDescriptor::ImpConstruct
It's not really needed - it sets values to defaults, which are
already set.

Change-Id: If61edace7975cd438d86ee9774535c0f14868fd5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166275
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-07-07 03:47:16 +02:00
Jim Raykowski
294cb227e0 Make Managed Changes panel fill remaining vertical space
Affects x11, qt, win, and possibly mac. Gtk fills the remaining vertical
space with or without this patch.

Change-Id: I30a8f9f97ee4de2c11b8c0c05054d9783a1fb191
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170060
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2024-07-07 02:42:53 +02:00
Jim Raykowski
adad59c6f7 tdf#161717 Enhancement to identify click on tracked change in the
document by highlighting the corrosponding entry in the "Manage
Changes" dialog and sidebar panel

Change-Id: I1f31580a4fe764dd800c6db1e9a4e2024db14c6d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169692
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Tested-by: Jenkins
2024-07-06 23:55:46 +02:00
Caolán McNamara
f960d27f15 cid#1554774 silence Use of auto that causes a copy
Change-Id: Ie562fa0c4942286cb7dec01473455234f6ebd56d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170048
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-06 22:15:07 +02:00
Caolán McNamara
12a94012ca cid#1554717 COPY_INSTEAD_OF_MOVE
Change-Id: Icb1df2b857568cf085b597e378094e7231286fce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170047
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-06 22:14:59 +02:00
Caolán McNamara
b8ed305052 cid#1554704 COPY_INSTEAD_OF_MOVE
Change-Id: I844d0bfcdb5b16d0e6e06499ceac2add0e26bb9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170046
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-06 22:14:51 +02:00
Caolán McNamara
ef1337b732 cid#1545304 silence Using invalid iterator
Change-Id: I653c9b9313a854646028c7b2d9982c1233377ea0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170045
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-06 22:14:43 +02:00
Caolán McNamara
95ef9610aa cid#1609596 silence Unintended sign extension
Change-Id: Ia0e95e0dd82e28f155ddf79c48832a9e0ddc3d98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170024
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-06 22:14:35 +02:00
Caolán McNamara
25a1ac878b cid#1609597 silence Using invalid iterator
Change-Id: I08e9ee6016ca0d67be76b0a04e7205e6d90bb46e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170023
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-06 22:14:28 +02:00
Caolán McNamara
d6c58ec277 cid#1609595 Dereference null return value
Change-Id: I6ae93f46c50e0fe4a29d03fdf02797f808d4d1c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170022
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-06 22:14:21 +02:00
Caolán McNamara
9e8c9944b9 return early if there is no m_pDocShell
Change-Id: Id53115f9cb098b9b8ff1a529f5237054cdfd391e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170014
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170049
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-06 22:14:15 +02:00
Caolán McNamara
1227e651bc cid#1608554 COPY_INSTEAD_OF_MOVE
Change-Id: I466a68048496fa4f4aa8177621a6484a261d2069
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170021
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-06 22:14:07 +02:00
Caolán McNamara
0faabc0570 cid#1555223 COPY_INSTEAD_OF_MOVE
Change-Id: I991ea6869a22476d793bf301183ccc984d411a49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170020
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-06 22:13:53 +02:00
Caolán McNamara
bc6215f809 cid#1545593 COPY_INSTEAD_OF_MOVE
Change-Id: I8252fcd741996b8019edd1fac63e27908fe362d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170019
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-06 22:13:43 +02:00
Alain Romedenne
4889e0de06 Update git submodules
* Update helpcontent2 from branch 'master'
  to e859581bf5302296634127cd7bb6576f6e3ec932
  - tdf#149786 tdf#161495 VBA objects & properties & methods (WiP)
    
    - ActiveSheet object
    - (Calc).ExportAsfixedFormat method
    
    This initiates a documentation help page intended to aggregate MSOffice VBA objects
    features that are currently supported.
    Change-Id: I679e9a64923b69fd0d1a5ac99d39651fd8353fc7
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168530
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-07-06 21:31:28 +02:00
Andrea Gelmini
b988ab22f4 Fix typo
Change-Id: I5d2030f1057f0a2232680ed60f4312331eca2926
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170063
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-06 20:53:03 +02:00
Xisco Fauli
f41773d684 python3: silence distutils deprecated warning (take 2)
Since a1295cb177
"python: upgrade to 3.10.14 (master only)"

Now it fails with
Traceback (most recent call last):
  File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/UnpackedTarball/lxml/setup.py", line 23, in <module>
    import setupinfo
  File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/UnpackedTarball/lxml/setupinfo.py", line 7, in <module>
    from distutils.command.build_ext import build_ext as _build_ext
  File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/instdir/program/python-core-3.10.14/lib/distutils/command/build_ext.py", line 13, in <module>
    from distutils.sysconfig import customize_compiler, get_python_version
  File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/instdir/program/python-core-3.10.14/lib/distutils/sysconfig.py", line 58, in <module>
    warnings.warn(
DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
make[1]: *** [/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/external/lxml/ExternalProject_lxml.mk:26: /home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/ExternalProject/lxml/build] Error 1

Change-Id: I9000018390b31a65a30ef87d0c500872fc6c9343
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170069
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-07-06 18:54:59 +02:00
Xisco Fauli
dc97b366ab python3: silence distutils deprecated warning
Since a1295cb177
"python: upgrade to 3.10.14 (master only)"
Some builds started to fail with

Traceback (most recent call last):
  File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/UnpackedTarball/lxml/setup.py", line 15, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/UnpackedTarball/lxml/setup.py", line 17, in <module>
    from distutils.core import setup
  File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/instdir/program/python-core-3.10.14/lib/distutils/__init__.py", line 19, in <module>
    warnings.warn(_DEPRECATION_MESSAGE,
DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
make[1]: *** [/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/external/lxml/ExternalProject_lxml.mk:26: /home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/ExternalProject/lxml/build] Error 1

The problem is that python 3.10 doesn't bundle setuptools so
it's not possible to replace it at the moment

Change-Id: I9a9d077b51f49e912dab4941efe8751c2fcc76e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170068
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-07-06 17:37:46 +02:00
Tomaž Vajngerl
5b57fe2501 vcl: clean-up and refactor GraphicFilter::ImportUnloadedGraphic
- Remove code duplication - Z decompress with a helper function.
- Split up the code to make it better readable.
- Default status to ERRCODE_GRFILTER_FILTERERROR and only return
ERRCODE_NONE on success.

Change-Id: I27c1ba6198120c66d5348702a6af1ffbfa7c5031
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166274
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
2024-07-06 13:39:23 +02:00
Peter Hagen
1d4cecf2f3 Related tdf#161461: break out of loop once data flavor is set
Change-Id: Ia56514e83e09c6747f582117e77de89f69495862
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170034
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins
2024-07-06 13:10:16 +02:00
Noel Grandin
ae2235ccf0 use o3tl::sorted_vector in DefaultItemInstanceManager
Change-Id: I16426008dd8983d56a49b3334b3f163ec350be0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170057
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-06 10:15:09 +02:00
Xisco Fauli
7aba05331b DBTestBase: call close at tearDown
Otherwise, calling different tests one after the other
will fail with

warn:vcl:994718:994718:vcl/source/app/svmain.cxx:497: DeInitVCL: some top Windows are still alive
text = "lu9947181i0ytl.tmp — LibreOfficeDev Base" type = "10WorkWindow", ptr = 0x555b3ab76810

Change-Id: I6124b768e165ed841738d29c6071e7950b58229f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170058
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-07-06 09:08:58 +02:00
Tomaž Vajngerl
3f7cc820f9 UniqueID class that generates and stores a uniqueID for an object
UniqueID generates an unique ID (unique for all users of UniqueID)
and keeps the value for the object's life time.

Change-Id: Ic2cc1665e57b1984c231a050f82a330c9dcf1ffc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169691
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170017
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-07-06 06:00:17 +02:00
Justin Luth
cdf2681d99 tdf#134204 sw: notify when para style inherited a new property
The current logic is totally flawed.

This is one step better. Don't allow one of the special conditions
to prevent a non-special attribute from being propogated
down the style inheritance tree.

Change-Id: Ib24ba688700e3c1156449a64d89431043a5c85b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169724
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-07-06 00:24:40 +02:00
Xisco Fauli
a1295cb177 python: upgrade to 3.10.14 (master only)
Downloaded from https://www.python.org/ftp/python/3.10.14/Python-3.10.14.tar.xz

* external/python3/macos-11.patch.0 should be long
obsolete by now

Change-Id: I454851f7684e699519370bdbbcd9bb9a2cccd077
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170051
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-07-05 23:15:07 +02:00
Xisco Fauli
4a3706db4f pyuno: fix deprecated warnings
* Replace PyUnicode_FromUnicode(str, len) with PyUnicode_FromWideChar(str, len)
* Replace PyUnicode_AS_UNICODE(PyObject) with PyUnicode_AsWideCharString(PyObject, size)

Change-Id: I1d8b46059d72f4de261d99393e1681f1e41eafdf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169625
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-07-05 23:14:52 +02:00
Peter Hagen
e4cbe169bd Related tdf#161461: break out of loop once data flavor is set
Change-Id: I37126d2d77a7a80168bd5ab08fa26e8eabfa22cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170055
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-07-05 23:09:40 +02:00
Noel Grandin
5e7c94c602 fill in more SfxItemType values
found by doing some git grepping, we should now have values
for all items in the hierarchy

Change-Id: I397ca7e8f53f53737201385c4c8029b436895c1d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170016
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-07-05 20:08:57 +02:00
Michael Stahl
c409c83d77 package: avoid throwing RuntimeException in getZipFileContents()
Translate it to ZipIOException.

Change-Id: I7a07a59c0ba301b92f31696355c73ccbdf119ff8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170013
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-07-05 16:13:17 +02:00
Andras Timar
958cabd2e9 Bundle fonts of Google's DocRepair Project
See https://fonts.google.com/?query=The+DocRepair+Project
DocRepair project intended to improve compliance with the
ISO/IEC 29500 standard by providing fallback for proprietary
fonts that minimizes text reflow in Office Open XML documents.

Agency FB -> Agdasima
Baskerville Old Face -> Bacasime Antique
Berlin Sans FB -> Belanosima
Cooper Black -> Caprasimo
Lucida Calligraphy -> Lugrasimo
Lucida Grande -> Lunasima
Lucida Handwriting -> Lumanosimo

Change-Id: I82a29bd9eeda88198290134a7906a35b6349a1b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169765
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169828
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2024-07-05 15:37:11 +02:00
Xisco Fauli
7216a5a4ff CppunitTest_dbaccess_embeddeddb_performancetest: fix dependencies
Otherwise it fails with

EmbeddedDBPerformanceTest::testPerformance finished in: 426ms
macros_test.cxx:74:Assertion
Test name: EmbeddedDBPerformanceTest::testPerformance
assertion failed
- Expression: xComponent.is()

After this patch, the tests still fail, but for another reason.

Change-Id: I4fc11a9feef79efd71be8d6bab76f8777c92d115
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170012
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-07-05 15:31:58 +02:00
Pranam Lashkari
4c3f2194bb LOK: fixed incorrect Logic point calculation for Map mode
problem:
it was very difficult to select line in online,
specifically in writer if line is very think and
it was almost impossible to select line

Change-Id: Ib641cd3d9795b93d47c78bc8f57211f51714844d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168837
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit a0612242a395e1be1fe8383537bc5a82d6b882ac)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169011
Tested-by: Jenkins
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
2024-07-05 14:06:27 +02:00
Xisco Fauli
355e553505 libxslt: upgrade to 1.1.42
Downloaded from https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.42.tar.xz

Change-Id: I77de8a0922c5271161640eae5c92b425c5be82c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170011
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-07-05 13:39:37 +02:00
Tibor Nagy
74b312d6f2 Add escape direction support for glue points in the preset shapes
Change-Id: I6727def5dd42ecd5dae3ddd27d2af733b5883e09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170006
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
2024-07-05 11:34:30 +02:00
Tibor Nagy
a14531e413 The connector shape is losing its connection
The issue is that we are trying to set the connector shape properties
too early, but the shapes that we want to connect to have not been created yet.

Follow-up to commit Ie95ccd5bcd4d5c3f9c45c7dcc4f88acc0c9438aa
"tdf#157172 tdf#157460 PPTX import: fix connectors adjustment values"

Change-Id: I63c76535cc718bc46d5c3ed5489b752925cd6a77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170007
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
2024-07-05 11:00:31 +02:00
Michael Stahl
2afdc61dd3 package: ZipFile: treat junk at the start of zip as invalid
Probably the only legitimate use of such is self-extracting archives,
irrelevant for LO.

ofz56826-1.zip is an example; given what Info-Zip unzip prints about
this file we don't want to successfully open it.

Change-Id: I9568710227e4a152f9dc7bc356184394d7da8eba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170002
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-07-05 10:12:30 +02:00
Tomaž Vajngerl
48e76366ea annot: don't show the annot. object if LOK and not PDF document
In online the client side comments/annotations are used, so to
keep this behavior for presentations we only enable the core side
rendering of annotations when the document is a PDF. No change in
the desktop applitation.

Change-Id: I50ffd1b6d81d2fcf6ef9f821e783ae228e39e4e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169969
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-07-05 09:29:28 +02:00
Noel Grandin
269654fe17 fix asan build
after commit 85fd526fc6
"fix and simplify the ItemInstanceManager mechanism"

The problem is that some *Item classes in sw/ and sc/
share WhichIds, and a whole bunch of SfxBoolItem
subclasses share the same SfxItemType enum value.
So we ended up mixing and matching objects
of different concrete subclasses in a given
*ItemManager collection.

Add some asserts to the global pool code to catch
issues like this earlier on.

Add unique value of the SfxItemType enum for all
the SfxBoolItem subclasses

Change-Id: I3c8d4e02be1cd412b0292e973a6498df5f8e7102
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170003
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-05 08:59:49 +02:00
AungKhantOo
07a166790b tdf#159380 Fix for Add an UNO command to close all documents
Change the condition if the documents are immediately closeable.
Now, save locked documents are not immediately closeable.

Remove the check if in quit or closing docs in SID_CLOSEDOC in
objserv.cxx as it becomes unneccessary.

Remove some extra new lines which are unnecessary changes from
before the patch.

Change-Id: Iab16629fe436f4365000fb2a016bbb1fb49c181c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169983
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-07-05 08:12:37 +02:00
Andreas Heinisch
8cf0bc36a8 tdf#158110 - Paste special: improve check for cells with notes
Change-Id: Ia18d8f91ee2d4493174255424ce7e3b7310c369d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169355
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
2024-07-05 08:11:53 +02:00
Mike Kaganski
96c3d78f39 Make window's default mouse position a large negative
Some operations, like DrawViewShell::Activate, trigger FuDraw::ForcePointer.
The latter may call SdrView::PickAnything to test if the pointer is over an
object. In SdrMarkView::CheckSingleSdrObjectHit, the bound rectangle of the
object is tested first, which doesn't need the object's deep processing. If
the point in in the rectangle,  the object is processed further,  which may
render the object. The hit test is performed using a tolerance.

Commit 56a1f9bea2  (sd:  extend test to check
the PDF pages aren't rendered when loaded,  2020-03-26)  made sure that the
rendering doesn't happen in the LOK mode.  In that mode, the mouse position
is unchanged from the values  set in the ImplFrameData ctor.  Previously it
was enough for the test, that the initial position was [-1, -1], which made
the point outside of the bounding rectangle of the objects. But an upcoming
fix for the map mode calculations  makes tolerance large enough to consider
the point inside the rectangle, which triggers rendering and fails the test.

This change  makes the default position  [-32767, -32737],  which should be
reliably outside of the tested rectangle.

Change-Id: Ie1142729448f7ac3c628880140f123cde66b404e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170005
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-05 06:32:56 +02:00
Samuel Mehrbrodt
ab5d79c90f tdf#161653 Fix selecting from numbering dropdown (Impress/Draw)
Change-Id: Ia066a8ff4b7ab4760fec7a4475afbceee084d115
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169995
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2024-07-05 03:45:19 +02:00
Michael Weghorn
e142fa40fa cpdb: Don't include cpdmgr.hxx if not building CPDB support
Don't include the header when building without
`--enable-cpdb`, as the code there is CPDB-specific.

This prepares for Biswadeep's pending Gerrit change series
starting at [1] that implements CPDB support using
the CPDB C API, and includes the corresponding
header. (See CI failure [2] due to missing headers
when not building CPDB without this change in place.)

[1] https://gerrit.libreoffice.org/c/core/+/168633/5
[2] https://ci.libreoffice.org/job/gerrit_linux_gcc_release/168688/consoleFull#1916232175cd06c086-ffd7-48da-8ce2-d58b9387379c

Change-Id: I8b5395d2ad45d50c63c2dbdd0a5459890fc6f6a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170001
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-07-04 20:51:45 +02:00
Noel Grandin
24403f4448 fix --disable-firebird-sdbc build
Change-Id: I92e4f1b834b9afe806c29f45af94a562fcb3d78e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169993
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-04 20:50:56 +02:00
Michael Stahl
6005260078 comphelper: treat zip file path segments '.' and '..' as invalid
This will prevent also opening with RepairPackage, would need to adapt
ZipPackage::getZipFileContents() a bit, but let's hope nobody acutally
has such files.

Also treat path that starts with "/" as invalid, presumably it's not
allowed by APPNOTE.TXT:
"The name of the file, with optional relative path."

Change-Id: Ic694ea2fb34f5de1d490a9a251cf56e4004e9673
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169994
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2024-07-04 17:03:36 +02:00
Andrea Gelmini
55032dae69 Fix typo
Change-Id: Ieae6dd42fc2e3b8021356145a676cd96c6fb9e76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169999
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-04 16:21:35 +02:00
Andrea Gelmini
8eaaeb50ae Fix typo
Change-Id: Id187ef0b7d1d705dfc45a806fc6db459a278fdcd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170000
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-04 16:21:07 +02:00