Thibaut Cuvelier
0c2f3dedd6
DocBook: add support for InsetInfo.
...
A similar patch would be required for LyXHTML, but it will come later. The main impact is that some text isn't output in XHTML (like DocBook before this patch).
The code isn't as clean as it could be. I avoided touching anything not related to DocBook, as the release of 2.4 is nearing, while leaving comments for parts to improve for the next release cycle. Given that the code compiles, there are no risks for TeX or XHTML outputs; for DocBook, less content is skipped, which is a net improvement for users.
2023-10-10 09:57:17 -04:00
Pavel Sanda
cc257b4927
Few string fixes from Dan.
2023-10-09 20:41:57 +02:00
Juergen Spitzmueller
90307cf212
Amend 3f0bb8aa43af
...
Account for the paragraph marker
2023-10-04 13:49:34 +02:00
Juergen Spitzmueller
3f0bb8aa43
Fix assertion on paste with empty pars
2023-10-04 13:40:38 +02:00
Juergen Spitzmueller
5cb53606b6
Introduce color_selectionmath
...
To have a distinctive color for selected math which works in both modes
Also, link color_selectionmath with QPalette::HighlightedText, so we
won't need to special-case on lyxrc.use_system_colors any longer
2023-10-04 13:10:07 +02:00
Jean-Marc Lasgouttes
65cb9fa4df
Use Color_selectiontext as needed for partial selection in math
...
Currently, selected math hull insets use Color_selectiontext when
system colors are in use. This commit implements the same behavior
for partial selection.
This is done by introducing two element types (BEGIN_SEL and END_SEL)
to MathRow.
2023-10-03 12:51:11 +02:00
Juergen Spitzmueller
2b69dc54da
Revert the logic of 343a9749abe4f3
...
It might be better to be explicit also with black, after all.
2023-10-01 12:20:40 +02:00
Juergen Spitzmueller
242381464b
Simplify
2023-10-01 11:38:10 +02:00
Juergen Spitzmueller
6df25c3585
When box background is "none", frame color != black and page color has been set
...
then use the page color as box background, not white
2023-10-01 11:08:11 +02:00
Juergen Spitzmueller
343a9749ab
No need to use \fcolorbox with explicit black frame and no background
...
White background, however, is always treated explicit (think non-white
page background)
2023-10-01 10:12:52 +02:00
Juergen Spitzmueller
2854355fe3
Require xcolor whenever we use an \fcolorbox
2023-10-01 09:35:53 +02:00
Juergen Spitzmueller
3e063daeab
Revert "Amend 087f6bce"
...
This reverts commit a6882a1db0152af270bcba08215424793946d99a.
2023-10-01 09:26:26 +02:00
Scott Kostyshak
a6882a1db0
Amend 087f6bce
...
Explanation from Udi:
There is a missing validation for the requirement of xcolor in
InsetBox::validate, the case we use Boxed with non-default color.
Patch from Udi.
2023-09-30 20:22:59 -04:00
Scott Kostyshak
10403b7959
Amend 04bfbc0f
...
Patch from Udi.
2023-09-30 20:20:03 -04:00
Udi-Fogiel
48eda746da
proper unicode support for hebrew in 8bit engines
2023-09-30 17:09:41 +02:00
Juergen Spitzmueller
04bfbc0f7a
Limit RTL hack to classic engines ( #12919 )
...
It breaks with LuaTeX, is definitely not needed with XeTeX, and it is
doubted whether it is needed at all (but this needs further testing).
2023-09-30 17:00:51 +02:00
Juergen Spitzmueller
8b1f1c29ff
Style
2023-09-30 13:58:57 +02:00
Udi Fogiel
7ccdc6edf5
fix nested uwave
2023-09-30 13:44:03 +02:00
Juergen Spitzmueller
fc9684a130
Prevent access to null local_font
2023-09-30 13:01:20 +02:00
Juergen Spitzmueller
1d00389bf8
Update tex2lyx tests after recent format change
2023-09-30 09:59:36 +02:00
Juergen Spitzmueller
087f6bce71
Introduce default box frame color ( #12921 )
...
This better aligns with dark mode
2023-09-30 09:56:27 +02:00
Juergen Spitzmueller
7aa00f0b92
Fix quote menu item, from Dan
...
Current language is relevant here, not main language
2023-09-29 13:09:20 +02:00
Pavel Sanda
6141b437b1
pdfcolmk is an empty stub for many years now (bug #12920 ).
...
Patch from Udi.
2023-09-28 00:36:35 +02:00
Scott Kostyshak
ff9dfa96f2
DocBook: fix case with emphasis at end of footnote
...
For ML discussion, see here:
https://www.mail-archive.com/search?l=mid&q=CAK0LPyiusCMu-X7KpgO0d1-rh4e3%3DRwR5ooXE_fdb7UVuB0VUA%40mail.gmail.com
Patch from Thibaut Cuvelier.
2023-09-25 10:41:21 -04:00
Jean-Marc Lasgouttes
549969a563
Improve comments
2023-09-25 12:51:33 +02:00
Jean-Marc Lasgouttes
71d9f6e90d
Avoid row breaking at inconvenient places.
...
When it turns out that breaking a STRING row element was not
sufficient in Row::shortenIfNeeded, we still remember the shortest
width that one can obtain. Later, when we try to split a previous
element of the row, we have a better idea of how much of the row
remains after it.
To this end, change the signature of Element::splitAt to use an enum:
FIT (was: force=false), FORCE (was: force= true) and BEST_EFFORT
(split at max_width, but do not return an error if the string is too
large).
Fixes bug #12660 .
2023-09-25 12:46:54 +02:00
Jean-Marc Lasgouttes
1ca43e1938
Revert "Avoid row breaking at inconvenient places."
...
The solution did create new issues.
Fixes bug #12899 .
Unfixes bug #12660 .
This reverts commit f7de345f85b4a34346fc52b60a9e754b466d24f0.
2023-09-25 12:28:51 +02:00
Jean-Marc Lasgouttes
9156712895
Make sure that caret width is not null in mathed
...
The same test exists in texted.
Fixes bug #12904 .
2023-09-24 13:07:55 +02:00
Enrico Forestieri
ddf81b4e19
Amend 12e3d46b
...
Also account for alerts regarding documents that are explicitly
allowed to execute external commands through the settings.
2023-09-23 16:18:28 +02:00
Enrico Forestieri
12e3d46b5b
Do not change font in html text without gui
...
As reported here:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg220399.html
if an alert is displayed when the gui is not available Qt6 crashes
when the text contains html directives and the font is changed.
2023-09-23 13:48:01 +02:00
Jean-Marc Lasgouttes
94c6d45b74
When drawing macro names, enforce LtR direction
...
Add a Direction parameter to the Painter::text methods that take a
FontInfo parameter.
In drawStrRed and drawStrBlack, force the direction to LtR.
Fixes bug #12905 .
2023-09-22 12:41:44 +02:00
Juergen Spitzmueller
cd5a88029c
Remove unneeded method
...
which is also not available in Qt < 5.13, as it turns out.
2023-09-18 11:36:16 +02:00
Juergen Spitzmueller
b13685d9bb
Prefer following, not previous, item in selection manager after deletion ( #12871 )
2023-09-18 10:02:34 +02:00
Juergen Spitzmueller
d3102380bc
Amend ac275a66b5
...
Set depth correctly in the active branch
2023-09-18 09:27:38 +02:00
Juergen Spitzmueller
63b99beedd
Bit refactoring
2023-09-18 08:13:23 +02:00
Juergen Spitzmueller
ac275a66b5
Get rid of unnecessary flickering when clicking in outliner
...
No need to collapse and re-expand the node where the currently selected
item is in.
2023-09-17 19:17:12 +02:00
Juergen Spitzmueller
610e2f501b
Fix double-click expansion of outliner
2023-09-17 16:45:19 +02:00
Juergen Spitzmueller
013d52ed2b
Fix readability
...
here, "custom" was exactly the opposite (non-custom, i.e., default
margins)
2023-09-17 14:31:36 +02:00
Juergen Spitzmueller
d99a13da18
Amend c8d4b99559ce8
2023-09-17 14:17:05 +02:00
Juergen Spitzmueller
d9af7a0fff
Fix change tracking glitch ( #12912 )
2023-09-16 13:31:00 +02:00
Juergen Spitzmueller
c8d4b99559
Fix display of disabled page margins ( #12887 )
...
while preserving input values on geometry toggle
2023-09-16 11:00:10 +02:00
Juergen Spitzmueller
e08bbc89bc
Fix brokenBiblio() and fixBiblio() with change tracking ( #12909 )
2023-09-16 08:34:43 +02:00
Juergen Spitzmueller
1812c946fc
Fix nomencl launching
...
The problem here was that we checked depfile changes too late.
After all these subsequent LaTeX runs, the files's checksums
did not change any longer.
2023-09-15 18:08:10 +02:00
Daniel Ramoeller
ceb1a4c393
Only split view rather than split and move
...
Fix for #12893
2023-09-15 14:05:33 +02:00
Jean-Marc Lasgouttes
68ba1b57b4
Rename shortenIfNeeded first parameter to `max_width'
...
The short name `w' was not meaningful.
2023-09-15 14:05:33 +02:00
Juergen Spitzmueller
ed9e7d41f5
Do not paste deleted text with CT on ( #12900 )
2023-09-14 19:26:20 +02:00
Juergen Spitzmueller
91186013ba
Fix result of deleteSpaces()
...
With change tracking on, spaces that are marked as ADDED are really
removed (and not marked deleted) if the changeAuthor is the current
author; see Paragraph::eraseChar().
The function tried to account for that but had the logic upside down.
Consequently actually deleted spaces haven't been counted and the
result was off.
This fixes an assertion when pasting in CT parts with deleted stuff
(#12901 )
2023-09-13 13:50:40 +02:00
Juergen Spitzmueller
81dc79e6d6
whitespace
2023-09-13 13:21:37 +02:00
Juergen Spitzmueller
43ddd3b037
Fix indentation
2023-09-12 16:39:23 +02:00
Juergen Spitzmueller
be1bf5c05c
Fix nullpointer ( #12898 )
...
Also, quit method early if file does not exist
2023-09-10 14:47:59 +02:00