Stephan Witt
3af8ff39fc
Force a uniform style for group boxes, on Mac non-flat works better, on Linux flat is standard
2020-08-07 10:54:12 +02:00
Stephan Witt
0fa4b7e736
#9376 prepare use of Length in lyxrc - move the class Length to support
2020-08-07 09:24:31 +02:00
Enrico Forestieri
582296d79a
Correctly compute metrics for single-char non-math fonts
...
As evidenced by the comment, this corrects a thinko.
2020-08-06 15:34:54 +02:00
Juergen Spitzmueller
7250aad280
Revert [9370135c3e/lyxgit] and fix #8499 properly
...
Fixes #11920
2020-08-04 16:52:58 +02:00
Stephan Witt
6dcd4ca4f1
#10571 improved handling of WM's signal when switching from or to full-screen window
2020-08-04 15:24:09 +02:00
Pavel Sanda
bd5f6097fc
Does not compile on older gcc.
2020-08-04 14:55:22 +02:00
Thibaut Cuvelier
348297520f
Revert "DocBook: allow empty paragraphs before the <info> section."
...
This reverts commit c6937cece9
.
2020-08-03 22:58:15 +02:00
Thibaut Cuvelier
fa38ae3fc0
Revert "DocBook: add new layout parameter DocBookWrapperMergeWithPrevious."
...
This reverts commit 59b0f88d2b
.
2020-08-03 22:57:49 +02:00
Thibaut Cuvelier
ab4f22beb9
Revert "Slight code-consistency improvements."
...
This reverts commit 6bcc0155b6
.
2020-08-03 22:57:41 +02:00
Thibaut Cuvelier
dedeb885f8
Revert "Merge findLastParagraph and findLastBibliographyParagraph to lower code duplication."
...
This reverts commit 20d65b9d97
.
2020-08-03 22:57:22 +02:00
Thibaut Cuvelier
fe8aff31fd
Revert "DocBook: use DocBookItemTag within paragraphs."
...
This reverts commit 49b998f99b
.
2020-08-03 22:57:11 +02:00
Thibaut Cuvelier
21c92c8a12
Revert "DocBook: make openParTag/closeTag use paragraphs instead of layouts."
...
This reverts commit 3d7c802c22
.
2020-08-03 22:56:55 +02:00
Thibaut Cuvelier
347d3557b2
Revert "DocBook: fix for ordering."
...
This reverts commit 7852582d9c
.
2020-08-03 22:56:44 +02:00
Thibaut Cuvelier
4c01ab9ecf
Revert "DocBook: use DocBookWrapperMergeWithPrevious in the code."
...
This reverts commit 62c9f4332d
.
2020-08-03 22:56:25 +02:00
Thibaut Cuvelier
c2be69187c
Revert "DocBook: eat a bit of that spaghetti code."
...
This reverts commit 25bcbe7666
.
2020-08-03 22:56:16 +02:00
Thibaut Cuvelier
42eca3d8d6
Revert "DocBook: simplify code to handle abstracts."
...
This reverts commit 0199e048ff
.
2020-08-03 22:56:06 +02:00
Thibaut Cuvelier
f025538c95
Revert "DocBook: add a layout tag to tell whether an item is the abstract or not."
...
This reverts commit 5ccd63eff6
.
2020-08-03 22:55:52 +02:00
Thibaut Cuvelier
5ccd63eff6
DocBook: add a layout tag to tell whether an item is the abstract or not.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
0199e048ff
DocBook: simplify code to handle abstracts.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
25bcbe7666
DocBook: eat a bit of that spaghetti code.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
62c9f4332d
DocBook: use DocBookWrapperMergeWithPrevious in the code.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
7852582d9c
DocBook: fix for ordering.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
3d7c802c22
DocBook: make openParTag/closeTag use paragraphs instead of layouts.
...
Not useful per se, but will be next with checking whether the wrapper tags should be opened/closed.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
49b998f99b
DocBook: use DocBookItemTag within paragraphs.
...
This is at least helpful for AAS, even though it slightly resembles a repurposition of that parameter.
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
20d65b9d97
Merge findLastParagraph and findLastBibliographyParagraph to lower code duplication.
...
Maybe these functions should move to ParagraphList.h/cpp?
2020-08-03 16:04:58 +02:00
Thibaut Cuvelier
6bcc0155b6
Slight code-consistency improvements.
2020-08-03 16:04:57 +02:00
Thibaut Cuvelier
59b0f88d2b
DocBook: add new layout parameter DocBookWrapperMergeWithPrevious.
2020-08-03 16:04:57 +02:00
Thibaut Cuvelier
c6937cece9
DocBook: allow empty paragraphs before the <info> section.
2020-08-03 16:04:57 +02:00
Juergen Spitzmueller
8415041b1f
Use hexnames only for x11 colors
...
This prevents wrong color allocation with ambiguous names.
Fixes #11828
Patch by D. Ramöller with extensions by me.
2020-08-03 14:10:46 +02:00
Richard Kimberly Heck
6834321a50
Allow backspace, etc, to merge paragraphs even if they have different styles.
...
Patch from Daniel.
This is bug #11917 . Master only.
2020-08-02 23:24:22 -04:00
Enrico Forestieri
7441172d4d
Assure correct spacing of colored items in mathed
...
When coloring a non-ordinary math atom, explicitly apply its
math class, so that to leave unchanged the spacing around it.
Fixes #11827 .
2020-08-02 18:58:40 +02:00
Juergen Spitzmueller
aba8c81290
Next attempt at correctly setting fonts in insets depending on inheritFont()
2020-08-02 10:12:19 +02:00
Thibaut Cuvelier
875f7d42e2
DocBook: avoid generating empty paragraphs instead of new pages.
...
As this required to first generate the paragraph before outputting it if necessary, tests like XMLStream::isTagOpen no more worked properly. This also refactors table handling to get rid of that case (and make code easier to read).
2020-08-02 04:03:39 +02:00
Thibaut Cuvelier
8d115413c1
DocBook: fix delimitation of bibliographies.
2020-08-02 04:03:39 +02:00
Pavel Sanda
801d7dc9f4
typo
2020-08-01 22:54:01 +02:00
Thibaut Cuvelier
c1ec3394c6
DocBook: improve new lines around maths.
2020-08-01 22:45:56 +02:00
Thibaut Cuvelier
d3e1f2a6d4
DocBook: fix bug about fonts (tag not closed at the right place).
...
Yes, this was just a reference issue! Also includes support for XOUT text, and some styling consistency.
2020-08-01 22:45:56 +02:00
Pavel Sanda
eef0c8e8ed
xHTML export: change filenames of exported images.
...
This patch aims at:
1. replacing absolute paths by their hashes (do not leak directory structures)
2. not using counters anymore so that changing figures order in the document
does not lead to large number of obsolete images in export directory.
Other changes than in xHTML export of images are unintended.
2020-08-01 22:16:04 +02:00
Richard Kimberly Heck
4ce9e784b4
Fix warnings
2020-08-01 02:01:01 -04:00
Richard Kimberly Heck
219773dd55
Move META_INSET declaration to header file
2020-08-01 01:53:36 -04:00
Thibaut Cuvelier
fed71fa8c2
DocBook: bug fixing with several bibliographic references at once.
2020-08-01 03:51:14 +02:00
Thibaut Cuvelier
5324566013
DocBook: use the right key when generating bibiomixed.
2020-08-01 03:39:53 +02:00
Thibaut Cuvelier
0c0613327c
Get rid of xmlize, bringing no advantage over escapeString.
2020-08-01 03:20:28 +02:00
Thibaut Cuvelier
0be32e3b98
Amend 85946aae
: should compile also with g++.
2020-08-01 00:41:58 +02:00
Thibaut Cuvelier
85946aae2b
DocBook: fix XML in comments (-- forbidden for some historical reason).
2020-08-01 00:02:36 +02:00
Thibaut Cuvelier
f2e69c165e
More consistent style.
2020-07-31 23:35:08 +02:00
Thibaut Cuvelier
ad08373ae2
DocBook: actually include files that are not properly understood (with automatic escaping), in comments.
2020-07-31 20:17:38 +02:00
Thibaut Cuvelier
44ef3fadee
DocBook: fix encoding issues with complex ERT.
2020-07-31 20:17:38 +02:00
Juergen Spitzmueller
53e872455a
Revert "Fix #11827 "
...
This reverts commit b521d36bfb
.
Not ready yet
2020-07-31 09:18:37 +02:00
Thibaut Cuvelier
06675b853b
Fix CI…
2020-07-31 02:23:22 +02:00
Thibaut Cuvelier
acdead0487
DocBook: better condition for abstracts.
2020-07-31 01:20:08 +02:00
Thibaut Cuvelier
6434b666bf
DocBook: don't output abstract if it would have no content.
...
Restore a change from e709a662
(reverted by d75ff993
) that was mixed into another commit.
Also, add a TODO for InsetIndex.
2020-07-31 00:55:00 +02:00
Thibaut Cuvelier
e153477bca
DocBook: Kornel's patch to get rid of many assertions
2020-07-30 23:22:41 +02:00
Thibaut Cuvelier
37b2115d2e
DocBook: refactor font handling.
...
This only hides a lot of complexity behind a function. It is a good candidate for future refactoring (code highly similar to the XHTML code path).
2020-07-30 23:18:31 +02:00
Daniel Ramoeller
b521d36bfb
Fix #11827
...
Keep spacing of math intact.
2020-07-30 16:24:17 +02:00
Juergen Spitzmueller
50b2120438
Use switches where possible around non-inheriting insets
...
Fixes rest of #8384
2020-07-29 16:25:19 +02:00
Juergen Spitzmueller
065c09537b
Amend 261625f412
2020-07-29 12:23:10 +02:00
Juergen Spitzmueller
d2a162ce3d
Instatiate right font
2020-07-29 11:44:33 +02:00
Thibaut Cuvelier
d75ff9931d
Revert "Support the mathbbm font."
...
This reverts commit e709a6626e
.
2020-07-28 18:01:38 +02:00
Thibaut Cuvelier
e709a6626e
Support the mathbbm font.
...
Should just be able to read formulae, not add it from the GUI, as it's mostly redundant with mathds and mathbb.
2020-07-27 03:15:00 +02:00
Thibaut Cuvelier
8dd2e7e681
DocBook: solve issue with formulae within font tags.
...
This is not valid DocBook either!
2020-07-26 23:23:02 +02:00
Thibaut Cuvelier
a874173660
DocBook: can finally generate "Developing LyX" without validation errors.
...
This also removes many warnings when generating this document.
2020-07-26 04:59:30 +02:00
Thibaut Cuvelier
e0b8bac36e
DocBook: fix issues with nested labeling lists.
2020-07-26 04:44:04 +02:00
Thibaut Cuvelier
88e00a0b7b
DocBook: fix issues with nested description lists.
2020-07-25 23:51:32 +02:00
Pavel Sanda
618f3a0359
Kill warning about unused parameter.
2020-07-25 22:29:07 +02:00
Thibaut Cuvelier
459c17fb14
DocBook: use xml:id instead of just id.
...
Amend 62af830f
.
2020-07-25 19:00:56 +02:00
Thibaut Cuvelier
5de60e3c77
DocBook: implementation of LATEX_BIB_ENVIRONMENT.
...
Fixes endless loops when such environments were used.
Add Kornel's test case that triggers an infinite loop when generating as DocBook 5
2020-07-25 17:37:13 +02:00
Enrico Forestieri
0b3e69167c
Fix placement of limits with integral signs
...
Since be836909c5
the positioning of super- and subscripts
for symbol fonts has been broken because the metrics of the
font of the environment (rather than those of the symbol itself)
were used.
2020-07-24 12:32:24 +02:00
Kornel Benko
9e977932c5
Enable display of docbook5 output in the Code Preview Plane
2020-07-23 14:11:13 +02:00
Thibaut Cuvelier
ca01edf59f
DocBook: escape IDs for InsetRef.
2020-07-21 02:45:04 +02:00
Jean-Marc Lasgouttes
f96b99dcb3
Implement properly \limits and \nolimits
...
These are now properties of insets that can be operators :
InsetMathSymbols, InsetMathDecoration (for over/underbrace) and
InsetMathMacro (for its contents).
Each of these has a limit_ member that allows to remember a limit
forcing and a member defaultLimits() that indicates what to do in the
absence of such forcing. Moreover the write() method calls
writeLimits().
This allows to simplify the definitions of integrals in lib/symbols by
defining the integrals as macros of their "op" version, as it is done in
the style files.
Also, many hardcoded assumptions can now be removed.
The handling of LFUN_MATH_LIMITS is now done in InsetNest, which tries
successively to apply the limit change to (1) the character after
cursor, (2) the character before cursor and (3) the character at the
end of the inset (useful for script insets?)
The new code allows to define
\newcommand\int{\intop\limits}
but not
\newcommand\makelimits#1{#1\limits}
It is also possible to type explicitly \limits or \nolimits to modify
a symbol.
2020-07-20 23:20:26 +02:00
Thibaut Cuvelier
e0a4dfa7d3
DocBook: avoid skipping paragraphs in <info>.
2020-07-20 03:41:44 +02:00
Richard Kimberly Heck
e09445b3cf
Style
2020-07-19 21:21:01 -04:00
Thibaut Cuvelier
6aaf118bc7
Stop adding points at the end of xml:id without reason
2020-07-20 03:04:02 +02:00
Thibaut Cuvelier
d0748cd69c
DocBook: properly escape PI in InsetMarginal.
2020-07-20 03:01:41 +02:00
Thibaut Cuvelier
fb45f7b8c9
DocBook: don't update counters when generating, as they are not used in DocBook.
...
This also removes a warning in the console in some cases where counters are updated when they don't exist...
2020-07-20 03:01:41 +02:00
Thibaut Cuvelier
51939801f5
DocBook: better handling of paragraphs containing notes in the abstract.
2020-07-20 03:01:41 +02:00
Thibaut Cuvelier
be3e79c2a0
DocBook: clean citation keys everywhere in the same way.
2020-07-20 02:29:40 +02:00
Thibaut Cuvelier
d6ec3d686b
amend 467d57bc
: typo
2020-07-19 21:36:34 +02:00
Thibaut Cuvelier
6b701f945e
DocBook fonts: fix issue 1732
2020-07-19 21:00:25 +02:00
Thibaut Cuvelier
467d57bca1
Fix use of std::regex_match
2020-07-19 19:34:02 +02:00
Jean-Marc Lasgouttes
e8ee0100fc
Implement variable size bigops
...
The goal is to reproduce the change of size of operators like \sum wen they
are in display style.
The syntax of the symbols file has been extended to allow for two code
points (like 80|88 for \sum). In this case, the second one will be
used in display style.
Update the symbols file to handle all bigops from cmex, esint, wasy and
stmaryrd.
Let the code for math symbol inset handle symbols which can change size,
using the information from the symbols file.
2020-07-17 22:25:18 +02:00
Jean-Marc Lasgouttes
8d54457dbf
Improve metrics for \limits in display mode
2020-07-17 22:18:43 +02:00
Thibaut Cuvelier
e302757476
Add support for CALS tables in DocBook.
2020-07-16 00:40:16 +02:00
Thibaut Cuvelier
3b740d0c8f
DocBook: add support for LYX_ALIGN_BLOCK and LYX_ALIGN_DECIMAL in tables
2020-07-15 16:17:16 +02:00
Juergen Spitzmueller
3b6fec3835
Do not terminate size switches in front of insets with InheritFont() false
...
and inherit the size.
This reduces formatting clutter (#8384 ) in table and fixes some wrongly
set sizes (#9923 , #9285 ) in tables.
2020-07-15 09:11:05 +02:00
Jean-Marc Lasgouttes
bce21e8975
Take the height of label into account when painting rows
...
Handle the case where, in beamer's Frame, for example, where the label
string uses a taller font then the paragraph itself.
Fixes bug #11890 .
2020-07-14 20:53:32 +02:00
Juergen Spitzmueller
097383f657
Fix comment
2020-07-14 15:52:20 +02:00
Juergen Spitzmueller
b8969d2e9c
Reset CategorizedCombo filter when switching between non-TeX and TeX fonts
2020-07-14 15:49:15 +02:00
Juergen Spitzmueller
61cf165521
Consider single-cell insets when pasting multiple cells ( #11906 )
2020-07-14 10:39:49 +02:00
Jean-Marc Lasgouttes
501f4e848f
Cleanup: BufferView should not need to be friend of TextMetrics
...
It did access par_metrics_[] directly because there was no non-const
parMetrics().
This patch adds one and unfriends BufferView. The code is equivalent
since in all these cases, the metrics have just been computed with
redoParagraph().
2020-07-14 00:08:07 +02:00
Jean-Marc Lasgouttes
2e8c9cfc83
Fix paragraph position in TextMetrics::singleParUpdate()
...
When running redoParagraph, it may happen that the ascent of the first
row changes. Since the ParagraphMetrics position is actually the
baseline of its first row, it may be necessary to update it.
Fixes bug #11601 .
2020-07-13 23:43:09 +02:00
Juergen Spitzmueller
4884476eb6
Do not blindly disable inset-modify in MathNest
...
Fixes #11784
2020-07-13 16:50:11 +02:00
Juergen Spitzmueller
60741c3d49
InsetFloat: pass back inset-modify that is addressed to other inset
...
Fixes #9994
2020-07-13 16:46:43 +02:00
Juergen Spitzmueller
f6d9e4170d
InsetInfo: Pass back inset-modify that do not target this inset
...
Fixes #9214 .
2020-07-13 16:15:42 +02:00
Jean-Marc Lasgouttes
907f020724
Improve handling of top and bottom margin
...
The 20px space on top and bottom of document have traditionally been
obtained by adding them to the ascent/descent of the first/last row.
This leads to annoyances like selections that are drawn in these
margins and issues with the nesting marker.
The change is to add the value to the ParagraphMetrics ascent/descent
only and to correct one place where the ascent of the first row may be
different from the ascent of the ParagraphMetrcs object. There may be
other places where this should be done.
Fixes bug #9545 .
2020-07-13 02:42:39 +02:00
Jean-Marc Lasgouttes
32f06d01ec
Revert "Improve handling of top and bottom margin"
...
It turns out this is not ready at all.
This reverts commit ff7cdf1b74
.
2020-07-13 00:00:36 +02:00
Jean-Marc Lasgouttes
ff7cdf1b74
Improve handling of top and bottom margin
...
The 20px space on top and bottom of document have traditionally been
obtained by adding the to the ascent/descent of the first/last row.
This reads to annoyances like selections that are drawn in these
margins and issues with the nesting marker.
The change is to add the values to a separate member of the Row
object, and to add new Row::total(Ascent|Descent) methods that add the
effect of this padding.
Moreover, some methods are added to TextMetrics to simplify the
BufferView code.
Fixes bug #9545 .
2020-07-12 20:32:04 +02:00
Thibaut Cuvelier
b7c73f387a
Add sections to HTML output.
2020-07-12 18:01:33 +02:00
Jean-Marc Lasgouttes
1c956cdc16
Improve drawing of macro template frame
...
Use Inset::xxxOffset as offsets and draw the frame in the middle of
the empty space.
Fixes bug #9657 .
2020-07-12 15:39:37 +02:00
Jean-Marc Lasgouttes
77036f5434
Fix and simplify computation of painter monochrome mode
...
The old code in GuiPainter::filterColor did not work. Tricks with
colors should take place in HSV space, not RGB IMO.
Replace the code with a simpler one which maps the grayscale value
of the original color on the blend color. It works nin the case where
original color is red, but might not work as well when blend color is
not black. Time will tell.
Fixes bug #11904 .
2020-07-12 00:01:46 +02:00
Jean-Marc Lasgouttes
2a80b0ac01
Set desktop name for Wayland
...
Fixes bug 11847.
2020-07-11 20:40:30 +02:00
Juergen Spitzmueller
289cb58f52
Remove unneeded header
2020-07-11 16:41:34 +02:00
Enrico Forestieri
da336cedf3
Fix compilation on platforms where sizeof(wchar_t) == 2.
...
Use "set" instead of "unordered_set" as some facets are missing when
using gcc on cygwin, mingw and, possibly, FreeBSD.
2020-07-11 16:19:21 +02:00
Juergen Spitzmueller
aaeb425230
Fix header inclusion order
...
This cures a crash with stdlib-debug on autotools
2020-07-11 12:30:14 +02:00
Juergen Spitzmueller
56c139449d
Update tex2lyx test after last file format change
2020-07-11 11:12:00 +02:00
Jean-Marc Lasgouttes
f758894c2f
Use Common Number separator instead of European to detect numbers
...
The is a fixup to commit 611df441
. It seems that the wrong unicode
property was selected. It could be that both classes should be used.
Fixes bug #11900 .
2020-07-10 18:06:41 +02:00
Richard Kimberly Heck
33eb33d0e7
Revert "Simplify code a bit. Should be equivalent, unless backs is empty!"
...
This reverts commit 3c094c739b
.
2020-07-09 22:25:09 -04:00
Juergen Spitzmueller
2c0b650aa6
Do not attempt to mark par break in single-line insets
2020-07-09 18:47:53 +02:00
Juergen Spitzmueller
11a57ce6c6
Fix header inclusions
2020-07-09 17:19:01 +02:00
Jean-Marc Lasgouttes
aaec8459bf
Cleanup: remove trailing underscores
...
These ToobarItem members are public, not private.
2020-07-09 16:27:00 +02:00
Juergen Spitzmueller
01c1d1e156
tex2lyx: add support for libertinus
2020-07-09 12:26:25 +02:00
Juergen Spitzmueller
8cb9a6d3f6
Add support for the libertinus family of fonts ( #11899 )
...
File format change.
2020-07-09 11:46:07 +02:00
Juergen Spitzmueller
780d9a5f4c
LaTeXFonts: Add ScaleCommand
...
This is needed to add support for scaling to fonts that are switched
via command
2020-07-09 11:41:21 +02:00
Juergen Spitzmueller
3335344261
Provide option to prevent unnecessary font loading.
...
If an OSF font is an alternative to a non-OSF one, only load the OSFFont
if osf is requested.
2020-07-09 11:39:43 +02:00
Eugene Chornyi
06969f9dd4
Workaround Qtbug where QAbstractScrollArea::mouseMoveEvent(...) is called falsely when quickly double tapping on a touchpad of a notebook running Windows
2020-07-09 09:36:12 +02:00
Richard Kimberly Heck
e6b2c7c4ce
Change in ::docbook args
2020-07-09 03:27:32 -04:00
Thibaut Cuvelier
af5257b6c3
Fix Coverity false positive for null-pointer dereference
2020-07-09 09:24:35 +02:00
Richard Kimberly Heck
3c094c739b
Simplify code a bit. Should be equivalent, unless backs is empty!
2020-07-09 00:03:58 -04:00
Richard Kimberly Heck
747afa36cd
Best to use braces when there are comments.
2020-07-09 00:03:58 -04:00
Kornel Benko
5f827b5a9d
Amend 3883b85f
: Typo in "New DocBook support"
2020-07-09 00:19:34 +02:00
Richard Kimberly Heck
8ae0841826
Whitespace
2020-07-08 12:38:05 -04:00
Pavel Sanda
77e0f69901
Fix another constructor order of parameters
2020-07-08 14:27:24 +02:00
Pavel Sanda
7175a87f14
comment only
2020-07-08 14:05:54 +02:00
Pavel Sanda
20a33941fa
Wrong order in constructor
2020-07-08 13:34:45 +02:00
Thibaut Cuvelier
25bb51c865
Remove DOCBOOK enum values, no more used.
2020-07-08 13:15:05 +02:00
Thibaut Cuvelier
fd6e14414f
Remove GuiRef::nameAllowed, as the DocBook support no more uses it
2020-07-08 09:55:59 +02:00
Thibaut Cuvelier
3a24550765
Remove GuiRef::typeAllowed, as it is now always allowed.
2020-07-08 09:41:45 +02:00
Thibaut Cuvelier
b596921211
The new DocBook output has no prerequisite on the document, so enable it for each and every document.
2020-07-08 09:35:03 +02:00
Thibaut Cuvelier
3883b85f49
New DocBook support
2020-07-08 08:42:16 +02:00
Pavel Sanda
28968b1f0d
Add required elements in the layouts to support DocBook.
...
Slightly modified patch from Thibaut Cuvelier.
2020-07-07 09:49:48 +02:00
Juergen Spitzmueller
0bddf448ef
Prevent outputting \maketitle within an inset embedded in title.
...
Amends [e4ef8ddc0f8202/lyxgit]
2020-07-04 10:54:20 +02:00
Juergen Spitzmueller
e4ef8ddc0f
Properly fix handling of title layouts within insets ( #11787 )
2020-07-03 16:20:38 +02:00
Juergen Spitzmueller
ccde0fb01d
constification
2020-07-02 08:22:49 +02:00
Juergen Spitzmueller
d0cbcda3b9
Fix yet another thinko in the math grid paste code
...
This is a Hydra!
2020-06-30 17:23:58 +02:00
Juergen Spitzmueller
b84e497ab6
Fix cursor positioning with specific matrix pastings
2020-06-30 09:25:59 +02:00
Juergen Spitzmueller
3718ff9a15
Fix c&p of tabular data between different LyX instances ( #4448 )
2020-06-29 18:52:10 +02:00
Juergen Spitzmueller
7869960888
Fix math matrix column insertion on paste
2020-06-29 18:05:46 +02:00
Juergen Spitzmueller
5c663849d1
Update cursor idx after grid paste if columns are appended
2020-06-29 17:57:18 +02:00
Juergen Spitzmueller
7f773cf24e
Resize table if needed on multi-cell paste
2020-06-29 17:51:24 +02:00
Juergen Spitzmueller
3b895bb47a
Fix math grid paste when needing more cells
2020-06-29 16:30:49 +02:00
Juergen Spitzmueller
5cb89a8f81
Implement proper pasting from multiple table cells to non-table ( #4447 )
2020-06-29 15:13:45 +02:00
Juergen Spitzmueller
2cee820f71
Correctly initialize font (language) for multiple-cell paste ( #11898 )
2020-06-29 13:41:19 +02:00
Juergen Spitzmueller
6dd990560e
Do not paste \t when pasting multiple table columns outside table ( #4449 )
2020-06-29 12:51:15 +02:00
Juergen Spitzmueller
16d0785e67
Fix pasting of math grid with more rows in source than target ( #11897 )
2020-06-29 09:48:05 +02:00
Juergen Spitzmueller
557adebcc1
Honor "provides parskip 1"
2020-06-29 09:00:28 +02:00
Juergen Spitzmueller
e121bd04bb
Support halfline and fullline also in vspace.
2020-06-28 18:27:59 +02:00
Juergen Spitzmueller
361d4d43e3
update tex2lyx tests
2020-06-28 17:27:36 +02:00
Juergen Spitzmueller
b0c102cfb4
use package parskip to separate paragraphs with vertical space ( #4796 )
...
File format change
2020-06-28 17:20:18 +02:00
Juergen Spitzmueller
261625f412
Force local switch for info insets that change language
...
Fixes compilation of current English UG
2020-06-27 09:40:12 +02:00
Juergen Spitzmueller
ae4c2b122f
Update tex2lyx tests after file format change
2020-06-26 11:32:01 +02:00
Juergen Spitzmueller
a68b0389bc
Add support for medspace and thickspace (in text) ( #11893 )
...
File format change.
2020-06-26 11:12:35 +02:00
Jean-Marc Lasgouttes
8ceb4f6b58
Run codespell on src/frontends
...
Command was:
codespell -w -i 3 -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus,pres,pass-thru src/frontends/
2020-06-26 00:21:47 +02:00
Pavel Sanda
7a132f4f8c
typo left by codespell
2020-06-26 00:07:03 +02:00
Jean-Marc Lasgouttes
110f8f67ac
Run codespell on tex2lyx/, client/, convert/ and graphics/
...
Command was
codespell -w -i 3 -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus,pres,pass-thru src/xxx
2020-06-25 23:50:52 +02:00
Jean-Marc Lasgouttes
5d4e6dfb68
Run codespell on src/insets
...
Command was
codespell -w -i 3 -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus,pres,pass-thru src/insets/
2020-06-25 23:46:16 +02:00
Jean-Marc Lasgouttes
3c4e567d44
Run codespell on src/mathed
...
codespell -w -i 3 -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus,wit,nd,numer src/mathed/
2020-06-25 23:31:42 +02:00
Jean-Marc Lasgouttes
9fe1ed4d68
Run codespell on src/support
...
Codespell is run with command line
codespell -w -S Makefile.in -L mathed,afe,tthe,ue,fro,uint,larg,alph,te,thes,alle,Claus -i 3 src/support/
2020-06-25 23:17:18 +02:00
Juergen Spitzmueller
9f13bb73f8
Consider nesting level when autonesting
2020-06-25 10:37:04 +02:00
Jean-Marc Lasgouttes
3fea3b0096
Allow row-breaking after some insets
...
Add new RowFlags value CanBreakAfter, which says that the row can be
broken after the inset if needed. There is no CanBreakBefore yet,
because I do not know of an inset that needs it.
This makes screen closer to the actual behavior of insets.
Currently, only unprotected spaces and some special characters are
concerned. There may be more that need this handling.
Fixes bug #11621 .
2020-06-23 23:34:49 +02:00
Jean-Marc Lasgouttes
49e1466f93
Make all unbreakable spaces of the same Color_latex color
...
Of course, this means that negative spaces cannot be recognized anymore.
2020-06-23 23:33:37 +02:00
Jean-Marc Lasgouttes
8535efafde
Fix comment
2020-06-23 23:32:05 +02:00
Jean-Marc Lasgouttes
f96e2f3a6a
The hard-coding of word_wrap has been fixed at bf88ad49
.
2020-06-23 00:10:41 +02:00
Jean-Marc Lasgouttes
ba738d0167
Use new rowFlags() values to remove some inset hardcoding.
...
The enum DisplayType is replaced with the flags RowFlags that can be
combined. Here is the correspondence between the old DisplayType and
the new Inset::RowFlags:
DisplayType RowFLags Meaning
Inline Inline plain inline inset
-- BreakBefore row ends before this inset
-- BreakAfter the row ends after this inset
AlignCenter Display the inset is centered on its own row
AlignLeft Display | AlignLeft the inset is left-aligned on its row
AlignRight Display | AlignRight the inset is right-aligned on its row
-- RowAfter an extra row is needed after this inset
Display is just a shortcut for BreakBefore | BreakAfter.
The flags for the newline inset will be BreakAfter | RowAfter,
while the separator inset will just use BreakAfter.
This groundwork does not introduce any new feature at this point. It
aims to remve the numerous isNewLine and isSeparator all over the
code, and to eventually optional break after some insets like spaces
(see #11621 ).
Most display() methods are renamed to rowFlags(). Some are removed
because they returned Inline.
Now display() is only a helper function for hull insets.
2020-06-22 23:11:40 +02:00
Eugene Chornyi
4dc33e52f8
Amend e501f2c4
...
put icons in cmake bin dir so that tex2lyx can also see them
2020-06-21 19:50:21 +02:00
Juergen Spitzmueller
bde95c1876
Fix swapped logic ( #11889 )
2020-06-19 16:40:07 +02:00
Thibaut Cuvelier
8f89768211
Fix in symbols handling: parse the XML entity with \def.
2020-06-19 08:22:56 +02:00
Thibaut Cuvelier
718eede94b
MathML: Convert HTML entities to XML entities.
2020-06-18 19:37:08 +02:00
Thibaut Cuvelier
054bdc5d18
MathML stream allows for name spaces.
2020-06-18 19:32:51 +02:00
Richard Kimberly Heck
ef65414d25
Focus keyword filed in Thesaurus dialog
2020-06-18 10:51:21 -04:00
Pavel Sanda
ebcaa5b1db
Rename-XHTMLStream-to-XMLStream #3 .
...
Fix paragraph id in xHTML output to the pre-refactoring status.
Tested on math manual (plus minus nonessential newlines).
Slightly modified patch from Thibaut Cuvelier.
2020-06-18 16:05:15 +02:00
Eugene Chornyi
e501f2c473
Assure that LyX and tex2lyx use src/lyxwinres.rc
2020-06-18 14:31:25 +02:00
Jean-Marc Lasgouttes
c42776868d
Do not dereference getFormat() if it is null
...
Return early when format is unknown. I am not sure whether this is
supposed to happen and whether we should assert on this condition.
Spotted by coverity.
2020-06-18 11:39:45 +02:00
Jean-Marc Lasgouttes
48d164ddef
Initialize properly Counter::saved_value_ member
...
Spotted by coverity.
2020-06-18 11:23:26 +02:00
Jean-Marc Lasgouttes
5aadf0879f
Pass BufferParams by address
...
Spotted by coverity.
Note that this probably fixes a bug in getTokenValue(), where an author
was added to the BufferParams copy.
2020-06-18 11:17:32 +02:00
Enrico Forestieri
70ccf9f243
Use the same icon as in the cmake build
2020-06-17 19:52:27 +02:00
Enrico Forestieri
ddcbfb77bf
Update copyright notice
2020-06-16 21:22:42 +02:00
Pavel Sanda
86387120bc
Rename-XHTMLStream-to-XMLStream #2 .
...
Refactor font-related stuff to come closer to the previous xHTML output.
Patch from Thibaut Cuvelier.
2020-06-15 23:37:27 +02:00
Pavel Sanda
8e2b18ada9
Amend a6b07608d8
, took older patch.
2020-06-15 13:13:00 +02:00
Thibaut Cuvelier
a6b07608d8
Rename XHTMLStream to XMLStream, move it to another file, and prepare for DocBook adoption.
...
xml.cpp/h also merges functionalities from sgml.cpp/h.
2020-06-15 13:01:56 +02:00
Enrico Forestieri
85ac309eed
Amend 5a80f7bb
...
Was missing these.
2020-06-12 11:50:58 +02:00
Thibaut Cuvelier
c8d0492194
MathML: generate only a mathvariant for double-struck font, no redundant class
2020-06-11 23:22:48 +02:00
Enrico Forestieri
5a80f7bb6a
Add support for the doublestroke package
...
This commit adds the mathed command \mathds that selects a
font more appropriate than \mathbb for typesetting the
mathematical symbols for the natural (N), whole numbers (Z),
rational numbers (Q), real numbers (R), complex numbers (C),
and some others.
As in the \mathbb case, only capital letters are supported,
but in addition one can also typeset a symbol often used for
representing the indicator function (\mathds{1}) and the
letters a, h, k.
Fixes bug #11887 .
2020-06-11 16:42:31 +02:00
Juergen Spitzmueller
64edb7a196
UI improvement to math matrix dialog, suggested by magistere ( #11888 )
2020-06-11 11:29:11 +02:00
Thibaut Cuvelier
716e3dc1a8
Output double-struck fonts as such in MathML, not in bold
2020-06-11 10:30:48 +02:00
Juergen Spitzmueller
134cb3b265
Consider parbreakIsNewline in plaintext output
...
Fixes #11886
2020-06-11 10:20:27 +02:00
Juergen Spitzmueller
76f19c6c6e
Fix some typos in comments, by Thibaut Cuvelier
2020-06-08 06:56:25 +02:00
Juergen Spitzmueller
cbe75042c0
Do not track row/column deletion in paste_tabular
...
Fixes #11884 .
2020-06-07 19:18:00 +02:00
Kornel Benko
ed665a0333
Amend 2d48072e
: Get rid of Qt resources
...
Remove the cmake handling too
2020-06-07 12:07:58 +02:00
Jean-Marc Lasgouttes
2d48072e66
Get rid of Qt resources
...
It turns out that the resources were mostly not used anyway. Removing
them shrinks LyX binary by ~6MB.
Only autotools have been adapted. cmake will require the same
simplification.
2020-06-07 01:15:28 +02:00
Jean-Marc Lasgouttes
6b221751c1
Move BulletsModule to frontend namespace
2020-06-07 01:15:28 +02:00
Richard Kimberly Heck
da362a6a59
Need this for std::endl now, according to Eugene
2020-06-06 13:06:06 -04:00
Jean-Marc Lasgouttes
12a9753fb5
Allow to provide explicit icons for things like command-alternative
...
The automatic icons for "command-alternative", "math-insert",
"math-(big)delim" and "command" can be overriden by an explicit icon
name.
Besides that, the iconName function is refactored, and now returns an
additional bool that indicates whether the icon should be flipped.
The code that uses resources is still useless. This will be the
subject of further work.
2020-06-06 01:21:02 +02:00
Jean-Marc Lasgouttes
a71b96ac42
Fixup 74540c98
: handle selection for label background
...
74540c98
was a fixup of d207e85c
, which avoided using inset background
as inset label background.
d207e85c
introduced a background under inset labels to avoid fake bold
effect.
Hopefully, this last variation will be the right one !
2020-06-05 22:32:58 +02:00
Richard Kimberly Heck
acc3f2cef8
Forgot this part.
2020-06-01 12:27:32 -04:00
Richard Kimberly Heck
9f5491baf9
Internal buffers are valid
2020-06-01 12:23:20 -04:00
Kornel Benko
38ec7471e7
Amend 44816adce6
: Be careful before using buffer parameters in colAlign
...
The LASSERT(isBufferValid()..) leads to crash in find-adv dialog
2020-06-01 10:20:38 +02:00
Juergen Spitzmueller
1bf18368cf
Add support for the xindex index processor
...
This is a modern alternative for makeindex that is fully unicode-aware
and written in lua.
As opposed to xindy, it is more lightweight and actively maintained.
The program is still in a rather early stage of development, so we do
not propose this as default.
This relies on xindex 0.22 (about to be released) to function properly.
2020-05-30 12:54:20 +02:00
Juergen Spitzmueller
79df18e4d4
update tex2lyx tests after 5b2479176b
2020-05-30 09:27:37 +02:00
Kornel Benko
9da4390a9b
FindAdv: Correct next test (keytest/findadv-16)
...
Provided that the LASSERT in src/mathed/InsetMathGrid.cpp:1824
is removed.
2020-05-29 20:04:57 +02:00
Kornel Benko
8028dce129
FindAdv: Correct some testcases
2020-05-29 14:22:34 +02:00
Kornel Benko
03ad03320e
Findadv: Convert some messages from LYXERR0(...) to LYXERR(Debug::INFO, ...)
...
Due to a hint from Scott:
> I don't think it should be printed to LYXERR0. That goes to the terminal
> for the user. Even our lyx2lyx tests fail if they detect any information
> printed to the terminal (although we escape some warnings). If "find" is
> not a good debug level for it, maybe we can put it in "info" (the first
> debug level)?
2020-05-29 08:44:56 +02:00
Jean-Marc Lasgouttes
e06e2e24e7
Revert part of 56e012be
: hardcode again "too small" preview size
...
It seems that the use of zoom in determining the size of the minimal
value was a bad idea.
It still think that the situation is not very satisfying, we need a new idea.
2020-05-28 20:43:01 +02:00
Kornel Benko
b7cac34d96
Findadv: 2 more possible out of range access cases corrected
2020-05-26 18:49:50 +02:00
Kornel Benko
8dd2ac7171
Findadv: Do not use out of range index into a string
...
Thanks Scott. Crashing if using _GLIBCXX_DEBUG preprocessor setting
2020-05-26 15:58:23 +02:00
Juergen Spitzmueller
5b2479176b
tex2lyx: reset language after polyglossia lang environment has been closed
...
Fixes #11878
2020-05-26 10:15:52 +02:00
Jean-Marc Lasgouttes
8d51b3e7bb
Simplify code by using initializer lists for vectors.
...
{ REFERENCE_NEXT, NOTE_NEXT } can be used as a value for a
vector<FuncCode> since C++11.
2020-05-23 17:10:17 +02:00
Jean-Marc Lasgouttes
7761e1317e
Fix first draw of auto-open inset
...
note-next and reference-next should trigger an update so that metrics
are updated when the cursor ends up in an auto-open inset.
Fixes bug #11870 .
2020-05-23 16:50:04 +02:00
Richard Kimberly Heck
44dc38e120
Revert part of 47973dc2b
, which was causing bug #11873 .
2020-05-22 23:43:44 -04:00
Richard Kimberly Heck
a2b21e3cd4
Fix more warnings and simplify a tiny bit.
2020-05-19 18:06:20 -04:00
Richard Kimberly Heck
6942dc9fb4
Fix warnings
2020-05-19 17:08:38 -04:00
Richard Kimberly Heck
ca417d2c87
Fix warnings
2020-05-18 01:15:50 -04:00
Richard Kimberly Heck
d7dde0c723
Fix warnings.
2020-05-18 00:46:58 -04:00
Richard Kimberly Heck
2de99c5dd9
Fix bug #11456 .
...
Add cancel button and take no action if we're canceled.
2020-05-18 00:28:36 -04:00
Richard Kimberly Heck
b2517d60b8
Fix bug #11405 .
...
We don't actually prevent hidden buffers from being dirty, so we need
to save them if they are.
2020-05-18 00:07:56 -04:00
Richard Kimberly Heck
a96ec2db45
Remove debugging code. Thanks Scott!
2020-05-17 20:59:34 -04:00
Richard Kimberly Heck
e1615f4107
Const-ness, and a missing Class declaration. I do not understand
...
why this ever worked.
2020-05-17 20:52:58 -04:00
Richard Kimberly Heck
5d9e175256
Fix copy-paste error.
...
See bug #11869 .
2020-05-17 20:52:18 -04:00
Richard Kimberly Heck
c6b3f35c8c
Properly check return values so TIMEOUT is recognized.
2020-05-17 14:58:15 -04:00
Enrico Forestieri
49098aa318
Fix bug #11854
...
The code was checking only for particular vertical alignment requests
in order to decide to nest a standard array into a 1x1 ams matrix.
However, also vertical lines are not possible in ams matrices.
2020-05-17 18:15:00 +02:00
Juergen Spitzmueller
6057fba90a
Fix indentation
2020-05-17 15:18:38 +02:00
Juergen Spitzmueller
0328ecd019
Properly close and reopen lyxdeleted macro at font change
...
Fixes #11867 , amends [28da0f4360a/lyxgit]
2020-05-17 14:54:59 +02:00
Juergen Spitzmueller
602ac1401e
return from switch
...
we don't break in this switch
2020-05-17 13:57:31 +02:00
Juergen Spitzmueller
f2243a3bc7
Disable bookmarksopenlevel SL when bookmarksopen is false
...
Fixes #11289
2020-05-16 10:31:48 +02:00
Juergen Spitzmueller
92ba05c53b
Assign InsetBibtex to appropriate toc level
...
Fixes #11863
2020-05-15 10:14:22 +02:00
Juergen Spitzmueller
11dc817e9d
Check class options for uncodable glyphs
...
Fixes #11865
2020-05-15 09:50:25 +02:00
Jean-Marc Lasgouttes
fc5b22a2f1
Get rid of lyx::next uses for RandomAccessList
...
These uses are inefficient (a loop really) and require that pit_type
is ptrdiff_t.
Instead, RandomAccesslist::constIterator is renamed to iterator_at and
a version adding a non-const iterator is added. Additionally, the
method retirns end() when position is equal to the size of the
container (see #11861 ).
lyx::next and lyx::prev are removed, and std::prev is used in the few
places where the code requires it (for no good reason IMO).
2020-05-14 10:35:49 +02:00
Richard Kimberly Heck
97bbcf2b9b
Remove include no longer needed
2020-05-13 14:54:16 -04:00
Richard Kimberly Heck
b0def618f8
Simplify.
2020-05-13 14:49:01 -04:00
Richard Kimberly Heck
5353cf90c0
Replace functors in ExternalTemplate.cpp.
2020-05-13 14:42:52 -04:00
Richard Kimberly Heck
ce33715d2b
Don't make copies!
2020-05-13 14:23:27 -04:00
Richard Kimberly Heck
47973dc2b4
Remove a couple more functors from PrevewLoader.
2020-05-13 13:33:27 -04:00
Richard Kimberly Heck
1e904625b2
Remove functors in PreviewLoader.cpp.
...
Also fix some warnings.
2020-05-13 13:33:27 -04:00
Jean-Marc Lasgouttes
c756749991
Revert "Get rid of lyx::next uses for RandomAccessList"
...
This is not ready (see #11861 ).
This reverts commit 6d97e39934
.
2020-05-13 10:45:25 +02:00
Juergen Spitzmueller
2663e3845e
Move \PassOptionsToPackage before the first package loaded
...
Fixes #11862
2020-05-13 08:48:08 +02:00
Jean-Marc Lasgouttes
e52af39864
Avoid a warning
2020-05-12 17:42:50 +02:00
Jean-Marc Lasgouttes
6d97e39934
Get rid of lyx::next uses for RandomAccessList
...
These uses are inefficient (a loop really) and require that pit_type
is ptrdiff_t.
Instead, RandomAccesslist::constIterator is renamed to iterator_at and
a version adding a non-const iterator is added.
lyx::next and lyx::prev are removed, and std::prev is used in the few
places where the code requires it (for no good reason IMO).
2020-05-12 17:29:21 +02:00
Richard Kimberly Heck
b1a0f7ac54
Fix typo (from Thibaut)
2020-05-08 13:32:08 -04:00
Richard Kimberly Heck
195c0bfbad
Rename some routines
2020-05-05 11:19:21 -04:00
Richard Kimberly Heck
5989160154
Remove functors in IndicesList.cpp.
2020-05-05 11:19:21 -04:00
Richard Kimberly Heck
958958453f
Replace functors in Format.cpp.
2020-05-05 11:16:28 -04:00
Richard Kimberly Heck
7f875d7dac
Replace functor in BranchList
2020-05-05 11:16:24 -04:00
Richard Kimberly Heck
c506f304bc
Fix a number of issues that were stopping compilation with MSVC 19.
...
Patch from Thibaut Cuvelier, modified slightly by me (mostly for style).
2020-05-04 19:45:58 -04:00
Richard Kimberly Heck
91265c1f46
Missing include according to VC19
2020-05-04 14:19:29 -04:00
Richard Kimberly Heck
d6a7ec506e
s/requires_/required_/ for code consistency
2020-05-04 14:05:44 -04:00
Richard Kimberly Heck
3b09ef61a6
Fix remaining (I think) requires keyword issues.
2020-05-04 13:46:01 -04:00
Scott Kostyshak
23abb5aaa3
Fix commented out code
...
Since the if condition changed at af4ee1a4
, the "else" in the
comment needed correction.
2020-05-04 09:27:35 -04:00
Scott Kostyshak
af4ee1a487
Only set dummy X11 selection if we do not own it
...
Before, we would continually set the selection to the empty string,
to maintain ownership. This causes problems with clipboard managers
GPaste and CopyQ. Further, in theory this should have better
performance since checking ownership should be faster than setting.
A disadvantage of this change is that the timestamp of the selection
will be old at this point in the code. However, when the selection
is requested, we put the selection contents at that point so the
selection timestamp should be accurate then. Further, the selection
contents are not accurate at this point in the code (they are just
the empty string), so it is not clear whether having an accurate
timestamp is beneficial.
Fixes #11715 .
2020-05-04 08:58:56 -04:00
Juergen Spitzmueller
210c4aa9a2
Use translated GUI name of counter in button label
2020-05-04 09:28:07 +02:00
Juergen Spitzmueller
5171b7ea6c
Keep sort order of counter actions
2020-05-04 09:22:35 +02:00