Commit graph

495636 commits

Author SHA1 Message Date
Andrea Gelmini
061d55f8b0 Fix typo
Change-Id: I0db9bdf1d16baf52ad12591634a236e1aeab4e9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167115
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-05-04 13:45:39 +02:00
Noel Grandin
05e3d24602 replace createFromAscii with OUString literals in sw
and adjust the loplugin:stringstatic to cope with OUString that
is also declared in a header as extern, in which case we cannot
mark it as constexpr.

Change-Id: I108aa3ff8cb06a9a6d345cd951883b52dd0318f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167106
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-04 12:28:35 +02:00
Noel Grandin
7c053f1155 replace createFromAscii with OUString literals in SwWW8ImplReader
Change-Id: I505fe025dfbfd64f950d975d0f81527c7efa3d3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167107
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-04 12:28:27 +02:00
Noel Grandin
a0f176b77b replace createFromAscii with OUString literals in SwCondCollItem
Change-Id: Iecdaac487a708d268cfa8710db100c3c53386e69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167109
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-04 12:28:18 +02:00
Noel Grandin
b0a33ce1d2 replace createFromAscii with OUString literals in SwDocShell
Change-Id: I26b1703f99812d573b7aa1aff9eea3dc9b4361dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167108
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-04 12:28:09 +02:00
Noel Grandin
b7d3e9ce25 speedup configmgr::Access on Windows
std::multiset seems to be pretty slow to construct and
destruct, even if we ~never put anything into these listener
lists, so rather use o3tl::sorted_vector, which has more
predictable performance.
Shaves 10% off startup time for me.

Change-Id: I13afcbe3cb63522e4efe61c64f773e1ffbec9683
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167101
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-04 12:27:49 +02:00
Julien Nabet
6aa2e8fe2b tdf#160924: SDK: typo SDK_HOME instead of OO_SDK_HOME for linux
Change-Id: I8ec2bc31b19cc6b724a6f7ea3238dda8cf60d4b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167111
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-05-04 12:16:29 +02:00
Caolán McNamara
8a34830009 cid#1596522 Inequality comparison against NULL
Change-Id: Ib489137e8fa2a5745a41703a6d25f9c950223ab8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167102
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-04 12:01:08 +02:00
Noel Grandin
7d070fa5e4 replace createFromAscii with OUString literals in SwCalc
Change-Id: I9da38ff8897eeeebdb7d5ff2766414d3d406d53f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167091
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-04 08:25:51 +02:00
Noel Grandin
e539861020 replace createFromAscii with OUString literals in SwHTMLWriter
Change-Id: I5dbcab60a9891fe1b42867d7a15f85fd50fe963a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167095
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-04 08:25:37 +02:00
Noel Grandin
da5cad1018 replace createFromAscii with OUString literals in SwFilterOptions
Change-Id: Ide9c91584aaee5493697c010eeb76afbd7818a46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167094
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-04 08:25:29 +02:00
Noel Grandin
4dc6cb3b53 replace createFromAscii with OUString literals in SwTOXPara
Change-Id: Ib72bcb5713f3598ff689ef1e767f72f8325828db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167093
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-04 08:25:21 +02:00
Noel Grandin
980fb234ca replace createFromAscii with OUString literals in svx
Change-Id: Ifefa5d3c26e49e29e476a4faba704ba9b2c7e7e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167062
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-04 08:19:40 +02:00
Noel Grandin
51f3916a10 replace createFromAscii with OUString literals in SwFormat
Change-Id: I53ec6e3914ef995a4fd708ea0f1c2976673d97d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167090
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-03 21:26:59 +02:00
Noel Grandin
6b8d8e4476 replace createFromAscii with OUString literals in SwAuthorityField
Change-Id: Ifcbdd1bbab68e177e11a7e48cb1ed2eb2f2b53a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167069
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-03 20:30:29 +02:00
Noel Grandin
85c116f590 replace createFromAscii with OUString literals in svx
Change-Id: I9bb7884048f3cc7ef795f7a79dc566fc8fe77e7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167063
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-03 20:30:14 +02:00
Noel Grandin
544bc99ba8 replace createFromAscii with OUString literals in svx
Change-Id: I9d3b6b99ea5ca9f6d17729ae55cd4c3bad75ada1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167061
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-03 19:34:33 +02:00
Mike Kaganski
4d0987564c tdf#152906: use correct Y offset
GetEditCursor now returns the position relative to the line, not
to the whole text. In ImpEditEngine::CreateLines, its use wasn't
fixed, and so the Y position of all lines in the calculation was
the same, thus adjusting to the same contour's horizontal stripe.

Change-Id: I16362bab47f3064281eefb45a12834d836a8ada3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167042
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-05-03 18:43:44 +02:00
Noel Grandin
740353bc31 loplugin:ostr in basctl
Change-Id: I59c25d52d8f59ff1b7ab498041c2888b8e718f64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167056
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-03 18:38:56 +02:00
Noel Grandin
86d2d8e037 try to work around clang compiler crash on macos
clang::CodeGen::CodeGenFunction::EmitAggregateStore(llvm::Value*,
clang::CodeGen::Address, bool)
(anonymous
namespace)::AggExprEmitter::VisitConstantExpr(clang::ConstantExpr*)
(anonymous namespace)::AggExprEmitter::VisitCastExpr(clang::CastExpr*)
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot)
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*)
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*,
llvm::ArrayRef<clang::Attr const*>)
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot)
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&)
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*)

Change-Id: I96ef1d95a46542d2dfa85f5c6dbfa2ec05b41302
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167045
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-03 18:32:39 +02:00
Noel Grandin
e475901ac0 replace createFromAscii with OUString literals in svx
Change-Id: I7977276b14b44c6ee0ce71d9573bd33d4cc5cbae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167047
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-03 18:32:27 +02:00
Noel Grandin
cc6e54736f replace createFromAscii with OUString literals in svtools
Change-Id: I51eb85b7beb850044d9e092989b7d34994588551
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167046
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-03 18:32:17 +02:00
Justin Luth
da86bfd89e tdf#160349: add .uno:ChangeTheme to notebookbar to toggle dark mode
A temporary (ugly, but appropriate) icon has been assigned.

The toggle can be customize-assigned to keyboard, menu, and toolbar,
and can be found by searching for "Dark Mode".

In the menu, it is checked when in Dark mode,
and in the toolbar it is "depressed" or highlighted as active.

Dark mode has been added to the view tab of notebookbar.ui.
I added it as NOT VISIBLE, for several reasons.
- dark mode is rather new and not so stable, so don't over-promote it.
- notebookbars cannot be infinitely customized by the end user,
  so developers have to add all items. Users only enable or disable.
- toggling dark mode really ought to be done at the OS level,
  and typically should be a one-time setting,
  therefore not appropriate to waste precious toolbar space.

The primary benefit of making it available in the menu
is for QA testers who want to easily switch back and forth.
WARNING: by customizing the notebookbar, you prevent seeing
any future NBB changes made to the program
(until you reset to defaults or blow away the user profile).

Dark Mode can easily be added to a menu, toolbar or keyboard shortcut
by the end user, so I didn't bother adding it anywhere else.

To avoid completely cluttering up this commit,
I only added Dark mode to the main notebookbar.
Once this commit has been finalized,
the other writer-apps and notebookbars can
also gain this command.

Change-Id: Ia7594ad81e305ead922abd0ad7b41d6fc0413053
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166781
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-05-03 17:58:15 +02:00
Miklos Vajna
9d95eb980e Related: tdf#160833 teach DOC export about DoNotMirrorRtlDrawObjs
See
<https://gerrit.libreoffice.org/c/core/+/167033/1#message-e1df9bf60b7b8b2acdf0c062484ddc572939a3d9>,
no need to undo the import-time mapping in case we know that the
mirroring is avoided at a layout level.

Change-Id: Idbdc10ad327540dc5045e9b19dd42160b5139470
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167049
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-05-03 16:28:04 +02:00
Christian Lohmaier
83c2ef7c78 turn gb_CustomTarget_get_workdir into error and remove old _repo_targets
separate commit since help submodule also uses the macro.

actually turn it into make error to prevent reintroducing it

the repo_target ones are from way back when the whole repo was
split up in many different ones and not used for many years,
no point in having those as errors

Change-Id: I9fd42529d08ea7859b33f8570936f06039cfa184
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167006
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-05-03 16:07:04 +02:00
Christian Lohmaier
9c4e0578ee Update git submodules
* Update helpcontent2 from branch 'master'
  to e8b21ab244345cea0a1d0b9190a8729ff3ea47b1
  - makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo)
    
    helpcontent2 portion
    
    Change-Id: I2e10bf8bf4cb39fa3a8f9a2c3eb8f22d8636560c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/167007
    Tested-by: Jenkins
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-05-03 16:06:40 +02:00
Christian Lohmaier
0c4c84a14b makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo)
…by a simple/static $(gb_CustomTarget_workdir)/foo

The build system has a lot of overly complicated leftovers from when it
was introduced and had not only deal with split repositories but also
had to coexist with another buildsystem. Along with lots of copy'n'paste
along the years the makefiles became hard to grasp for newcomers with
all our calls and evals.
As a first step to streamline that, the macros from TargetLocations that
simply prefix a static path to the argument (and similar of the same
kind) are a natural pick before simplifying the rules themselves/getting
rid of a bunch of eval statements.

Change-Id: Ia06dbbcd5d1994755a2ff05b84f72ccbc4e3cab5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167005
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-05-03 16:06:14 +02:00
Noel Grandin
d19b79e4b4 replace createFromAscii with OUString literals in sfx2
Change-Id: Ifc60fc260149106f257bf10551f081ce7d8fd6ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167039
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-03 15:57:46 +02:00
Moritz Duge
3bb9b0565a fix crash in CertificateChooser for GPG
mvUserData is still needed to keep it's content from being deleted.

Revert "Drop unused instance variable."

This reverts commit 687ae6ca01.

Change-Id: I689cfdaf8d4d62a3b53ff7fb318dc8c70b9e1c2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167020
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Jenkins
2024-05-03 15:39:52 +02:00
Olivier Hallot
510e622495 Update git submodules
* Update helpcontent2 from branch 'master'
  to d5d56e1d29b65749978ae5e9801531200477761b
  - tdf#150760 Missing link for Column Width in Base.
    
    + refactor
    
    Change-Id: I30052dc59c9ec6de6f398b9052739b64396be3a6
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/166878
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-05-03 15:32:39 +02:00
Pierre
548fc442f5 tdf#160375 Base displays and gives the full name of the table
Change-Id: Icc8c6d85cc5a88461b7bd02487513e0e864bacef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166057
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-05-03 15:14:27 +02:00
Caolán McNamara
1425cbc50a WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I8a15be14850b9fe48f80820f4308c35748497727
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167034
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-03 15:01:33 +02:00
Noel Grandin
23d5c8ed00 replace createFromAscii with OUString literals in framework
Change-Id: I925d79877d477e6273e0ca8d8de7af391d72bb78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167038
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-03 14:03:57 +02:00
Miklos Vajna
0f41068046 tdf#160833 sw DoNotMirrorRtlDrawObjs: add UI in cui/
The UI code at lcl_ChangeResIdToVerticalOrRTL() was aware that
SwAnchoredObjectPosition::CalcRelPosX() mirrors the position when the
anchor paragraph is RTL, so swapped the "from left" label to a "from
right" label.

Don't do this when the compat option is enabled, so not only we render
correctly but the UI now correctly explains why we came up with the
correct position.

Change-Id: I479ed1f085b249d10be47b66d7a656dc1bd4f936
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167031
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-05-03 13:51:08 +02:00
Julien Nabet
62b08851dd Related tdf#150082: remove duplicate gssapi_client/gssapi_errmsg
Change-Id: I38be66163320c1408f5bbb846727994c92e3c246
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167036
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2024-05-03 13:20:51 +02:00
Pierre
334585be92 tdf#160423 Base handle zoned time type correctly
Change-Id: Ib1b8f82295e861edb09e2f87deccc5b0edf8b296
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165560
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-05-03 12:35:58 +02:00
Jonathan Clark
14c6cde779 tdf#49885 Updated CJK BreakIterator to use ICU
Previously, the CJK BreakIterator used custom dictionaries for Chinese
and Japanese. This change removes these custom dictionaries in favor of
the upstream ICU implementation, which uses an externally-maintained
frequency dictionary for these languages.

This change also removes support code for dictionary-based break
iterators, as it is no longer used.

Change-Id: I55c4ce9c842d1751997309fd7446e0a6917915dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166136
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-03 12:30:59 +02:00
Xisco Fauli
d75a37a582 tdf#155651: Add support for "context-stroke"
Change-Id: Ib4f4a7b644d0d6c6b36e31b80fd7adc18999110d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167024
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-05-03 11:50:42 +02:00
Mike Kaganski
2aa310cfe0 tdf#160915: make own OLE objects obey AddReplacementImages setting
Change-Id: I25ce3c920dc8ba25d0ac14310ff9cba8a4c23c6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167026
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-05-03 11:19:04 +02:00
Xisco Fauli
9490972c04 Update git submodules
* Update dictionaries from branch 'master'
  to 0ca7301c3c00d6e7936fd912ba775d0008f7fee4
  - upgrade Ukrainian dictionaries to 6.4.4
    
    Change-Id: Idf246940bdf58844212420975ab52c19b08327ec
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/166872
    Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
    Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
    Reviewed-by: Andriy Rysin <arysin@gmail.com>
2024-05-03 10:44:03 +02:00
Stephan Bergmann
9d84957863 Simplify condition
...after this got wrapped in an outer

> ifeq ($(OS),EMSCRIPTEN)

in cf0b0f0dd0 "Emscripten: Only add the --pre-js
code to the soffice executable"

Change-Id: Ic2b9ae7709a06146a206ebaa2ee8881387dae6b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166998
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-05-03 10:23:56 +02:00
Julien Nabet
68008d9f01 tdf#160916: typo "Checbox"
Change-Id: Ia06bc947cd1788850251b1386977ef0229dddd8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167030
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-05-03 09:51:04 +02:00
Caolán McNamara
8662a96c90 WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I9b2b86c26e08221c57735c6eda88727aa8a46b5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167021
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-03 09:17:09 +02:00
Caolán McNamara
3cc6384e41 WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: Ibca9433761e7a7f97383991429cf0d575b4ba3d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167018
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-05-03 09:16:48 +02:00
Noel Grandin
5edaca5c89 use boost::small_vector in cppuhelper
shaves 5% off startup time

Change-Id: I901e1112727eb7a50f70d1853386e0696fee7e5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167000
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-03 09:00:41 +02:00
Michael Weghorn
b7ba358d48 sd, svx: Return new annotation instead of using out param
Let `SdrPage::createAnnotation` et al. return the newly
created annotation rather than using an out parameter,
which makes this more straightforward.

Change-Id: Iee0561859756522ef33680c2cc9b492541a31d5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167019
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-05-03 08:11:53 +02:00
Noel Grandin
0c98269868 replace createFromAscii with OUString literals in framework
Change-Id: I4fccbfd57d942f64ce812c8a7e8e373296918af4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167011
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-03 08:00:49 +02:00
Noel Grandin
cea484870c replace createFromAscii with OUString literals in framework
Change-Id: Id6682230a08a21048879e739a2b1445210181c75
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167012
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-03 08:00:38 +02:00
Noel Grandin
e0b159c1bc replace createFromAscii with OUString literals in filter
Change-Id: Ia3c4151a80be630d88b15dcb3de10ec4ddcca9d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167008
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-03 08:00:26 +02:00
Michael Weghorn
192bda8440 gtk4 a11y: Align role mapping with upstream GTK
Align the gtk4 a11y role mapping with what upstream
GTK 4 does with current git main (as of commit
0064500146fc080dae1ef2b30bebf7bb8b35a52f), see this
upstream GTK commit [0] and the one it refers to for
more details:

    commit ad8613876c753cea8695dc8b03dcd37eb8e723a5
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Tue Apr 30 14:44:11 2024 +0200

        a11y atspi: Improve mapping for container roles

        GTK_ACCESSIBLE_ROLE_GENERIC is for
        "a nameless container that has no semantic meaning of its own",
        for which AT-SPI role ATSPI_ROLE_PANEL [1]
        ("A generic container that is often used to group
        objects.") fits better than ATSPI_ROLE_FILLER
        ("A object that fills up space in a user interface."),
        so map to this one.

        With this in place, widgets like GtkBox are again
        reported with the panel role on AT-SPI level after
        commit a86923de943b6a42ba431be2a336972dca9c587d
        ("a11y: Change the role for many containers"),
        whose commit message suggests that the change
        on the AT-SPI level was unintended.

        For GTK_ACCESSIBLE_ROLE_GROUP, use the corresponding
        ATSPI_ROLE_GROUPING ("A group of related widgets.
        This group typically has a label.").

        [1] https://docs.gtk.org/atspi2/enum.Role.html

This causes the LO a11y roles `PANEL`, `SPLIT_PANE` and
`ROOT_PANE` to be mapped to the AT-SPI panel role again.

With the above-mentioned GTK upstream change, the native
GTK widgets now also use the panel role without having
to explicitly set anything on LO side rather than being
fillers, which removes the need to set them explicitly,
see the full commit message of

    commit f6ca163d3f
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Apr 26 12:43:24 2024 +0200

        gtk4 a11y: Don't create second AT context for OOoFixed

for more details.

Also, map the LO `FILLER` role to `GTK_ACCESSIBLE_ROLE_WIDGET`
which GTK maps to the AT-SPI filler role.
(The previously used `GTK_ACCESSIBLE_ROLE_GENERIC`
is now mapped to the AT-SPI panel role,  which
is for widget containers rather than fillers.)

[0] ad8613876c

Change-Id: I1d1a8f626911455481d2d722790e8915daa921c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166995
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-05-03 07:27:13 +02:00