Commit Graph
519285 Commits
Author SHA1 Message Date
Neil Roberts aed5ae5d21 tdf#173114 pyuno: Add unit test for objects with XInvocation
Adds a service to embindtest that implements XInvocation to handle all
possible method names and returns the name as a string. A Python unit
test then uses this. Without the fix pyuno would throw an exception when
it tries to use the XInvocation object that doesn’t also implement
XInvocation2 and return a valid reference for getIntrospection.

Change-Id: Icb3359c788acd5eda37980252e5fc5c956b38100
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209087
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-08-13 12:43:09 +02:00
Neil Roberts 97302647ba tdf#173114 pyuno: Don’t require XInvocation2
If an object implements XInvocation then the Invocation service will
directly return the object instead of creating its own invocation
wrapper. In that case the object isn’t guaranteed to also implement
XInvocation2. Previously, this was making pyuno just throw an exception
whenever it encounters one of these objects.

The only case where XInvocation2 is actually used is the implementation
of the __dir__ method. I don’t think this method is used very often so
it’s probably OK to just make it return an empty list if XInvocation2
isn’t supported. That way we can just store a reference to XInvocation
instead of XInvocation2.

This change makes it possible to use objects that implement XInvocation
from Python, for example ooo.vba.excel.Application.

Change-Id: I822c4ffa760f52d6488b9c1009435d059fc19fdd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209086
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-08-13 12:43:01 +02:00
Neil Roberts dcc46669fa tdf#173114 pyuno: Handle XInvocation::getIntrospection returning null
Many implementations of XInvocation for internal objects return null for
the getIntrospection method. In pyuno this method is only used in one
place to try and catch the case where the wrapped object is already a
PyUNO adapter. Let’s check for null in that case and assume the object
isn’t an adapter so that it won’t crash when handling objects that
implement XInvocation.

Change-Id: I26576a1a9fec92c679373d9ab47824d992065041
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209085
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Tested-by: Jenkins
2026-08-13 12:42:53 +02:00
Neil Roberts 935803f2f1 pyuno: Combine two implementations of PyUNO_dir into one
PyUNOStruct_dir is an almost exact copy of PyUNO_dir. This deletes the
first one and makes the struct code instead directly use PyUNO_dir. The
object version has the small advantage that it pre-allocates the Python
list to the right size so the struct code can now take advantage of that
too.

This will make it easier to modify the dir implementation for both use
cases in a later patch.

Change-Id: I7ebe2e6d547fd27c228842effd534e8d71d634ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209084
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-08-13 12:42:45 +02:00
Heiko Tietze 3c6d1d92e9 Relates tdf#152752 - Remove empty tab from Tabbed Notebookbar
Change-Id: Ifa6c53dd2fc70a9ebccd25e96be9f09acb0c2ce3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209105
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2026-08-13 11:41:33 +02:00
Andreas Heinisch ff9c0cdc28 tdf#149434 - Use the last separator as table names cannot contain dots
Unlike table names schema names may contain dots.

Change-Id: I3e918ce8f08e6e013b3872452eb6f966e4367751
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208975
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-08-13 11:01:35 +02:00
Karthik 82fbbed4c8 pdf: Cache images with alpha
`PDFWriterImpl::implWriteBitmapEx` only cached bitmaps without an alpha.
Update `m_aPDFBmpCache` to store alpha bitmaps with a alpha mask.

Also increase the cache size to 64.

Signed-off-by: Karthik <karthik.godha@collabora.com>
Change-Id: I9520f8efa7c4dced91e198d3675620a713f550d2
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/6751
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209061
Tested-by: Jenkins
2026-08-13 10:55:46 +02:00
Brandon Nhep 64b4d83493 tdf#114441 Replace sal_uLong with sal_uInt32
Use sal_uInt32 for local table box format index variables to match
the return type of SwTableBoxNumFormat::GetValue() and the parameter
and return type of SvNumberFormatter::GetMergeFormatIndex().

Change-Id: Iabd1681de2e61b4cdc174c444985118429603d20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209102
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-08-13 08:59:53 +02:00
Stanislav Horacek 33b183d2fa fix context of strings for BYROW function
Change-Id: Ia43d839a7746cbdad7e405a5fbad0a3b81591f67
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209092
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2026-08-13 04:11:42 +02:00
Aya Jamal 5324caa4ba tdf#103680: Implement fallback logic for OpenTypeNode
Change-Id: Idf225fbfb2b761dcd0d230242215e875217f02da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209083
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2026-08-12 23:20:50 +02:00
Dr. David Alan Gilbert b5b7c96470 tdf#100244,126710: sc:Remove unused CheckShowEmpty declaration
ScDPResultMemberFull::CheckShowEmpty(..) is declared but
never implemented - but there is a base class implementation
which is fine.
All existing calls are on ScDPResultMember* so don't hit a problem
but if something tries to call it on a ScDPResultMemberFull* it
tries to call the missing function.

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Change-Id: I8350517e87ed118e0065412f16aa6053f3bbda9b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209014
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2026-08-12 18:35:00 +02:00
Neil Roberts 7d2d7e7738 tdf#173116 Translator comments for Calc print preview notebook strings
These strings are kind of hard for translators to find so let’s give a
hint in the description.

Change-Id: I8387b54226c757d6af664c09573cc3387b69cc09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209089
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-08-12 17:46:57 +02:00
Dan Williams 41e35a2d40 tdf#169919: add unit test for PDF link clickable rectangle transformation
Change-Id: Ibec88d4287190b2ad537ee98a3270875f539b396
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208867
Tested-by: Jenkins
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
2026-08-12 17:00:46 +02:00
Masayuki Iizuka e689d08f44 tdf#169919: apply current transformation to PDF link clickable rectangles
Otherwise the clickable rectangle does not enclose the link text.

Change-Id: I3f5a4aa90b1dc0268ea53f6c2ff2940b009d15ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208866
Tested-by: Jenkins
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
2026-08-12 17:00:37 +02:00
Dan Williams cb96c7a9a5 comphelper/string: add OString variant of split()
There's already one for OUString; copy that one and adjust for
OString and single-byte characters.

Change-Id: I2de901ead05284f9a73eadecf8628f30f8521b55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208865
Tested-by: Jenkins
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
2026-08-12 17:00:28 +02:00
Neil Roberts 2756d38adf [API CHANGE] tdf#172967 SwXTextView: Allow selecting multiple ranges
The select method of XSelectionSupplier can now accept a Sequence of
Anys containing XTextRanges to select at the same time. If any of the
ranges overlap then the whole sequence is rejected.

Change-Id: Ib4930b3144e92285cb504d1ae2ac27263d30d440
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208898
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-08-12 11:05:36 +02:00
Olivier Hallot 373c8e2aa1 Rewrite LAMBDA function definition
+ Make it more direct
+ Leave extra properties to the Help page

Change-Id: I6b03c622db30cb8c613c13eb3c54964e690ed243
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209074
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2026-08-12 08:29:40 +02:00
Aya Jamal 46b82d1313 tdf#103680: Add unit tests for SupportsOpenTypeMath & GetOpenTypeMathConstant
Change-Id: Ia079ff0e19417c69a0b93855aeffbdd9d72a3228
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208984
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2026-08-11 23:26:14 +02:00
Justin Luth 8a448e6243 tdf#172113 sw ms import: remove early return
This fixes my 27.2 regression from
commit 4031fa9b9a
    tdf#172113 sw ms import: consistent linespacing gap height

It was OK in my exploratory patch 7, but when I moved it
to the final location, I failed to account for the invalidation.

Thanks to vmiklos for the code review spotting this.

Change-Id: I6af96e02b805f2b0f7836bca9d92f93413757eb5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209078
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-08-11 20:17:06 +02:00
Regina Henschel e1fea5e0d2 tdf#173025 improve cross-fading to use styles
The original implementation is nearly unchanged since 2000. It uses the
ItemSet of the objects to get the fill and line properties. That does
not work in case the properties are given by a style and not by direct
formatting. I have changed this so, that now the method GetProperties
of the SdrObject is used. That one provides fill and line properties
that are applied by style as well. That was a tip from Armin Le Grand,
thanks.

As the changes touch the same part of the code, I have implemented
cross-fading of transparence at the same time. Thereby I treat NONE
as being 100% transparent in calculating intermediate colors.
That is request tdf#173018.

Change-Id: I6df92619e8d1596647fcadbc9aa13bb90494ca6e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209055
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2026-08-11 18:22:47 +02:00
Christian Lohmaier 507604d8f7 pdfexport2.cxx: fix type mismatch on 32bit Windows vs 64bit size_t
vcl/qa/cppunit/pdfexport/pdfexport2.cxx(5438): error C2672: 'CppUnit::assertEquals': no matching overloaded function found
workdir/UnpackedTarball/cppunit/include\cppunit/TestAssert.h(161): note: could be 'void CppUnit::assertEquals(const T &,const T &,CppUnit::SourceLine,const std::string &)'
vcl/qa/cppunit/pdfexport/pdfexport2.cxx(5438): note: 'void CppUnit::assertEquals(const T &,const T &,CppUnit::SourceLine,const std::string &)': template parameter 'T' is ambiguous
vcl/qa/cppunit/pdfexport/pdfexport2.cxx(5438): note: could be 'sal_uInt64'
vcl/qa/cppunit/pdfexport/pdfexport2.cxx(5438): note: or       'size_t'
vcl/qa/cppunit/pdfexport/pdfexport2.cxx(5438): note: 'void CppUnit::assertEquals(const T &,const T &,CppUnit::SourceLine,const std::string &)': could not deduce template argument for 'const T &' from 'sal_uInt64'

the aCIDSet.GetSize is a sal_uInt64, but size_t is only 32bit on Windows x86

Change-Id: I9d1f6a99f8badbf1c191abf7ebe3235a6b24917c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209079
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2026-08-11 17:09:20 +02:00
Neil Roberts a3c8270e51 tdf#173043 Fix translator comments in xcu files
The commit below tried to add translator comments to a bunch of strings
containing “outline”. This wasn’t done correctly for xcu files because
in that case XML comments are ignored and instead the comment can be
added with a pseudo-language tag called “x-comment”.

commit 9dd7345159
Author: Neil Roberts <nroberts@libreoffice.org>
Date:   Fri Aug 7 17:35:49 2026 +0200

    tdf#173043 Add translator comments to strings containing “outline”

Change-Id: I1a4e21b98ebbaba5072a8064b67d0ab8fe583e1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209076
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-08-11 16:29:37 +02:00
Christian Lohmaier 56dbcb043e sc: silence warning C6011: Dereferencing NULL pointer 'pCode'
E: /jenkins/workspace/lo_tb_master_win_analyze/sc/source/core/data/formulacell.cxx(2746): error C2220: the following warning is treated as an error
E: \jenkins\workspace\lo_tb_master_win_analyze\sc\source\core\data\formulacell.cxx(2705) : warning C6011: Dereferencing NULL pointer 'pCode'. : Lines: 2681, 2690, 2705
Change-Id: Ic8439d98216efca22c91354ebe285d1d5cfd95d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209077
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2026-08-11 16:19:33 +02:00
Alain Romedenne de84813131 Update git submodules
* Update helpcontent2 from branch 'master'
  to 13fccbcba7a4fc1934bb0a3fed3da88ec43f2692
  - update to msgbox Python module
    
    Change-Id: Idb47933c231146d205813fb0c0c40a7cff4f0e02
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/209075
    Tested-by: Jenkins
    Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2026-08-11 14:45:58 +02:00
Christian Lohmaier 8f344feabd Update git submodules
* Update translations from branch 'master'
  to dc098e41c756c1b18ffc398e2ccc0e6966925faf
  - update translations for master
    
    and force-fix errors using pocheck
    
    Change-Id: Ica6433ffbb8156fdc4397f8e78f50624c6c09b09
2026-08-11 13:37:07 +02:00
Julien Nabet e375f54fe7 Related tdf#150928: replace character set by encoding (sc/part 1)
Change-Id: Ic4c289021a924b932d44c443a808f84b35f3f600
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209069
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-11 12:09:57 +02:00
Olivier Hallot 4dbac17a14 Update git submodules
* Update helpcontent2 from branch 'master'
  to 23165a3617d8960d5478c684eb04682625ced2c9
  - tdf#173038 More references on other type of support
    
    + Review getting support page
    + Added more references
    + Refactor
    
    Change-Id: I1c6e5123b83188eeffd2aeb483d88ebd17ab434c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/209071
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2026-08-11 11:51:37 +02:00
ApurvR20 56c50b7817 tdf#158068 Replaced string literals by custom O(U)StringLiterals
Change-Id: Ib5d5fb41e4b8efabf2e019a51b3ae40d5abde1ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209054
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2026-08-11 11:30:50 +02:00
ApurvR20 084633bb66 tdf#146619 Remove unused #includes from sw/source/core/doc
Removed or replaced unused includes found by include-what-you-use (IWYU)

Change-Id: Ibf4e969c140341e807dfc33a9ddee1ad8a49683a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208974
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2026-08-11 11:26:15 +02:00
Niko Myllymäki 1813c0ef4e tdf#168771 Convert enum to enum class in edtwin.cxx
Change-Id: I9e4303acd39a7b3013bebd7751906736f612f4bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208995
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2026-08-11 08:40:55 +02:00
ApurvR20 097919db22 tdf#154285 Check argument count in SbRtl_Fix
Change-Id: I0b067eb0e90f3824cafc7df22eefd30ac6d0bef4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209005
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-08-11 08:39:53 +02:00
ApurvR20 073aa89187 tdf#158067 Replace OUStringLiteral by OuString u".."_ustr
Change-Id: Ie727aba87b32ca33eeca9aa3807a2383dbffe5f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209050
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-08-11 08:37:57 +02:00
Jonathan Clark d2951c2b45 tdf#170126 drawinglayer: Restore deleted transformation from refactor
Partially reverts a commit that was causing incorrect SVG rendering,
depending on VCL backend. This commit deleted code that translated
clipping rects from view space into device space. It seems like this
change was made intentionally, but it doesn't work correctly, and
reverting it doesn't seem to affect the behavior of the linked bug.

Regression from commit f5b8ec6b3f
Author: Noel Grandin <noelgrandin@gmail.com>
Date:   Fri Oct 17 13:25:32 2025 +0200

    tdf#168730 impBufferDevice and caller should have the same mask rect

Change-Id: I7c83a5c372557f658df9ece65cbc6c142a4983ec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209070
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-08-11 04:56:40 +02:00
Ilmari Lauhakangas 3d7828d036 Update git submodules
* Update helpcontent2 from branch 'master'
  to c7a6a742e3d03c4c379767e4ecc52617aba115ed
  - tdf#173038 Explain the nature of Help and refer to other types of
    
    documentation and the user support forum
    
    Change-Id: I66272fc87552f8ac17c54801edd5272ed4367cfb
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/209049
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2026-08-11 00:29:56 +02:00
László Németh f3d5dbfb18 tdf#172674 sw: fix terminology + UX of new hyphenation settings
Replace label "Less Hyphen" of the new hyphenation slider
with "Fewer Hyphens", also "Hyphenation leveled x%" with
"Hyphenation level x%".

On the General pane of the paragraph style settings, add missing
commas and spaces inside the summary of the enabled new hyphenation
settings. Show only the non-default values here. Remove redundant
"No hyphenation across" title, where its value is a full-text
explanation.

Change-Id: Icc9d8bb4023d03be497d76289967b5d6061316ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209067
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2026-08-10 19:21:01 +02:00
László Németh cefbfcae51 Update git submodules
* Update helpcontent2 from branch 'master'
  to 1a46f6bccea9c3fecf1cdb684142671825646e7c
  - tdf#172674: sw: fix hyphenation slider label to "Fewer Hyphens"
    
    Change-Id: I6a2b87ed746a8bbe15dc2832a497dc5d22107ca3
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/209068
    Tested-by: Jenkins
    Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
    Reviewed-by: László Németh <nemeth@numbertext.org>
2026-08-10 19:20:04 +02:00
ApurvR20 7566e557de tdf#157664 Drop operator !=, where respective operator == is defined
Removed definition and implementation of operator != from pam.hxx
and pam.cxx

Change-Id: If0aee1b3b7f5f8f9aa6ec568c90e2f13a3dd09d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209017
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2026-08-10 14:55:11 +02:00
Sundaram 69212ced93 tdf#143148: Use pragma once instead of include guards
Change-Id: Ie6487dc4dc8a43ba9761e5452e772f6530f8b77e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209051
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-08-10 14:53:16 +02:00
Olivier Hallot ff59bc7674 Update git submodules
* Update helpcontent2 from branch 'master'
  to e8e02676c05d831837006958c9d3cea9eb091ffc
  - Fix packaging for Help
    
    This should fix packaging issue introduced in
    
    https://gerrit.libreoffice.org/c/help/+/209022
    
    Change-Id: I8d1d2cc999b30c77425658a5baed3f3945600dd2
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/209064
    Tested-by: Jenkins
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2026-08-10 14:49:55 +02:00
Manish Bera 41919bf34f Add tests for txtfrm and txtftn
Change-Id: I48918499beb07f77cbbf09ae64b15f04c9a16f90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209044
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-08-10 13:56:19 +02:00
Julien Nabet c50930ec20 German translation + use "encoding" instead of "character set"
No functional change here.

Change-Id: I6c612f7932cc5e4c5926bf5e543a1bcee6b5b6b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209062
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-10 13:27:14 +02:00
Sofia Gazizova 6f4ddc4bcb tdf#172540 Fix crash opening Footnotes/Endnotes Settings on HTML docs
SwEndNoteOptionPage::Reset() looks up a widget named "allstyles" to hide style pickers on Web documents, but that id was renamed without updating the C++ lookup, leaving m_xStylesContainer always null. For .odt documents the dead pointer is never touched. For HTML documents the SwWebDocShell branch dereferences it via m_xStylesContainer->hide(), crashing LibreOffice on open. Guard the dereference with a null check, and restore the "allstyles" id on endnotepage.ui so the hide-on-web behaviour works again for the Endnotes tab.

Change-Id: I2eb54d66b06eef603c952522cea81479c6ee5088
Signed-off-by: Sofia Gazizova <sgaziz@altlinux.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208463
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2026-08-10 04:38:01 +02:00
Jim Raykowski 7d915a0d4a Resolves tdf#168087 In vertical writing, spotlight appears on the left
Makes the paragraph style spotlight appear at the top for vertical
writing.

Change-Id: I1213381006eab8f7ec0e018437a70af43830c78e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209045
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Tested-by: Jenkins
Reviewed-by: Saburo Yoshida <sabr0libo@otkr.jp>
2026-08-09 16:30:39 +02:00
Neil Roberts 9dd7345159 tdf#173043 Add translator comments to strings containing “outline”
The word “outline” in LibreOffice can refer to either the lines of the
shape of something or an overview of something. When the string is quite
short it’s difficult for translators to know which meaning is intended.
There seems to be quite a lot of cases where the translators have got
this wrong. In order to help them this patch adds translator comments to
a bunch of the strings to explain which meaning should be used.

Change-Id: I4b75cc829128633bc9382817fc574d55a09af8a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209037
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-08-09 12:12:44 +02:00
Neil Roberts 0066e963bc cui: Add a translator comment for the “No Bold/Italic” strings
The string in Weblate is presented just as “No %1”. The %1 is replaced
with the name of a font style. Without the context it’s easy to
misunderstand this as being an abbreviation for “number”. At least the
Dutch and Esperanto translations seem to have done this.

Change-Id: I220db88346a84e67b0e34affb1b8e7023cfbb90d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209053
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Tested-by: Jenkins
2026-08-09 11:28:20 +02:00
Justin Luth 8d5f8da97b tdf#135857 sw findattr bwd: restart search after non-match
Copied change made to SetAttrFwd.

Change-Id: If41cc75a573599ab23e2803a5dfd8d3f16f84125
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209048
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-08-08 23:42:13 +02:00
Justin Luth d98275f238 tdf#135857 sw findattr: restart search after non-match
This is a dangerous patch because
it makes the function recursive.

But since the Pam defined GetNdEnd in SetNewSet,
I know that I am inside the Pam range
and I also guaranteed that it moves at least by one position.

lcl_SetAttrPam is a bit of a strange beast,
because what is set as 'start' is actually the end,
and what is 'end' is actually set as the start.
It always creates a point-first normalized pam.

In order to gurarantee lcl_SetAttrPam working correcly
for this recursive function
I (presumably unnecessarily) normalized the Pam first.

make CppunitTest_sw_uiwriter11 \
    CPPUNIT_TEST_NAME=testTdf135857_findWithoutUnderline

Change-Id: Ic836085580966895a069d57e748e9d117ca51276
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209042
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-08-08 23:41:56 +02:00
Justin Luth 46497ff998 tdf#135857 sw findattr bwd: extend found attr range if possible
Copied change made to SetAttrFwd.

Change-Id: Iba6f95a215610292f38d77fe7b96dfd4c42a792c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209047
Tested-by: Justin Luth <jluth@mail.com>
Reviewed-by: Justin Luth <jluth@mail.com>
2026-08-08 22:14:24 +02:00
Justin Luth af1aa9aa61 tdf#172849 tdf#129449 sw SearchAndWrap: with ToPrevPara go to end
This fixes a 27.2 regression for
my commit fe185d43cc

It fixes the problem that Find Previous
wasn't finding attributes in earlier paragraphs.
At least, it wasn't finding non-hints (aka entire paragraph).
[easily seen with 'without strikethrough']

I missed that important aspect of the code which I cut from
sw/source/core/crsr/findfmt.cxx's FindFormatImpl.
    oPam->GetPoint()->SetContent(bSrchForward ? 0 : rNd.Len());

Change-Id: Idc14dcc7921e8620794eb4fc2ff333317bef117b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209046
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-08-08 22:12:26 +02:00
Patrick Luby 88771d0a64 tdf#172927 don't rely on pointer comparison for equality
It appears that mpLastEvent gets set to a copy of the same
NSEvent somewhere in -[NSApp sendSuperEvent:] causing the
pointers to not be equal when they really are the same.

So prevent infinite recursion by performing a deeper
comparison check with -[NSEvent isEqual:].

Change-Id: Ide6936ac3fb0e2a5c0e146972a3317ebf7a1d8d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209043
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2026-08-08 16:19:02 +02:00