Commit Graph

474805 Commits

Author SHA1 Message Date
Andrea Gelmini
3bfac2a7fa Fix typo
Change-Id: I0e365196f90e0f117e80df2c194d8137252b959d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132735
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-04-08 19:05:57 +02:00
Luboš Luňák
14bfb09330 allow to override the generator/producer string in output documents
Add a (non-gui) setting GeneratorOverride that, if set, is used
for odt/docx/pdf generator string identifying the application that
has written it instead of the normal productname etc. string.

Change-Id: Ibe12a063e7e6b5a09c69cdf66cba073793650d62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132495
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-08 18:46:38 +02:00
Jan-Marek Glogowski
881cfbf775 tdf#141578 Qt handle QtFrame screen changes
LO doesn't provide any way to notify screen changes / scaling
factors of a window and in fact doesn't really handle scaling
factors in VCL. The QWidget doesn't receive a resize event,
because it's size doesn't change, just the scaling factor.
So we trigger a faked resize on QWindow::screenChanged signal.

Change-Id: I6928c4c62d1c0995c70fea0088cff17849bcd1d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132650
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2022-04-08 17:55:58 +02:00
Stephan Bergmann
126b1826c4 tdf#148423: Half a hack
"Regression" introduced with de4d296619 "Avoid
overflow in ScColumn::GetOptimalColWidth", which, for this bug document's
nWidth/nPPTX = 6004/0.0647708 = 92696.1, changed the calculation of nTwips from
the undefined-behavior 92696 % 65536 = 27161 to the clamped 65535, but which is
apparently a value large enough to cause "silent" issues (i.e., not causing
further undefined behavior) down the road, leading to a super-narrow column.

That commit already wondered whether sal_uInt16 is a useful choice here, but
lets keep that question unanswered and just clamp at half the previous value,
which happens to cause presumably more pleasing results.

Change-Id: I1df642b2b9d6818c8be0f8d8f4567a00c399c154
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132734
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-08 16:44:51 +02:00
Mike Kaganski
ad7b90fc54 Fix build
... after commit 36e0e88b28

Change-Id: I540d19f7146651035cd5fafe077c0ccdfcee11ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132733
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-04-08 16:39:19 +02:00
Caolán McNamara
3bf4925903 ofz#46162 and ofz#46287 Integer overflow
Change-Id: I58bc9aadab1765e8ce4bc8e6e631cd72b853f9b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132731
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-08 15:36:48 +02:00
Mark Hung
257bb11cbc tdf#148330 fix vertical offset for DFKai-SB (ukai.ttf).
DFKai-SB (ukai.ttf) is a built-in font under tradtional Chinese
Windows. The font is very common, especially for official documents.
It is one of the so-called tricky fonts in FreeType[1].

DFKai-SB has incorrect extent in the glyf table[2]. It results in
incorrect glyph positions in vertical writing.

FreeType recalculates the extents based on the
glyph outline, but LibreOffice uses Harfbuzz with
built-in ot font functions instead of ft (FreeType).

This patch decides if the fix is necessary by
checking the family name of the font and the y-offset
value, and recaculates the glyph offset based on glyph
height and top bearing obtained from the glyph bound rect.

[1]https://freetype.org/freetype2/docs/reference/ft2-base_interface.html#ft_face_flag_tricky
[2]https://github.com/harfbuzz/harfbuzz/issues/3521

Change-Id: If632dd38c462c229837e1efb5446e2142f8f0639
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132511
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
2022-04-08 15:25:37 +02:00
Mark Hung
2b2d1c08c9 tdf#143447 ignore IME candidate window state.
Some traditional Chinese IMEs ( Input Method Editors ) under
Windows10 send WM_IME_NOTIFY with IMN_OPENCANDIDATE but not
IMN_CLOSECANDIDATE. The behavior is different if users configure
the IME and enable "legacy" option.

That caused the cursor been hidden, misled by mbCandidateMode.

The patch ignores the candidate window mode in case the length
of the composition string is 0, assume in that case candidate
window is useless, and resets the candidate window mode when
composition ended to maintain the state as much as we can.

Change-Id: I91a1c23ee1a031313243e032653f50f39b0f2a3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132512
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
2022-04-08 15:23:54 +02:00
Xisco Fauli
ddaab61002 sw_uiwriter6: use keyevents to simulate the autocorrect
This way, the tests mimic what users do while typing

Change-Id: I04ade61ce5026f2d5de58c1d0e87c1dee1e5053b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132674
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-04-08 15:23:07 +02:00
Noel Grandin
36e0e88b28 use more subView when converting to Int32
Change-Id: I54e3ddf79ba793fd4328bf8bda7f949b65349651
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132693
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-08 13:18:41 +02:00
Miklos Vajna
cf5bbe3fce sw content controls: add ODT export
Wrap the text portions inside the content control in a
<loext:content-control> XML element. Also map the (so far) single UNO
property of it to <loext:content-control
loext:showing-place-holder="...">.

This is just initial export for inline text content controls, more
properties are to be added in follow-up commits.

Change-Id: I5d928255b925ed7e08fb635ba39f546e9a4879de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132717
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-04-08 12:51:09 +02:00
Michael Stahl
4688e74bcf configure: require GNU make 3.82
Reportedly make 3.81 already fails since commit:
b04be559dd "gbuild: implement static
partial build"

<sberg> mst___, the `/usr/bin/make --version` "GNU Make 3.81" I have on macOS does not work to build LO (Some LinkTarget.mk:913 erroneous endef error is the first I encounter)

There was an ESC decision years ago to drop support for make 3.81.

Change-Id: I2e0ebec9eeb326df8c5a4d89ce1d53da6ed332ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132716
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-04-08 12:50:54 +02:00
Stephan Bergmann
9ea17a6331 Adapt to latest VS 2022 MSM versions
...as present at least with VS 2022 17.1.3

Change-Id: I6d1cf247c8507ebab56c106aff6933ff739a4314
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132714
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-04-08 12:46:41 +02:00
Andrea Gelmini
f9a094cc0c Removed duplicated include
Change-Id: I898c24abd5366a85705b5f54258b16b22e044355
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132715
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2022-04-08 12:46:28 +02:00
Tomaž Vajngerl
34a9783813 sc: add an overlay to show sparklines in a sparkline group
This adds an overlay that shows/selects all sparklines in a
sparkline group for the cursor cell sparkline, if the cursor cell
has an associated sparkline.

Change-Id: I60a5873ebdf8606f262d217caf6011c4a003801a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132692
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-04-08 12:29:01 +02:00
László Németh
a21ef822f9 tdf#147179 sw: select tracked row change in Manage Changes
In Manage Changes dialog window, selecting items
of list of changes results selection of the associated
text changes in the main text, as a visual feedback.
From commit eebe4747d2,
text changes of deleted/inserted rows or tables are
listed under a single "tracked row" list item, as its
children. Selecting a "tracked row" list item in
Manage Changes resulted incomplete text selection in
the main text: only the first text change in the first
cell was selected instead of all associated text changes
of tracked row(s) or table.

Note: Manage Changes supports multiple selections,
i.e. it's possible to select multiple list items by
Ctrl + click, and select ranges by Shift + click.
This commit does the same with redlines of tracked
row changes.

Follow-up to commit eebe4747d2
"tdf#144270 sw: manage tracked table (row) deletion/insertion".

Change-Id: If7b12e8d3c0e437495e1fcae0e8f04e34301c516
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132685
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2022-04-08 12:00:10 +02:00
Vasily Melenchuk
844be7358f tdf#95706: RTF import: tolerant font table parsing
While font name in font table should end with semicolon
({\fonttbl{\f42 Arial;}}) it is not always true and
MS Word is tolerant to it: it still able to parse this
correctly. Seems LO also should not require strict spec
conformance.

So idea of font parsing is changed: instead of inserting
font on semicolon, it is done on next \fN or destination
end. All collected text to this moment is a font name.

Change-Id: I6b41951217442a71fd2ebbfc58a3fc79f6f913db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132686
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-04-08 11:22:54 +02:00
Noel Grandin
3a88b513fd loplugin:stringviewparam convert methods using trim
for which we add a new o3tl::trim method

Change-Id: I9d37b6264eea106aa2f3502bd24b8cccf7850938
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132658
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-08 10:26:10 +02:00
Dennis Francis
388b4fc108 lok: unit test for invalid entry save
Unit test related to the fix

lok: avoid validation-dialog yield when saving
e0175ee821eaff56c4b8e0a1b7afa1cabe0ab593

The test ensures that the document is marked unmodified after save has
been executed in the middle of entering partial data to a validation
cell.

Change-Id: Idffd6d647034e128d0d800fe8e29efc333c03db6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132655
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
2022-04-08 09:16:08 +02:00
Dennis Francis
08d3d0bcfd lok: avoid validation-dialog yield when saving
Disable error dialog box when about to save in lok mode as this
ultimately invokes SvpSalInstance::DoYield() when we want to save
immediately without committing any erroneous input in possibly a cell
with validation rules. After save is complete the user can continue
editing.

Conflicts:
	sc/source/ui/app/inputhdl.cxx

Change-Id: Iffa0766ad594db75f57158986c4e1d2646f71da4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132410
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit e0175ee821eaff56c4b8e0a1b7afa1cabe0ab593)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132654
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
2022-04-08 09:15:30 +02:00
Noel Grandin
59059d00c2 prevent using O[U]String::subView on temporaties
by making the method "const &"

Change-Id: I8b369ca1dd1f8d10832c85ccf3d890edb14e2c54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132688
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-04-08 08:43:34 +02:00
Justin Luth
e61eed2117 tdf#147861 sw ms export: DI_SUB_MASK must exclude FIXED now
This is a follow-up to
7.4 commit daef39352b008fc1f903fd8c09288ff5e772fa42

There is only one place in which DI_SUB_MASK is used,
so I'm just changing it to what it could have always been,
since it never was actually used to mask out DI_SUB_FIXED.
Otherwise, I might have made this a MASK2 or whatever.

The issue here is that AUTHOR was not being recognized
when it was paired with FIXED, so every FIXEDFLD was
ended up being considered as a date/time.

In practice, this didn't really change anything
because bWriteExpand already ignored any of
these areas of the code. It is only when I turn off
bWriteExpand as I implement fixes that I am seeing
the wrong field type being created.

And regardless, since the field is FIXED, the visible
content remains the same anyway (until someone in MS Word
refreshes the field with F9).

Both Author and date have the same field name ":Created"
so I couldn't super easily test this.

Change-Id: Icd2d0be2d3fbe24dc4763e0e25801569bcca471b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132660
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-04-08 08:14:34 +02:00
Miklos Vajna
feeed3e762 CppunitTest_sw_layoutwriter: avoid some a11y-based layout testing
The contents of SwTextFrames are currently dumped two times in the sw
xml layout dump: the first is misusing a11y's SwPortionHandler interface
for testing purposes (older approach), the second is visiting the
portions inside the text frame directly (newer approach).

The advantage of the second is that it can show information inside
multi-portions, and also extending it won't affect a11y. This commit
updates some asserts to use the second -- the first can be removed once
no asserts depend on it.

Change-Id: I5112946a964f338fc873ba13300023de9418e837
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132687
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-04-08 08:11:02 +02:00
Rizal Muttaqin
b426a8a4c6 Resolves tdf#142071 - Align Tip of The Day with real menu/options
Change-Id: I2050d0335d2d25e42b9c0164e56b0c981deee1bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132555
Tested-by: Jenkins
Reviewed-by: Rizal Muttaqin <rizmut@libreoffice.org>
2022-04-08 04:42:13 +02:00
Jim Raykowski
efe854bf9b tdf#148357 SwNavigator: recover scroll positon after content delete
Change-Id: I6c376e5190575232d2867843c1b2b0e57e620aaf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132691
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2022-04-08 00:20:18 +02:00
Caolán McNamara
39076309c6 Related: tdf#148448 add a separate WarningColor settings
instead of a hard-coded yellow. For gtk we can use the named color
"warning_color" to populate it: https://docs.gtk.org/gtk4/css-properties.html

Change-Id: I538bffdc0f6286c78a08cef649fa8a074a6510ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132684
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-07 23:59:26 +02:00
Caolán McNamara
c44a9e6efe ofz#46467 Timeout
Change-Id: Ib2a248a6f912a340d2f0b79a068b68036fa357c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132690
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-07 23:58:59 +02:00
Luboš Luňák
c5199abfc1 work around ICU performance problem in text breaking (tdf#116400)
Reported upstream at https://unicode-org.atlassian.net/browse/ICU-21946 ,
they've confirmed the problem, but so far no actual code change. So
let's push my patch for now.

Change-Id: Idd92ca66eea9b28103ad890aec66c40029ec7ebd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132676
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-04-07 23:14:53 +02:00
Caolán McNamara
26e09fb1d5 Red used instead of Green
Change-Id: I1261154fcff6f4904b4360099cbf26e33b9e7463
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132683
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-07 20:54:42 +02:00
Michael Weghorn
365bd67990 tdf#148445 sw: Make "Exchange Databases" dialog modal
This among others prevents opening the "Exchange Database"
dialog from the mail merge wizard, then closing
the mail merge wizard while the "Exchange Dialog" is
still open, resulting in a crash.

Change-Id: I86bd80d0bfa6084bf0f772bb430b2a871e9b5ef0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132678
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Michael Weghorn <m.weghorn@posteo.de>
2022-04-07 19:58:27 +02:00
Michael Weghorn
dafa352065 tdf#148445 sw: Resave exchangedatabases.ui with glade 3.38.2
... in preparation of fixing the actual issue.

Change-Id: Ia3e60984b06e4fda856889f5116b49aecbbfb960
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132677
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-04-07 19:57:21 +02:00
Miklos Vajna
97c18cf32a sw: keep URL when applying frame style on images
It seems that the intention is to reset properties which are possible to
set in a style when applying a style. For example the paragraph
alignment can be defined in a paragraph style, so reset that on style
apply.

URLs on frames can't be defined for frame styles, so it looks incorrect
to reset the URL of a frame/image on style apply, fix this.

Change-Id: Ie3a57b654cf06b9512b25d2dc103d15cd83727b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132675
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-04-07 18:26:49 +02:00
Olivier Hallot
584b700a2c Update git submodules
* Update helpcontent2 from branch 'master'
  to ad82ae5f3d9c01f46ecab00a767be9bbbac76872
  - tdf#141237 Improve text on PDF security
    
    Change-Id: I76e179b30fce9d4a9af3c1c86a2bf55e524a62fb
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/132613
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-04-07 18:01:50 +02:00
Seth Chaiklin
fa86ea147f Update git submodules
* Update helpcontent2 from branch 'master'
  to d6ba91f1d3a845fb6684b296ce23077981ef307e
  - tdf#148443  corrections to print icons and labels
    
    Basic problem was that the wrong icon was shown for Print Directly
    and wrong label was shown for the Print icon. The following changes
    correct these problems.
    
        text/shared/00/00000401.xhp
          * correction to Print icon label
    
        text/shared/02/01110000.xhp
          *refactor to <h1>
          *add correct icon table for print directly, with section label
    
        text/shared/main0201.xhp
          *change the icon embed to the newly added print directly
    
    Change-Id: I7a094f016c5e30881abee3db5d13589f1512ba36
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/132611
    Tested-by: Jenkins
    Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2022-04-07 16:51:55 +02:00
Caolán McNamara
7a89821b85 ofz#46457 don't crash with mangled INCLUDETEXT field case
Change-Id: I86621bce8587aeeeded90bc81ae9f17049c17f42
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132667
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-07 16:35:11 +02:00
Jan-Marek Glogowski
e81385277c tdf#143135 Qt break recursive IM QueryCursorRect
To reproduce the Impress crash, you need an IM, e.g. fcitx / ibus.
This is triggered by having an active input, like double-clicking
one of a presentations text fields, then leaving the window and
switching back to it.

This results in a stack exhaustion in a few seconds. The backtrace
is basically:

QWidget::setFocus
QtFrame::ToTop
sd::Window::GrabFocus
ImplHandleExtTextInputPos
QtWidget::inputMethodQuery
QInputMethod::cursorRectangle
QWidget::setFocus
QApplication::setActiveWindow
QtInstance::DoYield
main

I scratched my head over the longer backtrace for while, but there
seems to be no good way to prevent this from LO's POV. The only
alternative from the Qt VCL plugin is QtFrame::ToTop. That code
is less ugly (no mutable or cached result), but QtWidget::
inputMethodQuery is earlier in the backtrace.

Change-Id: Ief3a8e44bca295cc676e75050d52d70a1da98a88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132643
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2022-04-07 15:04:22 +02:00
Vincent Reher
5aa7b65c88 Resolve tdf#49091 "UI: Alt-Left, Alt-Right keyboard shortcuts ineffective"
Change-Id: I245943fb9185e03cf52f144d9e06ab22cda13592
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132651
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-04-07 14:57:31 +02:00
Vasily Melenchuk
965313b9ef tdf#95706: RTF import: Use fontname suffixes to detect encoding
Font names like "Arial CE", "Times New Roman Cyr" are not special
fonts. They are classical Arial, Times New Roman... And these
suffixes can be used to detect encoding used for RTF text.

Most interesting: for MS Word these suffixes have priority:
{\f34\cpg1253\fcharset161 Arial Baltic;} will have cp1257
and not cp1253.

Looks like compatibility issue came from dark ages.

Change-Id: Ife8e781d5d04c3f6a8c11fcf604357c74bf33055
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132584
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-04-07 14:29:04 +02:00
Mike Kaganski
751c6e25a3 Make "Calc:" in About dialog's Misc show "default" by default
... i.e., when neither CL, nor threaded, nor Jumbo are enabled.

Change-Id: I55d4a5e2e9b9a63c8ea2735dbd410603644d0389
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132659
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-04-07 14:14:37 +02:00
Adolfo Jayme Barrientos
244cf83b9e Update git submodules
* Update helpcontent2 from branch 'master'
  to d5de0b43d57142eca8fab90fca1ca119cffb6039
  - Remove a Germanism
    
    Change-Id: I92f009369c2081c5085e07651948c0085aecfeef
2022-04-07 12:39:25 +02:00
Andreas Heinisch
803c9a6f8d tdf#80043 - Put selected text into hyperlink item
If the user selects an entire cell by a single click, and inserts an URL
via the hyperlink dialog, the entire content of the corresponding cell
will be replaced instead of inserting a duplicate, or appending the URL.
If the cell contains more than one URL or an URL including some
additional text within the cell, the hyperlink dialog will only
preselect the text field when opening. If this is not the case, it fill the URL field as well.

Change-Id: I9a10c3f302a6cf91a4d9dfadfbe775075eb00fad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131156
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2022-04-07 11:31:28 +02:00
Miklos Vajna
07a1442b24 sw content controls: select the content on click when showing placeholder
- teach SwCursorShell::GetContentAtPos() about a new IsAttrAtPos::ContentControl

- add a new SwCursorShell::GotoFormatContentControl() to select a
  content control, and a SwWrtShell::GotoContentControl() wrapper around
  it

- combine these together in SwEditWin::MouseButtonUp()

The intention is that when you open a document and you click on a
placeholder text like "Click here to enter text", then this content is
pre-selected (so typing overwrites it), but typing real content there
disables this behavior.

Change-Id: Ia539865da7b18c41cbfb398282842bdb2e25f0bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132652
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-04-07 10:57:04 +02:00
Seth Chaiklin
9a773e8ca6 tdf#143264 improve expressions with %MOD1 -/+
also add link to relevant help page

Change-Id: I087b3fe2573665a633dc04b222bcc3950edd782a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132385
Reviewed-by: Seth Chaiklin <sdc.blanco@youmail.dk>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Seth Chaiklin <sdc.blanco@youmail.dk>
2022-04-07 10:45:02 +02:00
Michael Stahl
b11a5d3900 nss: depend on zlib
Required on WNT since 1c748fefc3, may
be needed on other platforms if using --without-system-zlib.

Change-Id: Ib8e544d81881f425d257514fc475e272ca2e53ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132648
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Tested-by: Jenkins
2022-04-07 10:38:35 +02:00
Tomaž Vajngerl
0e2fbf9057 sc: add sparklines commands to main menu
Change-Id: Ie69d78162fb0d845f8ffd181397569c3cd3276f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132593
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-04-07 10:36:22 +02:00
Tomaž Vajngerl
36ffd9022f sc: take sparklines into account with auto fill
Change-Id: I6bdb5f4291aece7ec02d8de0731b8f983b4f2bb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132592
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-04-07 10:36:08 +02:00
Tomaž Vajngerl
93d7fbf73f sc: improve keeping track of sparklines in SparklineList
Issues can happen when saving a document with sparklines where a
sparkline is deleted and then undo-ed. The reason for this is
because the SparlineList wasn't correctly updated when deleting,
copying or adding sparklines. This change adds hooks when new
sparklines are created or when sparklines are deleted to report
this into SparlineList.

SparklineList garbage-collects itself but this is not enough when
we rely that the non-deleted weak pointers to the sparkline groups
contain the correct non-deleted weak pointers to the correct
sparklines.

Change-Id: I976cbe7e6168813d3dd5089c036cc7fe4e357fb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132554
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2022-04-07 10:35:59 +02:00
Caolán McNamara
ff2f433cdf typo: out->our
Change-Id: Ibd8eedb1d4fb7f32e7bd11cd62a921e480b9acd2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132630
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-04-07 09:17:52 +02:00
Andrea Gelmini
ece3a421c2 Fix typo
Change-Id: I4252e13a679ac84f255c8f9a63d1e7aa8fa270ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132649
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-04-07 09:17:29 +02:00
Miklos Vajna
f5db3b12ae sd theme: add UI (sidebar) for shape fill color
This requires extending .uno:FillColor with a new parameter, and then
merging that parameter into the fill color item in sd/. The sidebar's
color picker already generated these parameters.

Change-Id: I83e3c4fc37b8d7bd34f0ef9c0cb96e164f7f0b99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132646
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-04-07 08:15:48 +02:00