Commit graph

473495 commits

Author SHA1 Message Date
Xisco Fauli
360e7eaef9 tdf#128610: math: add UItest
Change-Id: I9fe1a349a73790e7fa1c503112a27f76d238c0c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131538
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-03-14 15:25:08 +01:00
Olivier Hallot
33af49a83e Update git submodules
* Update helpcontent2 from branch 'master'
  to e159fae8ea7be0552646da8de925b6b7dafeefe9
  - tdf#147862 (part) - Fontwork toolbar description
    
    Change-Id: Ia43a7b69b301cbd85dac2e34ca5ea061ba09de6e
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/131330
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-03-14 15:19:26 +01:00
Olivier Hallot
a8e3560d8e Update git submodules
* Update helpcontent2 from branch 'master'
  to 80f1bca2adc9b5b0b63d266943779a1c0ae08ce2
  - Improve track changes help pages
    
    Change-Id: I04ee3cd429e96d1830c1038337a88a3a2dcf8e9c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/131544
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-03-14 15:01:27 +01:00
Noel Grandin
22be1665dc tdf#147143 Word selection error in Arabic text
this reverts
    commit 563af8fd15
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Fri Jan 7 22:50:29 2022 +0200
    tdf#144890 Invalid selection area when text in LTR run
and
    commit ec50b9e5ea
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Thu May 27 11:16:11 2021 +0200
    no need to allocate Sw2LinesPos separately on heap

No idea why the commits caused trouble, clearing there is some
"interesting" interaction going on.

Change-Id: I606768403db777b61554f378d3f69f9b4d33d493
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131533
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-14 14:55:04 +01:00
Noel Grandin
6ba9daac76 add TypedWhichId version of QueryState
Change-Id: I95b86fc081847da01e06f50a1b2c7e7f5456c638
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131529
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-14 14:20:26 +01:00
Szymon Kłos
a342ac91e2 lok: insert textbox directly in Calc
Change-Id: I3ae00b255dfbaa34ab8d973356d12dfd0f71d345
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131267
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mert Tumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131536
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2022-03-14 14:16:14 +01:00
Xisco Fauli
d6c4ec7b00 tdf#147961: sw_uiwriter3: Add unittest
Change-Id: I49f4f98d77f0c5e8caa6471e9c938a472a9aaf96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131526
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-03-14 13:33:58 +01:00
Szymon Kłos
851560310f lok: fix position og autofilter in RTL mode
Change-Id: I73f2b003185c326f4d66c974a2e5aaecb4e0199a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130916
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mert Tumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131513
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2022-03-14 13:21:48 +01:00
Szymon Kłos
68ff5bf424 lok: send logic autofilter position
we need to show popup relative to the grid window

Change-Id: Ib0cf66d2c0422b765a3b8035d5499b45e83f768d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130528
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mert Tumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131511
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
2022-03-14 13:21:36 +01:00
Noel Grandin
d67017bfe2 simplify GetOOXMLPresetGeometry
all the call sites are using OUString, so push the utf8 conversion
into the function

Change-Id: I875249b8702cde63737fd42dc1d1592be059cc11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131525
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-14 13:14:55 +01:00
Xisco Fauli
c4c8146c99 tdf#147767: sc: Add UItest
Change-Id: I87d94c33af9676a147a07380b5f39add59b26038
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131530
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-03-14 13:05:56 +01:00
Olivier Hallot
74f6f2cd88 Update git submodules
* Update helpcontent2 from branch 'master'
  to 01883bab23e9bf50fbf1ce801fcde80f00508f5b
  - tdf#147862 (part) Update Navigation bar help page
    
    Change-Id: If10e2cfa110f62906028571ed23ef1adb0abf539
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/131380
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-03-14 12:39:54 +01:00
Xisco Fauli
01ec377c04 sw: fix bug id in comment
Change-Id: I510a48765b2ad286ddc194f6ca1a96211bcb05f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131528
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-03-14 12:38:42 +01:00
Olivier Hallot
76bb029866 Update git submodules
* Update helpcontent2 from branch 'master'
  to 298513eb58210a77aed5d4ab8325f9c142bc4457
  - tdf#147862 (part) Update Form Control & Design toolbars
    
    Change-Id: Id19ec57e715e9d1fb85df45736ebac258a9d255b
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/131372
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-03-14 12:22:05 +01:00
Olivier Hallot
98d037c046 Update git submodules
* Update helpcontent2 from branch 'master'
  to e5dbb88dabc1ac5e5d0aa7ba130338690db800cc
  - tdf#147862 add  Track Change Toolbar help page
    
    Change-Id: I5e42059d5175838a8398694980f653cde5655e03
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/131397
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-03-14 12:21:31 +01:00
Xisco Fauli
3d8c11a8ea tdf#147894: sc_uicalc: Add unittest
Change-Id: Id7e5159542b17a510958ea8e22343e979720a56b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131527
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-03-14 12:11:37 +01:00
Mert Tumer
3a2c156eb8 dont send text selection start/end when there is no selection
when there is no selection, startrect and endrect get the
cursor coordinates, we should not send it. Otherwise this
causes selection handles to appear on online

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I4402e04d4a16a1f840499c57421fd01caf43f116
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130525
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131520
Tested-by: Jenkins
2022-03-14 11:53:31 +01:00
Tor Lillqvist
7545a53f53 unit_online_get_fonts() has not been used by Online since 2017
Change-Id: I7dddb4fd40f219df1969f452c95170bc70caa44f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131524
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-03-14 11:53:22 +01:00
Mert Tumer
9630bbc6df lok: Set pasted text rect pos to 0, 0
Rect size change according to the length of the text
however, this can make the text inserted in the negative coordinates
and half of it becomes invisible.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ibd4e6164c21088205efecf024c1888c55ac33f0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128603
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131519
Tested-by: Jenkins
2022-03-14 11:53:10 +01:00
Mert Tumer
dc05d912b5 set active element to -1 when no selection for fontnamebox
FontNameBox sets the currentVal to emptystring when there's
a mixed font-name selection on the text but does not update
the active_element which is incorrect whereas other comboboxes such
as FontSize does it correctly.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Iff86bba64c2ab564ff5c5fa979eb846af9651a11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128551
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131518
Tested-by: Jenkins
2022-03-14 11:52:59 +01:00
Mert Tumer
74d24d03af lok: remove residue text selection when there's none in the core
Residue selection can stay at the browser even after changing the cellcursor pos
make sure to clean it up if there is no selection rectangle in reality
to be synced with core.

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I1b06b6ec84ae195936d12dc986ef4a19b26dbc8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128351
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131517
2022-03-14 11:52:47 +01:00
Mert Tumer
422fd36493 LOK android: Fix csv sheet name becomes temp name
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: If43d7a995a5e53734fc7ecdcbf9b750b4886dc45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127684
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131516
2022-03-14 11:52:33 +01:00
Mert Tumer
2df5a083a8 lok: Fix freshly added comments are not displayed
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ice772eff8b9f8ae8c23ec1e66675e33a80492028
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128217
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131515
Tested-by: Jenkins
2022-03-14 11:52:20 +01:00
Caolán McNamara
c9a4c8a8ab ofz#45525 Null-dereference READ
Change-Id: I9d31b89fc7fa9447823ded4f6891b47100215c0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131523
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-14 11:37:36 +01:00
Alain Romedenne
f34adef948 Update git submodules
* Update helpcontent2 from branch 'master'
  to 8b84a4ae1df2b644e612cbc2544ba9dc8b8cecf5
  - CallByname basic example correction
    
    Change-Id: Iccfbb52d678cae4c6ce100cfa41576f207120bb2
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/131204
    Tested-by: Jenkins
    Reviewed-by: Alain Romedenne
2022-03-14 11:04:57 +01:00
Stephan Bergmann
5337675a31 Simplify vcl::EnglishStringToMetric
Change-Id: I10b93a073a58c175d487b7aac3a65d461974eb6a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131514
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-03-14 10:39:48 +01:00
Luboš Luňák
89fb3f7e87 cache also failures in SalLayoutGlyphsCache
This is what 3f69ec9ab4 did in Writer.

Change-Id: I40fb49ce83fd24f16050318c523d87603300b06d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131392
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-14 08:38:09 +01:00
Luboš Luňák
3e3ef58be1 move cache for SalLayoutGlyph's from Calc to VCL
For reuse later.

Change-Id: I43479148a8312a36e56f267435e77acc8bf9bd35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131390
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-14 08:37:53 +01:00
Noel Grandin
ef82ccdda9 new loplugin:trivialconstructor
Change-Id: Iaaf63c49ce94987ab9c4ebc68e963cc3054a3c34
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131342
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-14 07:36:13 +01:00
Rizal Muttaqin
d156995180 Colibre: Resolves tdf#146232 Adjust lock overlay icons
Change-Id: I75598093ab1aaf2e6da897be75d6273ac5636556
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131457
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-03-14 01:36:13 +01:00
Caolán McNamara
d0a5d8429c cid#1502949 Logically dead code
Change-Id: I259e105c73141744b667f8ab61fd61dac8e4ef9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131500
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-13 21:51:55 +01:00
Caolán McNamara
0898179afc ofz: Divide-by-zero
Change-Id: I8d88558be5bcf4556d94ab86015f5e039e72da08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131503
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-13 20:53:19 +01:00
Julien Nabet
924791c51b Remove forgotten remnant test code
Change-Id: Iffa86449fc2e4946821afea07e22deb355c7fbf4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131507
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2022-03-13 20:47:57 +01:00
Heiko Tietze
122e9364ab Related tdf#146545 - Make Colibre (Dark) available in icon themes
Change-Id: I4a66b6038d2a25160efa6d5ba64f6432d9736e2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131462
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-03-13 20:40:13 +01:00
Caolán McNamara
020e26dcdc ofz#45528 we assert on using a negative y-scale so don't import one
Change-Id: I3726a1b7164e4784c8e7954c7230745fa89ec2fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131501
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-13 20:07:05 +01:00
Caolán McNamara
b8bb44132f don't need this exclude entry anymore
Change-Id: Ifb9f611dfb5751af40c8d8ec5f967e0ec535ae60
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131502
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-13 20:06:48 +01:00
Jim Raykowski
9ae74207e0 SwNavigator: Gray out Comments members not visible in the document
Grays out comment members in the Navigator Comments member list that
are in hidden sections and folded outline content. Not showing comment
annotation windows will not cause comment member graying. The patch
also fixes comments sometimes not showing in the member list after
document load due to the document layout of comments not being
completed before the comment content array is initially filled.

Change-Id: Id3ac664480c36f1a3d072f7658cc9269a55b70aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130471
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2022-03-13 19:55:46 +01:00
Noel Grandin
7c7f00a89a tdf#147961 Crash Typing "++" and press Enter (AutoCorrect Create Table)
regression from
    commit 7cd5b35caa
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Fri Sep 24 13:21:35 2021 +0200
    return SwCursor from IShellCursorSupplier

Change-Id: I6a4e3f90653dc96a91091be1372f27c6303ba346
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131505
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-13 19:32:59 +01:00
Andrea Gelmini
34cd775646 Fix typos
Change-Id: I9f583937da2cf49fc9013d9e36d63fff312ccb92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131495
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2022-03-13 19:17:37 +01:00
Andrea Gelmini
36ad7bf558 Fix typo in code
Change-Id: Ide7c82fadf701e8f16468c153d871757d6a92569
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131496
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2022-03-13 19:17:11 +01:00
Andrea Gelmini
f13c92951d Fix typo in code
Change-Id: I4655ae7da84f606e4a1d1b7e72dede609c43aada
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131498
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2022-03-13 19:16:48 +01:00
Andrea Gelmini
3c6e959309 Fix typo in code
Change-Id: I2dd9383587fb3621f1f2bcc53c064c437de33bf1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131493
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2022-03-13 19:16:24 +01:00
Andrea Gelmini
15cf536adc Fix typo in code
Change-Id: Id38f846aaf451d94e975e049f6494a6261eb4ae3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131494
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2022-03-13 19:15:47 +01:00
Caolán McNamara
d71323b29c cid#1502951 Logically dead code
Change-Id: I59efa10d5aab53e3c0d830d04b659c39f14bdd3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131499
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-13 18:36:49 +01:00
Caolán McNamara
92e3d17dbe ofz#45525 Null-dereference
Change-Id: If55d049f12eb00ba786f12d565081404fcdf147b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131465
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-13 16:46:02 +01:00
Jean-Pierre Ledure
ae24ce8c63 ScriptForge - (UI) size and position of the active window
The UI service receives next 4 new properties:
  Height
  Width
  X
  Y

They all return a Long value representing the size or position
of the active window. The active window does not need to be a
document, it may f.i. be the Basic IDE.

Those properties are read-only.
To modify the size or the position of the window,
use the the Resize() method.

They are implemented for use from Basic and Python scripts.

Change-Id: I0021663e39612f411cefa5c7ec9ec594a4cb6f39
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131444
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2022-03-13 16:11:07 +01:00
Tomaž Vajngerl
f2d07a3b17 sc: initial code to draw sparkline into a cell
Change-Id: I82861f4210a24f57573f0ec96489e86ab168677b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131488
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-03-13 15:34:16 +01:00
Caolán McNamara
841788923c ofz#45527 detect too many points earlier
Change-Id: I7716ca8b9de9312bcaabf1d16e60dbac7ae87e52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131492
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-13 14:51:53 +01:00
Caolán McNamara
f7151c8ab4 pass reference to the target vector instead
no logic change intended here

Change-Id: I680914a6a41cceab41f68456e98de5f3b4a8a639
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131491
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-13 14:51:40 +01:00
Caolán McNamara
a1cb80dc55 Degree10 has underlying Int16 type
Change-Id: I17c10f6c3a1d342302363df50e2104d4c7c78088
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131487
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-13 14:24:41 +01:00