Commit Graph

39407 Commits

Author SHA1 Message Date
Juergen Spitzmueller
1a9bdb4452 Backport setTextColor deprecation fixes 2021-03-13 12:06:23 +01:00
Juergen Spitzmueller
75095fdc6e Backport QMatrix deprecation fixes 2021-03-13 12:06:06 +01:00
Juergen Spitzmueller
f02e79e204 Backport QPixmap::find() deprecation warning fixes 2021-03-13 12:05:36 +01:00
Juergen Spitzmueller
85ece5fb3d Backport GuiFontLoader deprecation warning fixes 2021-03-13 12:04:58 +01:00
Juergen Spitzmueller
aad8804549 Backport qSort deprecation fixes 2021-03-13 11:46:49 +01:00
Juergen Spitzmueller
935e51837d Yet another deprecation fix 2021-03-13 11:46:15 +01:00
Juergen Spitzmueller
da0d01cc10 Backport deprecation fix 2021-03-13 11:29:54 +01:00
Juergen Spitzmueller
472f4f0a9d Backport QFontMetrics::width deprecation fix 2021-03-13 11:06:11 +01:00
Juergen Spitzmueller
7922b761f5 Deprecation fix backport 2021-03-13 10:48:10 +01:00
Juergen Spitzmueller
d53e74d11b Next deprecation fix backport 2021-03-13 10:47:53 +01:00
Juergen Spitzmueller
007a49a132 Backport another straightforward deprecation fix 2021-03-13 10:46:59 +01:00
Juergen Spitzmueller
67b829bf09 Backport one more deprecation fix 2021-03-13 10:16:40 +01:00
Juergen Spitzmueller
548c165ae0 Fix deprecation warning 2021-03-13 09:17:21 +01:00
Jean-Marc Lasgouttes
2089fa7fa0 Avoid pointless 'undefined flex inset' errors
When switching class, it does not make sense to flag flex insets that
are undefined if they were already undefined before.

Part of bug #12163.

(cherry picked from commit 009efa195b)
2021-03-06 19:39:29 +01:00
Juergen Spitzmueller
8c00556d57 Fix wrap-around of spellchecker (#10383) 2021-03-06 08:27:30 +01:00
Juergen Spitzmueller
74ebb1de7f Remove redundant call (amend 2b7fae04f3)
(cherry picked from commit 23fc1b270d)
2021-03-06 08:08:56 +01:00
Juergen Spitzmueller
a44d0d2652 Fix limiting of absurdly large input to thesaurus (#10528)
(cherry picked from commit 2b7fae04f3)
2021-03-06 08:03:44 +01:00
Jean-Marc Lasgouttes
8b6460e4f2 Improve HiDpi handling
Add code stolen from QBitTorrent and Qt Creator that properly enables
HighDpi handling.

The rules are:

1/ nothing needs to be done for macOS and Qt >= 6

2/ HighDpi support is set by default starting with Qt 5.6.

3/ Support for fractional scaling is added for Qt >= 5.14.

Hopefully fixes bug #12060.

(cherry picked from commit d7a4f47e7d)
(cherry picked from commit f92f2f95ff)
2021-03-04 10:21:17 +01:00
jpc
5adb555006 Update Additional.lyx 2021-03-02 18:54:40 +01:00
Kornel Benko
d8cceefbf2 Update sk.po 2021-03-02 09:47:07 +01:00
Jean-Marc Lasgouttes
007a192fae Add Qt platform name in About dialog
(cherry picked from commit 234886f6eb)
2021-03-02 08:30:45 +01:00
jpc
9a74a51791 Update French Additional manual 2021-03-01 18:50:59 +01:00
jpc
1a57168228 Last French UserGuide and fr.po updates 2021-03-01 18:04:52 +01:00
Jean-Marc Lasgouttes
cebdac4a6f Remove assertion that is not necessary.
It may happen that there are errors when doing undo, crashing does not
help in this case.

Fixes bug #12163.

(cherry picked from commit 3e3ad2937c)
2021-03-01 12:01:15 +01:00
Enrico Forestieri
9a831200a4 Fix bug #11007
The math color inset inherits the mode of the containing inset.
This mode is inferred by the kind of font in effect. Setting the
right mode allows to insert spaces where these should be allowed.
Another small glitch was that the selection was always parsed in
math mode, so that any space was swallowed, even if the inset would
allow them.
2021-03-01 10:38:02 +01:00
Enrico Forestieri
51ec16b6c7 Fix bug #3751
We lack the necessary font (cmb10) for drawing bold uppercase greek
letters. It would be overkill adding it for this sole purpose, so
adopt the same poor man's bold strategy used with \boldsymbol.
2021-02-28 00:33:43 +01:00
Enrico Forestieri
999831043e Fix bug #3294 2021-02-27 23:31:25 +01:00
jpc
95aef13dc6 Update status 2021-02-26 11:50:31 +01:00
jpc
ac47ee306c Update fr.po
Change translations of pagebreak and linebreak
2021-02-26 11:46:46 +01:00
Pavel Sanda
dd214d3acc By report autoconf 2.71 works, 2.70 is known to have compatibility issues. 2021-02-22 20:44:08 +01:00
Enrico Forestieri
c1ef23e54e Fix bug #12148
(cherry picked from commit 7114de5175)
2021-02-19 22:41:18 +01:00
Jean-Marc Lasgouttes
2079dc1b16 DEPM: do not fix cursor pit if it was in a different cell
This bug has been here forever.

Fixes bug #12117.

(cherry-picked from 939d25561d)
2021-02-11 17:01:09 +01:00
Enrico Forestieri
7dc7315e5f Disable direct insertion of multiple spaces in mathed text
Fixes #1311

(cherry picked from commit 8202e4e571)
2021-02-05 22:14:12 +01:00
Enrico Forestieri
12f67ef154 Allow pasting references to mathed
A reference can be directly inserted into mathed but cannot be pasted
because the pasted material is returned in plain text format. This patch
allows getting a string from the cut stack in a suitable format allowing
the math parser to actually create an InsetRef.

Fixes #11539

(cherry picked from commit 22ee249c3e)
2021-02-01 16:49:21 +01:00
Enrico Forestieri
706db1ff2e Change backspace behavior in align type equations
When hitting backspace in the first position of a cell in mathed,
if the cell is part of an array, the whole array is dissolved
and the sole cell content pasted in the containing environment.

But if the cell is part of an eqnarray or align math hull type, the
cursor is simply (and unexpectedly) taken out of the whole equation,
which is left unchanged.

This patch makes backspace equivalent to the cursor left key in those
cases, while leaving the behavior unchanged in all other ones.

Fixes #11678

(cherry picked from commit c79ec4114e)
2021-02-01 16:35:52 +01:00
Juergen Spitzmueller
f05f70f05b Do not output \maketitle in table cells if the table is in the title
(cherry picked from commit 6d05e78168)
2021-01-30 09:27:30 +01:00
Jean-Marc Lasgouttes
25b4920fef Fixup 20e1fe46: fix the StartupWMClass in desktop file
(cherry picked from commit 20e1fe4674)
2021-01-11 18:38:40 +01:00
Jean-Marc Lasgouttes
9886bf96c1 Move handling of LFUN_COPY to BufferView
It turns out that the code is the same in texted ans mathed and that
whatever is done in InsetTabular is not useful.

This means that we do not need to deal Text::dispatch idiosyncrasies
(in particular forcing the cursor to be visible).

Fix bug #11225.

(cherry picked from commit 9e1db65932)
2021-01-11 16:31:05 +01:00
Pavel Sanda
1c4bc08be7 * cs.po 2021-01-06 16:22:48 +01:00
Eugene Chornyi
daa32db3bc Fix bug 9961
remove the error message for not finding a pdf viewer (apparently empty string is returned by FindExecutable if the executable is a Windows Store app). If there is really no pdf viewer, let the Windows itself decide what to do (produce error or not and which one).
2021-01-04 10:29:44 +01:00
Juergen Spitzmueller
17e4f325f3 Re-enable input of non-LyX files (e.g., tex, pgf) (#12056)
This amends [a385b7dc2b58/lyxgit]

(cherry picked from commit 2af8e661a3)
2020-12-28 18:52:37 +01:00
Jean-Marc Lasgouttes
8e53243514 Do nothing if hunspell support is disabled
(cherry picked from commit 031720b66a)
2020-12-19 20:58:42 +01:00
Kornel Benko
3e238b6c99 Amend c3484fa6, adapt cmake-build to new hunspell-version
(cherry picked from commit cf980435b1)
2020-12-19 20:48:26 +01:00
Jean-Marc Lasgouttes
02e81304d7 Re-add win_api/config.h and somewhat update CMakeLists.txt
(cherry picked from commit 91c58d9a68)
2020-12-19 20:48:26 +01:00
Jean-Marc Lasgouttes
f5ae00132a Update the in-source hunspell to version 1.7.0
(cherry picked from commit c3484fa6c8)
2020-12-19 20:48:26 +01:00
Jean-Marc Lasgouttes
f4314b6461 Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11
The method horizontalAdvance() replaces width() starting with Qt 5.11.
To handle this, all direct calls to QFontMetrics::width() are replaced
by calls to GuiFontMetrics::width(), and the code for
GuiFontMetrics::width(QChar) uses horizontalAdvance on newer Qt
versions.

(cherry picked from commit 21422dd652)
2020-12-17 11:32:44 +01:00
Jean-Marc Lasgouttes
20c8959790 Take right margin into account for text inset width
This is particularly important for contents in RtL languages, where
the right margin may contain the paragraph indentation, or
itemize/enumeration symbols.

Fixes bug #12030.

(cherry picked from commit 875b1def4f)
2020-12-17 11:23:27 +01:00
Jean-Marc Lasgouttes
326eab3408 Take label width into account for SubLabel insets
The drawing of the label should not go further than inset width.

Fixes bug #12046.

(cherry picked from commit 3950f05497)
2020-12-17 10:29:52 +01:00
Juergen Spitzmueller
43bc156a0b Do not close spellchecker after "Replace All" (#11310)
Wrong use of wrapAround here
2020-12-15 15:55:22 +01:00
Enrico Forestieri
96a93134b3 Typo 2020-12-07 22:48:27 +01:00