Commit Graph

499857 Commits

Author SHA1 Message Date
Miklos Vajna
d95ab8d3a3 cool#9992 lok doc sign: fix import of the private key
Once the signing key is taken from the matching SfxViewShell (not yet
done), signing with a certificate specified via initializeForRendering()
failed with:

warn:xmlsecurity.xmlsec:13020:13005:xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx:330: X509Certificate_NssImpl::getPrivateKey() cannot find private key
warn:xmlsecurity.xmlsec:13020:13005:xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx:812: Can't get the private key from the certificate.
warn:xmlsecurity.xmlsec:13020:13005:xmlsecurity/source/xmlsec/errorcallback.cxx:53: keys.c:1347: xmlSecKeysMngrGetKey() '' '' 45 'details=NULL'
warn:xmlsecurity.xmlsec:13020:13005:xmlsecurity/source/xmlsec/errorcallback.cxx:53: xmldsig.c:822: xmlSecDSigCtxProcessKeyInfoNode() '' '' 45 'details=NULL'
warn:xmlsecurity.xmlsec:13020:13005:xmlsecurity/source/xmlsec/errorcallback.cxx:53: xmldsig.c:537: xmlSecDSigCtxProcessSignatureNode() '' 'xmlSecDSigCtxProcessKeyInfoNode' 1 ' '
warn:xmlsecurity.xmlsec:13020:13005:xmlsecurity/source/xmlsec/errorcallback.cxx:53: xmldsig.c:301: xmlSecDSigCtxSign() '' 'xmlSecDSigCtxProcessSignatureNode' 1 ' '

The trouble was that we wanted to keep the private key in-memory,
presumably because initially the whole NSS database was in-memory for
the LOK case. This was changed in commit
87eec1b90b (NSS: create a temporary
database instead of in-memory, 2018-12-31), so there is no problem with
a not-in-memory private key anymore.

Note that the problematic codepath was only triggered when first the
certificate chooser was ran and only then we signed. So the testcase
also gets the cert flags before signing, otherwise the test would
succeed even without the fix.

Change-Id: I5086b205c91b630ddd343c0eb91bd9e63b3ea238
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173892
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-09-25 13:14:42 +02:00
Kira Tubo
dd181a31d8 tdf#139619 Add Line Style to Impress standard toolbar
Change-Id: I00e07e80cf86bc60cb7323eedaf27931cfc71a1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173696
Tested-by: Jenkins
Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-09-25 11:05:39 +02:00
Armin Le Grand (Collabora)
dad5b34d01 tdf#163131 CairoSDPR:
Added BColorModifierStack to SVG linear and radial
gradient direct support, was missing.

Change-Id: I1405ea0653180fa695b40082bf8b8520441d0620
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173871
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-09-25 10:56:34 +02:00
Armin Le Grand (allotropia)
3c82f49fce Adapting basegfx.py due to blocking in some situations
I have stumbled over the GDB integration in vscode hanging
when there is a BP and *below* a declaration of e.g. a
basegfx::B2DPolygon. This seems to happen due to the
instance not yet being incarnated, but the variable view
already listing it and triggering methods in basegfx.py
to evalualte stuff.
It just hangs/loops, I guess it's fetching the PointCount
from a random mem ptr'ed Polygon, then tries to evaluate
something with the Points.
I do not really know about what to do here, but I figured
out that testing 'if self.exists()' where the instance
gets accessed (using gdb.parse_and_eval) helps.
Thus this solves the problem for me and - after stepping
over the incarnation of the object I can see it's true
content.
I hope someone who might have more knowledge about that
GDB and python stuff can have a look and maybe tell if
tis is OK or should be done in a different way.

Change-Id: Ia844b0aded97220df7f4605fdcffeac5e2270db3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173826
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
2024-09-25 10:56:18 +02:00
Heiko Tietze
e0808a1f84 Resolves tdf#161574 - Individual labels for TOXes in the UI
+ Upper-case for Delete Index
+ User-Defined amended with Index

Change-Id: I972ee22fa3681a0f1159426836a0ec1b83fa5e3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173849
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2024-09-25 10:39:25 +02:00
Miklos Vajna
b248260bf8 sw: extract SwDoc::ForEachCharacterItem() from Underline/ColorItems
This is meant to avoid copy&paste while keeping the public interface
template-free.

Change-Id: I3bc27d35b135df1693737de6b0e02444a06e4cbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173890
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-09-25 10:33:21 +02:00
Ashok
dbccdea974 tdf#42982 Improve Error Messages with RuntimeException in UNO API
Improved UNO API RuntimeException to return descriptive message.

Change-Id: Idae14c2ae095270c30b86cfad64936ccead5e4d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173686
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-09-25 09:29:41 +02:00
Mike Kaganski
40a38b305c Simplify a bit
Change-Id: Ib82f6456707217412097473a4387d2e6088bd3f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173801
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-09-25 09:18:14 +02:00
Mike Kaganski
8b23abac49 tdf#163091: check rParam.mnX before passing it to RowInfo::cellInfo
When moving to the left, the RowInfo may have e.g. cells 21 to 41,
and rParam.mnX may be 15, which is outside of the RowInfo data.

It seems that in this case, when we handle the data outside of
the visible area, setting clip marks may be safely skipped anyway.

Change-Id: I2f507dc166468c44e34645bc34c827456f1ab1ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173857
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-09-25 07:15:49 +02:00
Jonathan Clark
5b494880e8 tdf#163105 Require kashida after Seen, even before a final Yeh
Small tweak to the kashida insertion rules to restore some previous
behavior. Kashida should not be inserted after a final Yeh, but should
be inserted after an initial or medial Seen, even if it is followed by a
final Yeh.

Change-Id: I1fef2d32961c6f55006b2df456827588f62af40b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173889
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2024-09-25 07:15:23 +02:00
Jim Raykowski
6573d0ed54 Resolves tdf#152297 Track comments in the Navigator also by focus
inside the comment box

Change-Id: I7ced30c606d89a11012e21bfce18939b7660f038
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173824
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2024-09-25 07:05:46 +02:00
Jonathan Clark
a3b0ef4088 tdf#163105 Restore some missing kashida opportunities
This change partially reverts the fix for tdf#65344, to allow more
candidate kashida insertion positions.

The final position fallback from the original ruleset has been restored.
Instead, tdf#65344 is now fixed by explicitly prohibiting kashida under
a final-position Yeh.

Change-Id: I9fe8c656768777c160205ad9892f2fe916a2a926
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173887
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2024-09-25 03:54:35 +02:00
Jonathan Clark
41671d732a tdf#163105 sw: Add some whitespace expansion to kashida justification
Tihs change updates Writer kashida justification to include some
whitespace expansion, mirroring the behavior of Edit Engine and other
word processor programs.

Each kashida and space character are given 1 unit each of extra space.

Change-Id: I8c9031a0d51844e532b9d1f7e3619c2c9ba23f6d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173884
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2024-09-25 03:22:38 +02:00
Justin Luth
9112a4a4cc tdf#162916 writerfilter TOC: import "no page number" flag
The field command "TOC \n 2-2" means that
level 2 entries should not display the page number,
so in LO just exclude those portions from the definitions.

The impact only becomes noticable when you update the TOC,
because the initial content is just read from document.xml.

The export part was already handled at LO initial import,
since DOC format needed the proper sFieldCmd string.
DOC format already imports this just fine.

Note that the unit test also specifies 'TOC \o "2-3"'
which means that the first level should not show,
but I don't think LO supports skipping earlier levels.

make CppunitTest_sw_ooxmlexport10 \
    CPPUNIT_TEST_NAME=testTdf162916_nastyTOC

Change-Id: I9661c56c84bcd28bf1664d808a0e9c38051cf67b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173885
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-09-25 02:06:15 +02:00
Jonathan Clark
fe4687ed17 tdf#163105 Consolidated duplicated kashida justification code
The kashida candidate position selection logic was copied-and-pasted
from Writer into Edit Engine. This change consolidates the shared code
into a library. This change also adds some minimal characteristic tests,
which previously did not exist.

Change-Id: I2bfbfa79858347803474b754566436f3e74d1a54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173883
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2024-09-25 01:25:07 +02:00
Patrick Luby
2fc1034de4 tdf#163135 eliminate native "secure coding" warning
Starting in macOS Sonoma, a warning is printed at launch that complains
that -[NSApplicationDelegate applicationSupportsSecureRestorableState:]
is not implemented so implement that selector.

Change-Id: Idfb62c271af5256270361efdd458f2ef9ea4c40b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173882
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-09-24 22:56:10 +02:00
Stephan Bergmann
3b6dbc60d1 Adapt flatpak build to upstream changes
<fb1a63fc87>
"gvfs: Update gvfs-1.54.2.tar.xz to 1.56.0 (#303)"

<8b55ceec9b>
"Update org.freedesktop.Platform to 24.08 (#302)"

Change-Id: Ib0bffe9652ed3e9c4107c15dfff75a0f57f682c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173881
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-09-24 22:51:05 +02:00
Caolán McNamara
d17898aafa prefer the per-ViewShell rendering data for default document bg color
Change-Id: Ie67d6317641d63524c20a3001179ad958ebce300
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173866
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
(cherry picked from commit 927fd9820bcdbed35b34c7bb7081a19535aa041b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173795
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 20:31:29 +02:00
Ashok
51fdc8eccd tdf#114441 Use sal_int32 instead of sal_uLong
Changed data type from sal_uLong to sal_Int32.
The constant value is fixed at 1000.

Change-Id: Iddc0aafb252ca44feb8ae018de18296b8b46769b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173753
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-09-24 20:27:09 +02:00
Jim Raykowski
d5b76e32f9 tdf#163100 Need more FIND details
This enhancement patch for the quick find panel makes the document
order index of the match entry selected in the finds list be shown in
the found times label at the bottom of the panel. For example,
selecting the 6th entry in the finds list for a search that has 25
matches will display "Match 6 of 25 matches."

Change-Id: Iea39e754b0cd75d3ca446781a4b8d2e8651e7d08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173835
Reviewed-by: Vernon, Stuart Foote <vsfoote@libreoffice.org>
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Tested-by: Jenkins
2024-09-24 18:56:01 +02:00
Caolán McNamara
efa381c59b cid#1606653 PA: Public Attribute
Change-Id: Iab539e41702f0decc071be13ef02c0fb14b11e63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173848
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 18:09:38 +02:00
Caolán McNamara
a9889e1aa8 cid#1606721 PA: Public Attribute
Change-Id: I62fbc3ee8fc05facb4c1542706c46266005c363f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173847
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 18:09:31 +02:00
Caolán McNamara
81d920a965 cid#1606722 PA: Public Attribute
Change-Id: Icf37c5cc813ef80252f557d8896e163fe90e97b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173846
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-09-24 18:09:23 +02:00
Caolán McNamara
f3f581b462 cid#1607022 PA: Public Attribute
Change-Id: I0c0a107643b67395a2f4835aab70c58ca6edec9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173845
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 18:09:13 +02:00
Caolán McNamara
3c3657cbab cid#1607041 PA: Public Attribute
Change-Id: I991d0213a2f429a89e6b1431d9dc900400b60a96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173844
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-09-24 18:09:06 +02:00
Caolán McNamara
a90d2bcb3d cid#1607206 PA: Public Attribute
Change-Id: I70a2b4fbbde93f9ce839129441a17afe3d2059e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173843
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 18:08:57 +02:00
Caolán McNamara
6f903afd4e cid#1607381 PA: Public Attribute
Change-Id: I9aa852422a0ce3daa527599f9d3ed033b5943d04
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173842
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 18:08:41 +02:00
Caolán McNamara
b3a14ae7ef cid#1607483 PA: Public Attribute
Change-Id: I4712b1523cc54feb3b84b5435960e4d5707735a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173841
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-09-24 18:08:33 +02:00
Caolán McNamara
96427ee2e1 cid#1607639 PA: Public Attribute
Change-Id: I58d91c2d89b175dc8b8c062e1e291fe9c5192017
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173840
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 18:08:25 +02:00
Caolán McNamara
5fcc0a0c65 cid#1608090 PA: Public Attribute
Change-Id: I8ea0d65e01affa7b2a7b787bebcf5bc2ca3b63f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173839
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-09-24 18:08:06 +02:00
Caolán McNamara
3e83118738 cid#1608290 PA: Public Attribute
Change-Id: I3fe12f088e6bd2951a9dfdf62b156eb33a44750b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173838
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 18:07:56 +02:00
Noel Grandin
c2f32dbd8a dont use GetItemSurrogates for gathering SvxShadowItem
which is very expensive these days

Change-Id: I93833d703407304e8ed20be0783e0562352b927a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173867
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-09-24 17:01:57 +02:00
Noel Grandin
a8161a4aea dont use GetItemSurrogates for gathering SvxBoxItem
which is very expensive these days

Change-Id: I0cb9af2afcbdb802e6a783df6cd30f5905e1ff1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173854
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-09-24 17:01:48 +02:00
Noel Grandin
a32c551d75 fixes for "dont use GetItemSurrogates for gathering SvxTabStopItem"
improvements to commit 01ab23b132,
thanks to vmiklos for review

Change-Id: I2d4c5fb07405988b56156370db2e73ba0a24fa36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173763
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-09-24 16:52:26 +02:00
Stephan Bergmann
1c4f7139e9 Let test operate on temp copy of source document
The CppunitTest_xmlsecurity_signing
CPPUNIT_TEST_NAME=testImplicitScriptSign::TestBody introduced in
e5a0209d4b "cool#9992 lok doc sign: allow sign of
macros & the document itself in one step" failed on a read-only source tree with

> An uncaught UNO exception
> - com.sun.star.ucb.InteractiveAugmentedIOException: {Message: "an error occurred during file opening (18/28) at /home/libo/src/core/ucbhelper/source/provider/cancelcommandexecution.cxx:83", Context: @0x7ff5cb43cf90, Classification: com.sun.star.task.InteractionClassification 0, Code: com.sun.star.ucb.IOErrorCode 1, Arguments: [com.sun.star.beans.PropertyValue: {Name: "Uri", Handle: -1, Value: string: "file:///home/libo/src/core//xmlsecurity/qa/unit/signing/data//macro.odt", State: com.sun.star.beans.PropertyState 0}, com.sun.star.beans.PropertyValue: {Name: "ResourceName", Handle: -1, Value: string: "/home/libo/src/core//xmlsecurity/qa/unit/signing/data//macro.odt", State: com.sun.star.beans.PropertyState 0}]}

Change-Id: I9198ca1eba03d55e745a0bbb344963139941496f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173852
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-09-24 15:38:30 +02:00
Heiko Tietze
ada128e5f2 Resolves tdf#142120 - Respect app color for text with lines breaks
Change-Id: I33ebfc1d542da06bd9d69f8e9a57797b8541a7f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173856
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2024-09-24 15:11:45 +02:00
Xisco Fauli
34c4a18d78 tdf#162686: Adapt to ODF 1.4
Change-Id: I47f29a88eb0e98dc0fd312a3895d3a578fa04d46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172768
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-24 14:50:36 +02:00
Xisco Fauli
a36e806c21 ODF 1.4: Add ODFVER_014 and ODFSVER_014
Change-Id: I0aa1b6a1f9eec3932b76f5ad0649c462884ffa68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172767
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-09-24 14:49:55 +02:00
Tomaž Vajngerl
cdfa19a797 lok: render the whole slide temporary (with bg and master content)
This changes the rendering of the main slide layer content to also
render the master page and the background. This is needed because
of the issue with the white background (instead of transaprent).

(cherry picked from commit 99f9d663a26da00bebd8595f1e0819ebc6c3e4f0)

Change-Id: I88b6f0287482ad1ee498b0bbda8e19d015649879
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173853
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-09-24 14:33:52 +02:00
Pierre F
0b5d753b50 Update git submodules
* Update helpcontent2 from branch 'master'
  to db426f52a985e90199d4834581478d46b39e5d13
  - tdf#121697 readability/maintainability factorization
    
    first step for
    * h1 - h6
    * note, warning, tip
    * bascode, pycode, sqlcode
    * common attributes
    
    Change-Id: I249c660636a3714f40d88fbe3afc2bed2275169f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/173022
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-09-24 14:26:36 +02:00
Xisco Fauli
746c35baf6 ODF 1.4: schema: rename to OpenDocument-v1.3*
Change-Id: I83ac72accf2bbddd3ca74790654327bb9e86dba4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172765
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-09-24 14:21:15 +02:00
Caolán McNamara
3af9cc7e25 cid#1607586 explicitly return after JNI ThrowNew
Change-Id: Ib863d3c9769602088fae8d4d51d0449101979cbd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173850
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 13:27:48 +02:00
Caolán McNamara
c8b5ac2a54 cid#1607586 Overflowed return value
and

cid#1608074 Overflowed return value
cid#1607598 Overflowed return value

Change-Id: Ib884c10083c01578a7a0926d5f2f3c2d1f7501c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173833
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 13:27:26 +02:00
Noel Grandin
fff43a2e76 use more concrete UNO types in dbaccess
Change-Id: Ibcf54e3bbdad4888c5da1f52f636951356e0aa51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173818
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-09-24 12:13:47 +02:00
Noel Grandin
59915ec921 in OUString find functions, assert that fromIndex >= 0
otherwise, the pointer calculations mean that we will start searching
inside data that does not belong to the character array.

which flushes out a couple of problem cases

Change-Id: Ide9edf23900289343077c406d95614057c1d1a6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173807
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-09-24 12:09:41 +02:00
Miklos Vajna
4787fd4fc8 cool#9992 lok doc sign: store signing cert in the view
In case signing certificate would be stored in the model (like it
happens on the desktop), then the certificate viewer would show all
signing certs of the currently editing users, which is far from
expected.

At the same time, there is just one NSS database per process, so it's
hard to not have them in the same database.

Fix the problem by storing a reference to the signing key in the view
shell, then we can show only that in xmlsecurity/ in LOK mode, and thing
else.

This is just the sfx2/ side of things, the xmlsecurity/ part still needs
implementing.

Change-Id: Id7a56f28598ec60217c6bac095c2ff350f39bc3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173837
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-09-24 10:55:58 +02:00
Xisco Fauli
afa4965e4d schema: update to ODF 1.4 OS
* The change in schema/odf1.4/OpenDocument-v1.4-schema.rng
is the same as 56d8007a19
"tdf#134734 tdf#141059 tdf#122508 cui,sw,xmloff: BackgroundFullSize"

Change-Id: I79bdebbee4d250af9c5822bf2f205ef386f1b97d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172392
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-09-24 10:50:07 +02:00
Xisco Fauli
7244f5eaf7 ODF 1.4: Add schema
Source: https://github.com/oasis-tcs/odf-tc/tree/master/docs/odf1.4/schemas
Change-Id: I8b00d6c3c6c3df9c7fc40bcda9379199ff74a7b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172253
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-09-24 10:49:37 +02:00
Heiko Tietze
8192a3bde8 Resolves tdf#163049 - Name the sidebar find deck
Change-Id: I7638f25f4c8afb8896a77aa30c46bce08c8907fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173836
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2024-09-24 10:23:24 +02:00
Caolán McNamara
c46c109204 cid#1607535 silence Overflowed constant
and

cid#1608504 Overflowed constant
cid#1607518 Overflowed constant

Change-Id: Ife45a2f414ea703f627b7083d746bc11f6d4f359
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173832
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-24 10:12:44 +02:00