Commit graph

490430 commits

Author SHA1 Message Date
Chris Sherlock
60abfe9e51 vcl: move textlayout.cxx from gdi to text directory
Change-Id: Ia8efd1d984c94b4fa6d77759fa8c8ec8834ac140
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157415
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-10-27 05:49:53 +02:00
Chris Sherlock
adba3022f1 vcl: flatten TextLayoutCommon::GetEllipsisString()
Change-Id: I04a5eed7a6fbd2d4c7f31006c73729cf79a2ed02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157367
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-10-27 05:48:33 +02:00
Justin Luth
7ac066438f tdf#156988 chardlg: default to AUTO escapement
As of 24.2, the default value for a superscript or subscript
is automatic placement since d384ccdb04.

Therefore, it makes sense for the character properties
dialog to also default to automatic.

Normally this happens - since normally there is some kind of context,
and in that case m_xNormalPosBtn was set with AUTO (m_xHighLowRB).
However, in the case of finding a formating, there is no context
for the very first run. That is what this patch intended to fix,
since in that case too we want m_xHighLowRB to be set to true.

For any other similar situation where there is no context,
assuming DFLT_ESC_AUTO_SUPER or DFLT_ESC_AUTO_SUB
should be appropriate.

Change-Id: I1ee78c72bbb1c3d23fa39da29322436632f12b14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158514
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2023-10-27 02:38:36 +02:00
Noel Grandin
b5b50c1fe3 cool#6893 cache the process component context
which we look up rather a lot

Change-Id: Ie8bcf161a1d7a299a404f749cf08a13f33f7f1cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158506
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-26 19:55:42 +02:00
Stéphane Guillou
5a59e6bf5a Update git submodules
* Update helpcontent2 from branch 'master'
  to bcef222378f8d2225596ea624f9c82e9cb48a01d
  - add link to langpack downloads
    
    Change-Id: I237e89e0263cdf27105cf4395d2272f9d96e2235
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/158444
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-10-26 19:39:37 +02:00
Stephan Bergmann
fa91d0a3e8 Replace use of "Calibri" and "Calibri Light" with "Noto Sans"
...in CppunitTest_chart2_xshape, which had caused
<https://buildbot.flathub.org/#/builders/6/builds/75165> to fail with

> diff.cxx:324:Assertion
> Test name: Chart2XShapeTest::testTdf149204
> assertion failed
> - Expression: valInTolerance
> - 3511; Found Value: 3485; Tolerance: 1; Relative: 0
>
> diff.cxx:265:Assertion
> Test name: Chart2XShapeTest::testPieChartLabels1
> double equality assertion failed
> - Expected: 8383
> - Actual  : 8399
> - Delta   : 1e-08
> - Reference: /run/build/libreoffice/chart2/qa/extras/xshape/data/reference/tdf90839-1.xml
> - Node: /XShapes/XShape[2]/XShapes/XShape[3]/XShapes/XShape[2]
> - Attr: positionX
>
> diff.cxx:324:Assertion
> Test name: Chart2XShapeTest::testPieChartLabels2
> assertion failed
> - Expression: valInTolerance
> - 3124; Found Value: 2966; Tolerance: 1; Relative: 0
>
> diff.cxx:324:Assertion
> Test name: Chart2XShapeTest::testPieChartLabels3
> assertion failed
> - Expression: valInTolerance
> - 3124; Found Value: 2966; Tolerance: 1; Relative: 0
>
> diff.cxx:324:Assertion
> Test name: Chart2XShapeTest::testPieChartLabels4
> assertion failed
> - Expression: valInTolerance
> - 2768; Found Value: 2531; Tolerance: 1; Relative: 0

Change-Id: I518d37bedf7d8738396e05011223bd970786a45a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158377
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-26 19:08:47 +02:00
Stephan Bergmann
b36b24ecfb Use std::from_chars
(which also makes readInt32 report failure, instead of running into UB, when the
read value is out of range)

Change-Id: I8449e4fe696c9b0ab5b868127ef517dc080c31ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158489
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-26 19:08:08 +02:00
Noel Grandin
d2fccf0117 cool#6893 improve listeners in SfxBaseModel
reduces CPU spent in UNO query'ing, and adds type-safety, which exposed
a bug in SfxBaseModel::disposing

Change-Id: I4b973f7dc38f491ce7a6281ad378e439b5450add
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158500
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-26 19:02:53 +02:00
Andreas Heinisch
96b91357fb tdf#157897 - Clear print ranges before adding additional ones
Otherwise, additional print ranges will be added for linked files after
the external link will be updated.

Change-Id: I0556fda6609d3e18f1ca992dc6a0399be01bc841
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158365
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2023-10-26 18:41:49 +02:00
Michael Weghorn
69b50eee1c gtk4 a11y: Map checkbox role to gtk equivalent
This makes a checkbox form control in a Writer document
show up with the proper role in Accerciser, no longer
as a filler.

Change-Id: I5566d27ecfbe9ec54dcfbf20693899b72d3af738
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158505
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-10-26 18:10:10 +02:00
Caolán McNamara
ce8920448c null-deref seen in ScTabView::UpdateEditView
#0  0x00007f2bcc41df63 in ScViewData::GetCurYForTab (this=this@entry=0x3502d0b8, nTabIndex=nTabIndex@entry=6)
     at libreoffice/sc/source/ui/view/viewdata.cxx:1443
 #1  0x00007f2bcc3ebf02 in ScTabView::UpdateEditView (this=this@entry=0x3502d0b0) at libreoffice/sc/source/ui/view/tabview3.cxx:2185
 #2  0x00007f2bcc3ec636 in ScTabView::UpdateFormulas (this=this@entry=0x3502d0b0, nStartCol=nStartCol@entry=-1, nStartRow=nStartRow@entry=-1, nEndCol=nEndCol@entry=-1,
     nEndRow=nEndRow@entry=-1) at libreoffice/sc/source/ui/view/tabview3.cxx:2327
 #3  0x00007f2bcc40735c in ScTabViewShell::Notify (this=0x3502cf20, rBC=..., rHint=...) at libreoffice/sc/source/ui/view/tabvwsh5.cxx:216
 #4  0x00007f2bdc1885a9 in SfxBroadcaster::Broadcast (this=this@entry=0x31e31430, rHint=...)
     at libreoffice/svl/source/notify/SfxBroadcaster.cxx:40
 #5  0x00007f2bcc022e6d in ScDocShell::PostDataChanged (this=this@entry=0x31e31430) at libreoffice/sc/source/ui/docshell/docsh3.cxx:95
 #6  0x00007f2bcc0101aa in ScDocShell::SetDocumentModified (this=0x31e31430) at libreoffice/sc/source/ui/docshell/docsh.cxx:3015
 #7  0x00007f2bcc010df3 in ScDocShellModificator::SetDocumentModified (this=this@entry=0x7fff2d168da0)
     at libreoffice/sc/source/ui/docshell/docsh.cxx:3330
 #8  0x00007f2bcc040c1a in ScDocShell::MoveTable (this=this@entry=0x31e31430, nSrcTab=<optimized out>, nDestTab=<optimized out>, bCopy=bCopy@entry=false, bRecord=bRecord@entry=false)
     at libreoffice/sc/source/ui/docshell/docsh5.cxx:1010
 #9  0x00007f2bcc441a41 in ScViewFunc::MoveTable (this=this@entry=0x333d0fe0, nDestDocNo=nDestDocNo@entry=0, nDestTab=nDestTab@entry=7, bCopy=bCopy@entry=false,
     pNewTabName=pNewTabName@entry=0x7fff2d169068) at libreoffice/sc/source/ui/view/viewfun2.cxx:3117
 #10 0x00007f2bcc418459 in ScTabViewShell::ExecuteTable (this=0x333d0e50, rReq=...) at libreoffice/sc/source/ui/view/tabvwshf.cxx:593
 #11 0x00007f2bdbd3d96f in SfxDispatcher::Call_Impl (this=this@entry=0x33379ed0, rShell=..., rSlot=..., rReq=..., bRecord=<optimized out>)
     at libreoffice/sfx2/source/control/dispatch.cxx:254
 #12 0x00007f2bdbd427ee in SfxDispatcher::Execute_ (this=this@entry=0x33379ed0, rShell=..., rSlot=..., rReq=..., eCallMode=eCallMode@entry=SfxCallMode::RECORD)
     at libreoffice/sfx2/source/control/dispatch.cxx:753
 #13 0x00007f2bdbd45a33 in SfxDispatcher::Execute (this=0x33379ed0, nSlot=<optimized out>, nCall=nCall@entry=SfxCallMode::RECORD, pArgs=pArgs@entry=0x7fff2d1694a0,
     pInternalArgs=pInternalArgs@entry=0x7fff2d169460, nModi=nModi@entry=0) at libreoffice/sfx2/source/control/dispatch.cxx:813
 #14 0x00007f2bdbd83c0f in SfxDispatchController_Impl::dispatch (this=<optimized out>, aURL=..., aArgs=..., rListener=...)

we have nulls in here for hidden sheets

Change-Id: I8f1295e67552f3ec9306a031aaecd0838e18d98d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158502
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-26 17:41:02 +02:00
Stephan Bergmann
0f132270b4 No --without-fonts gb_CppunitTest_set_non_application_font_use,*,abort
...which had caused an (explicit --without-fonts) Fedora build to hit the
std::abort in PrintFontManager::Substitute
(vcl/unx/generic/fontmanager/fontconfig.cxx) during
CppunitTest_sd_import_tests-smartart's testTdf134221::TestBody, apparently for
some aTargetName = "DejaVu Sans"

Change-Id: I3b050eb3225595e6ce22a8df22dbb11f920cac4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158492
Reviewed-by: Dan Horák <dan@danny.cz>
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-26 17:03:30 +02:00
Noel Grandin
0446f73d27 tdf#153519 use new IdleTask::waitUntilIdleDispatched
to wait until the Idle inside sw/ has done populating the navigator
tree.

Which required
(*) moving the code down from test/ to vcl/ to avoid circular dependency
issues.
(*) adding a call SolarMutexGuard before Application::Yield inside
IdleTask::waitUntilIdleDispatched
(*) exposing the function to python by adding a method to the
XToolkitExperimental UNO API

Change-Id: Iee418f7a0beb1f5b53addb7fe25823d61720eb3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158495
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-26 16:10:29 +02:00
Caolán McNamara
455a1775cc crash seen in Window::ImplTrackTimerHdl
#0  vcl::Window::ImplTrackTimerHdl (this=0x3403b0a0, pTimer=<optimized out>) at libreoffice/vcl/source/window/window2.cxx:231
 #1  0x00007f2bdd31f5e7 in Scheduler::CallbackTaskScheduling () at libreoffice/vcl/source/app/scheduler.cxx:485
 #2  0x00007f2bdd4e5176 in SalTimer::CallCallback (this=<optimized out>) at libreoffice/vcl/inc/saltimer.hxx:54
 #3  SvpSalInstance::CheckTimeout (this=this@entry=0x261ef40, bExecuteTimers=bExecuteTimers@entry=true)
     at libreoffice/vcl/headless/svpinst.cxx:212
 #4  0x00007f2bdd4e713d in SvpSalInstance::ImplYield (this=this@entry=0x261ef40, bWait=bWait@entry=true, bHandleAllCurrentEvents=bHandleAllCurrentEvents@entry=false)
     at libreoffice/vcl/headless/svpinst.cxx:453
 #5  0x00007f2bdd4e74a0 in SvpSalInstance::DoYield (this=0x261ef40, bWait=<optimized out>, bHandleAllCurrentEvents=<optimized out>)
    at libreoffice/vcl/headless/svpinst.cxx:525

Change-Id: I66ec56603aeb8a7fe855253b961dafb0bc7b875e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158441
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-26 15:52:33 +02:00
Caolán McNamara
6f3334a204 add warning for suspicious potential double-tracking
Change-Id: I0fa7b2a108350a394b5d774aaed899215bdb20de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158501
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-10-26 15:51:53 +02:00
Noel Grandin
6eb4cce433 tdf#157083 Artifacts in logos (gen)
regression from commit
    commit 81994cb2b8
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Fri Apr 16 20:33:10 2021 +0200
    Convert internal vcl bitmap formats transparency->alpha (II)

Change-Id: I1c269bcfa9b565258bc99c2810e960ae965f9b54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158491
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@neooffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-26 15:46:10 +02:00
Michael Stahl
6787d2ae5e sw: fix comments in SwRootFrame::CalcFrameRects()
Change-Id: I1af7fd09bb2d3636b97825724a988e7912a3653b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158428
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-10-26 11:03:31 +02:00
Balazs Varga
916ea4b0aa tdf#157846 - UI: Part 9 - Unify lockdown behavior of Options dialog
for Accessibility Page.

Change-Id: I4705904200715c1e41849a47a3dd684ddfa219c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158425
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2023-10-26 09:23:06 +02:00
Balazs Varga
ee368cc3f9 tdf#157843 - UI: Part 8 - Unify lockdown behavior of Options dialog
for OpenCL Page.

Change-Id: I94c4a1afc7703de378ae65c0173d178954f647a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158424
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2023-10-26 09:22:53 +02:00
Balazs Varga
54aa9a9cb7 tdf#157842 - UI: Part 7 - Unify lockdown behavior of Options dialog
for Personalization Page.

Change-Id: I5f2b674b9548610be8f918e6713e6ea91be7442e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158418
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2023-10-26 09:22:40 +02:00
Balazs Varga
6a8cae6995 tdf#157840 - UI: Part 6 - Unify lockdown behavior of Options dialog
for Security Page.

Change-Id: I9b5282326ea8edeb00d45d9d034a18041f89a281
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158393
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2023-10-26 09:21:27 +02:00
Balazs Varga
9e8c90d92a tdf#157839 - UI: Part 5 - Unify lockdown behavior of Options dialog
for Font Page.

Change-Id: Idd7bdf5d79269dcb5b6e3276b91f17221c3b02e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158384
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2023-10-26 09:20:49 +02:00
Xisco Fauli
0c008ab081 tdf#157132: restore behaviour for TBL_RELBOXNAME
Regression from 8a3dc12a13
"8a3dc12a13a3b9e99dbd5000ca6a1d541cf472f7"
TBL_RELBOXNAME was no longer calling ToRelBoxNm

Change-Id: I296d84ab955b4415bf9173ccf72b4d51e55152f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158454
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-10-26 08:48:23 +02:00
Miklos Vajna
d6527f1276 Related: tdf#157590 sw floattable: avoid a bit of not needed work
See
<https://gerrit.libreoffice.org/c/core/+/158379/2#message-b9a1e9b65b5fe7bfec6a88af19032dcef73ff920>,
we only need to work out if this row has spans in case the row would
split, can skip this otherwise.

Change-Id: Ic61dade7f42e7e43322e902a1f91d6a62bdc0ed8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158414
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-10-26 08:26:21 +02:00
Miklos Vajna
8c39af455c uitest oneprocess mode: default to this and clean up one test
Now that all UITests either use gb_UITest_use_oneprocess or
gb_UITest_avoid_oneprocess, it's possible to change the default to use
oneprocess mode out of the box.

Also clean up one test depend on this default. A later commit can clean
up all other uses of gb_UITest_use_oneprocess, which is now redundant.

Finally fix a typo in sw/UITest_sw_sidebar.mk.

Change-Id: I6ae2ac5deb9c8ced9007c5b7da32743f9a2599ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158471
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-10-26 08:12:20 +02:00
Michael Weghorn
809409ca84 tdf#135586 a11y: Make IAccessible2 an external and update it
So far, there was an internal copy of the IAccessible2
IDL file added in 2013, and never updated since then
(except for cosmetic changes like formatting and typo
fixes), and therefore it e.g. doesn't have the
`IA2_ROLE_BLOCK_QUOTE` role needed for tdf#135586.

Drop the outdated internal copy and integrate an up to
date upstream version (current git master) instead.

Instead of duplicating things in an internal copy,
switch to using the usual mechanism for externals.

The IAccessible2 source contains separate .idl files
for the different interfaces, while the previous
interal copy was already the merged IDL file.

Call the IAccessible2 `./concatidl.sh` script to generate
the merged `ia2_api_all.idl`
(s. external/IAccessible2/ExternalProject_IAccessible2.mk)
and adapt the winaccessibility make files to use that
version instead of the internal copy.
(Add a dependency to the target that generates
`ia2_api_all.idl`.)

The tarball was generated from the master branch of the
IAccessible2 git repo [1] as of

    commit 3d8c7f0b833453f761ded6b12d8be431507bfe0b (HEAD -> master, origin/master, origin/HEAD, mygithub/master)
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Fri Oct 13 04:16:03 2023 +0300

        Update no longer working links (#26)

        * Update link to Linux Foundation Trademark Policy
        * Update link to Object Attributes specification

        Signed-off-by: Michael Weghorn <m.weghorn@posteo.de>

using this command:

    $ git archive -o ../IAccessible2-1.3+git20231013.3d8c7f0.tar.gz --prefix=IAccessible2-1.3+git20231013.3d8c7f0/ master

Andrea Gelmini's typo fixes have been upstreamed in [2].

[1] https://github.com/LinuxA11y/IAccessible2
[2] https://github.com/LinuxA11y/IAccessible2/pull/21

Change-Id: I9f19ff55694da5d3a9a8750be8de387cbf6da785
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158427
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-10-25 20:48:07 +02:00
Seth Chaiklin
9f3e8b2546 tdf#157908 "Evaluate" -> "Include" in outline level option
Change-Id: Ida8f753175eeb818378160d481a4d71e09054e62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158432
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2023-10-25 18:11:35 +02:00
Seth Chaiklin
7eb1b3f3e9 Update git submodules
* Update helpcontent2 from branch 'master'
  to 3ae6c825415ce74ed8f0487acc043fd3a41c46e4
  - tdf#157908 update label change to "Include up to level"
    
      * correction to explanation of "Include up to level"
      * simplify explanation of Additional Styles, and add
        mention of "Include up to level"
      + add link to "Apply Styles" help page
      
    Change-Id: If72b7b1df5e3e5a3f18cfda86a875345866fa471
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/158435
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2023-10-25 18:06:37 +02:00
Ilmari Lauhakangas
725c543c3b Update git submodules
* Update helpcontent2 from branch 'master'
  to 69f85cbf17c5acb8fb9b38772139c34eea96a772
  - Improve accessibility of dropdown menus
    
    Now the opened menus can be closed with Esc key, so we conform
    to the dismissible success criterion in WCAG 2.1:
    https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html
    
    To simplify things, now the navigation lists are populated upon
    page load in all cases.
    
    Change-Id: I0a7daaea122d3e03de36c322ccb012c546b271e0
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/158429
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-10-25 17:53:36 +02:00
Mike Kaganski
9299afbbd6 Export text placeholder fields as PDF form fields
Inspired by commit 82d90529dc
(sw content controls, rich text: add initial PDF export, 2022-09-12).

Change-Id: I16cc45b6f2e070ab9dc83ba15e3c66ca0caa5e53
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158407
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-25 15:54:59 +02:00
Mike Kaganski
ec54e7330a Simplify SwTextFormatter::NewFieldPortion
Change-Id: I7e5cbce45bba4550f572606f44300b914ff5a41c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158433
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-25 15:54:46 +02:00
Mike Kaganski
3a87f9b67f Drop unused SwFieldPortion::m_nAttrFieldType
Change-Id: Id5858018607c6b0cab0d55a5d247fb39db0978bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158431
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-25 14:28:47 +02:00
Michael Stahl
5dfae9e00f tdf#157703 sw: PDF/UA export: export heading labels as text
Been advised that a Lbl element is not much use in practice.

Change-Id: I4ea339d7b48a7ee8ae40f94a9fc71f3e409c07ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158421
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-10-25 13:37:10 +02:00
Seth Chaiklin
04a208bf5e Update git submodules
* Update helpcontent2 from branch 'master'
  to 3c0331071035ec78359ec8a4e5919164a31ec879
  - remove xml-lang
    
    Change-Id: Ib512a2d5d587da2bb8e459ab90eb5a42d2424be8
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/158434
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2023-10-25 13:33:19 +02:00
Mike Kaganski
09e04efc7c Simplify a bit
Change-Id: I6b98dd9b383b82c5bcba9235d81b0a9a63a918b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158430
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-25 13:30:47 +02:00
Noel Grandin
505c5821d6 small steps to getting ASAN on Windows working
Change-Id: Ie8941a7cc87cb5c5dba62e9356e960e45f5560d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158416
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-25 12:48:28 +02:00
Xisco Fauli
33f158d96c tdf#157795: sd_png_export: Add unittest
Change-Id: Iedf8c33833ce08d42fd52a7080fa6b60e9555c09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158417
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-10-25 12:28:08 +02:00
Xisco Fauli
6c073a180b tdf#139141: Add UNO commands for variable date/time fields
Impress already has both options in the menu
Also re-enable test disable with fa569930a0
"Revert "Resolves tdf#139141 - Make variable date/time field the
default""

Change-Id: I1cec89b5901073555ffa31d2be24e1e62fbbdcb3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158391
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2023-10-25 12:25:53 +02:00
Xisco Fauli
5a8011372f list-dispatch-commands: do not ignore aliases
For instance, .uno:ViewTrackChanges should also be listed

Change-Id: Ifdaaa91b053a28d5ba9a6926d81194d92c6ca65f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158386
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-10-25 12:02:33 +02:00
Mike Kaganski
6448c83a87 DBG_UTIL implementation differs only by never-wrong assert
Change-Id: Ifb879d6536c80f00da61707fb0aa0700dcd19bcc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158288
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-10-25 11:42:13 +02:00
Michael Stahl
949f0d9cf2 vcl,sw: PDF/UA export: produce Ruby and Warichu SEs
These need to generate multiple elements in
SwTextPainter::PaintMultiPortion() and it's not altogether obvious.

Change-Id: Ib5fd36c3ea8e15dff93a87bb231c3cc4f78b0089
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158398
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-10-25 11:31:01 +02:00
sahil
e558cbed9b tdf#114441 - Convert use of sal_uLong to better integer types
nUpdateInterval (sal_uLong --> sal_uInt64) because it is passed as
argument to Timer::SetTimeout function that takes a sal_uInt64

func CalcUpdateInterval (sal_uLong --> sal_uInt64 return type) because
this function is only being called once, and in that call, the
return value is passed to a function which takes sal_uInt64 type
int. line 412
(https://opengrok.libreoffice.org/xref/core/sc/source/ui/view/select.cxx?r=b6b26421#412)
two lines after which it is passed to a function ...

and the function changed in vcl/source/window/seleng.cxx is the one to
which the value of nUpdateInterval is being passed as explained in
the lines above.

Change-Id: I73441c2d3520a222ddb39b8c0c205b4dd61d4751
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156015
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2023-10-25 11:27:28 +02:00
Yli875
0c50fe53ac tdf#156550 sw: Add a unit test
Change-Id: If0ecfc8f7ebfce330ef0e25b17f48d2a34957299
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158395
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-10-25 11:27:14 +02:00
Stephan Bergmann
dcaa2c4870 Use std::signed_integral concept
...which, unlike std::is_signed, also requires that T is an integer type, not
just any arithmetic type, but which appears to fit well here anyway.

But LLVM 12 libc++, which is apparently used by Android builds, only provides a
bare-bones <concepts> that lacks std::signed_integral (among others), so for now
introduce o3tl/concepts.hxx providing what's missing (incl. std::integral and
std::unsigned_integral, for some kind of consistency).

Change-Id: I1c37d37fa1b57b5e3bf24c9e44f3973003905cb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158406
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-25 10:27:26 +02:00
Miklos Vajna
9704f61982 tdf#155682 sw floattable: fix DOCX with big pictures causes endless loop
The bugdoc had a floating table in the header that overlapped with
full-page, as-char anchored images in the body text, leading to a layout
loop.

The trouble is that the body text was broken into 2 lines: the first
line just had fly portions for the area where the in-header floating
table was rendered and then the second line hosted the actual image. But
then this image didn't fit the remaining space, so it moves to the next
page. And this happened again and again.

Fix the problem by keeping in-header anchored floating tables inside the
boundary of the header, this way the body text still doesn't overlap
with the floating table, but the space available to the body text
doesn't have to contain fly portions. Which means we don't try to move
the image to a next page, so there is no loop.

Note that the IsFollowingTextFlow flag is already ignored in some cases
(e.g. sw/qa/extras/ww8export/data/tdf128700_relativeTableWidth.doc), so
this doesn't break the use-case when a footer provides an anchor
position for some text on the left/right margin. In that case the footer
height is still unchanged as it should be.

Change-Id: Id9e80140af3123d52b0fea2f96fc19c150c8e736
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158413
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-10-25 09:34:28 +02:00
Miklos Vajna
aa6882da4b CppunitTest_sw_ooxmlexport10: avoid preTest()
This keeps all code of a test in a single place, if we don't trigger the
preTest() magic.

Change-Id: I13254fd11be344f84e0a8bb8eab4b93d7c1a8825
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158400
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-10-25 08:11:36 +02:00
Patrick Luby
4cf636fab3 tdf#157790 invert alpha mask
Due to commit 81994cb2b8,
the alpha mask needs to be inverted.

Change-Id: I4771c5f6f3a08fb210b62a0533df895a4a476058
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158410
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-25 07:51:13 +02:00
Kohei Yoshida
b14583ba37 Support conditional loading of Apache Parquet files into Calc
Also, use orcus::create_filter() and simplify the logic a bit.  This
requires orcus 0.19.1 or newer.

Note that this change makes it possible to load Apache Parquet files
if and only if orcus has been built with the parquet import filter
enabled.  Using orcus without the parquet import filter enabled will
not break the build or run-time behavior; you just can't load parquet
files.

Change-Id: I9f8820998b7b0667d1e7cd532c32b1c7e55ca999
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158411
Tested-by: Jenkins
Reviewed-by: Kohei Yoshida <kohei@libreoffice.org>
2023-10-25 03:59:57 +02:00
Kohei Yoshida
b5d194d1d3 Upgrade liborcus to 0.19.1
Change-Id: I2190419e88323bbf000602a7762e850a33b5dfdf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158409
Tested-by: Jenkins
Reviewed-by: Kohei Yoshida <kohei@libreoffice.org>
2023-10-25 01:33:12 +02:00
Stephan Bergmann
3d58f3c0c2 Use requires-clauses
Change-Id: I27c990f27023aba5e77c6b406d7dbdcc898054ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158405
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-10-24 22:46:25 +02:00