Jean-Marc Lasgouttes
82516e356b
Use std::move in InsetText::updateBuffer for notes and friends
...
Avoid as much as possible to do full copies of all counters, since
that can be expensive. Unfortunately, it is only posible when we want
to restore the saved counters.
An earlier version (05d3a649
) defined swap() for Counter, but caused
problems on windows.
Part of bug #5973 .
2018-09-18 23:18:17 +02:00
Jean-Marc Lasgouttes
f5f2f5b7ea
Revert "Use swap in InsetText::updateBuffer for notes ad friends"
...
This reverts commit 05d3a64952
.
2018-09-18 23:07:48 +02:00
Jean-Marc Lasgouttes
0920872ebd
Revert "Try to please windows compiler"
...
This reverts commit a8b0e64094
.
2018-09-18 23:06:36 +02:00
Jean-Marc Lasgouttes
ad29b0067f
Revert "Use new display() values to remove some inset hardcoding."
...
This is a work in progress that committed by mistake.
This reverts commit b28ec44476
.
2018-09-12 15:26:15 +02:00
Jean-Marc Lasgouttes
b28ec44476
Use new display() values to remove some inset hardcoding.
...
The enum is now made of flags that can be combined.
This introduces several new values for Inset::DisplayType:
BreakBefore, BreakAfter and Display=BreakBefore|BreakAfter. This
last value replaces AlignCenter.
Additionally the flags NoBoundary and CanBreakAfter are introduced for
future use.
Now a left aligned displayed inset will be defined as Display|LeftAlign.
A newline inset is characterized as BreakAfter.
This structure is used in breakRow to avoid explicit calls to
isNewline() or isEnvSeparator(). More improvements will be built on
top of this.
Additionally several redundant display() methods (which returned
Inline) have been removed.
2018-09-12 11:38:01 +02:00
Jean-Marc Lasgouttes
7485225cc6
Place the depth bar correctly in screen mode
...
In full screen mode, it is possible to restrict the text width. In
this case, the paint bar should not be painted outside of this
restricted area.
Fixes bug #11286 .
2018-09-11 16:45:48 +02:00
Juergen Spitzmueller
e158d661b9
Amend 2d4ac90fd2
once more
...
Only use local switch in RTL environment.
2018-09-10 12:29:22 +02:00
Jean-Marc Lasgouttes
819cf53c22
Handle branches with space in their name
...
1/ Handle space in color name in set-color (with quoting)
2/ read properly branch inset when name has a space
Fixes bug #11108 .
2018-09-08 13:07:07 +02:00
Juergen Spitzmueller
1116335977
Amend 2d4ac90fd2
...
Properly close local language switch.
2018-09-08 12:50:42 +02:00
Jean-Marc Lasgouttes
6cfd733dea
Fixup 7b7ed64a
: allow toggling limits of (over|under)brace
2018-09-05 17:31:05 +02:00
Jean-Marc Lasgouttes
7b7ed64a0e
Allow toggling (no)limits only after mathop symbol
...
In particular, introduce the new InsetMathScript::allowLimits method
that checks for that and honor it in getStatus/ddoDispatch.
2018-09-03 17:55:27 +02:00
Richard Kimberly Heck
6014492699
Try yet again try to fix bug #9158 .
...
The problem with the previous attempt was that, every time through
updateBuffer, we looked up the file location using kpsewhich, which
took too long on Windows. The new solution is to cache that info, and
to look it up only when we need it.
Previously, this info would have been re-read whenever we parsed the
bibfiles. So we re-read it now whenever the bibinfo cache is invalid,
which is less often, but should be good enough. We can add more such
re-reads if need be.
2018-09-02 11:50:03 -04:00
Juergen Spitzmueller
5f7b553a1c
use masterBuffer() rather than parent()
...
This also catches grandparents.
Thanks, Riki.
2018-09-02 10:17:23 +02:00
Richard Kimberly Heck
2bb8bd3ec4
Signal need for reload of bibinfo cache rather than doing it.
2018-09-02 00:16:45 -04:00
Richard Kimberly Heck
a3e87dad80
Revert "Try yet again try to fix bug #9158."
...
(Unintentionally committed.)
This reverts commit 7b29d4e7aa
.
2018-09-02 00:09:19 -04:00
Richard Kimberly Heck
7b29d4e7aa
Try yet again try to fix bug #9158 .
...
The problem with the previous attempt was that, every time through
updateBuffer, we looked up the file location using kpsewhich, which
took too long on Windows. The new solution is to cache that info, and
to look it up only when we need it.
Previously, this info would have been re-read whenever we parsed the
bibfiles. So we re-read it now whenever the bibinfo cache is invalid,
which is less often, but should be good enough. We can add more such
re-reads if need be.
2018-09-01 23:13:00 -04:00
Juergen Spitzmueller
bc644d131c
Fix potential null pointer detected by Coverity
2018-09-01 10:45:03 +02:00
Juergen Spitzmueller
5279f3e11f
Fix uninitialized value revealed by Coverity
2018-09-01 10:41:29 +02:00
Jean-Marc Lasgouttes
4727e2becf
Move leaveInset and isInside from CursorData to DocIterator
...
They only touch the slices of the main DocIterator.
2018-08-30 14:17:53 +02:00
Jean-Marc Lasgouttes
86398b5d91
Cleanup: Rename textUndo to undoAction
...
This is not limited to text, but also handles math.
Same change to textRedo.
2018-08-30 14:17:53 +02:00
Jean-Marc Lasgouttes
dd8fd3d90a
Get rid of monolithic build support for autoconf
...
It is not useful anymore on modern machines with several cores.
2018-08-30 11:35:37 +02:00
Juergen Spitzmueller
9c33723632
Improve comment
2018-08-28 12:39:23 +02:00
Juergen Spitzmueller
fe2e3841eb
grammar
2018-08-28 10:36:47 +02:00
Juergen Spitzmueller
da62299f37
tex2lyx: fix import of unknown commands'/environments' options
...
If we detect options via hasOpt(), output the brackets as ERT.
Fixes : #8685
2018-08-28 10:31:29 +02:00
Juergen Spitzmueller
9f99f3073a
Correct indentation
2018-08-27 12:13:55 +02:00
Juergen Spitzmueller
a3ed99b211
fix glitch with last border in table for custom arguments
2018-08-27 12:13:24 +02:00
Juergen Spitzmueller
64ad077c9c
tex2lyx: support V table column type
2018-08-27 12:12:56 +02:00
Juergen Spitzmueller
8ef2558dc2
tex2lyx: support decimal alignment in tables
2018-08-26 16:17:54 +02:00
Juergen Spitzmueller
af42dfedf6
This has been done in f38816bf16
2018-08-26 11:13:00 +02:00
Juergen Spitzmueller
fc9b4fb6a8
tex2lx/TODO: minor clarifications
2018-08-26 10:54:04 +02:00
Juergen Spitzmueller
faf40fb408
tex2lyx: support for plural and capitalized refstyle
...
Also fix a glitch in non-refstyle import (getOpt() returns the option
with delimiter, so do not add them in ERT once more)
Candidate for stable
2018-08-26 09:48:23 +02:00
Juergen Spitzmueller
d10c3bceb0
whitespace
2018-08-24 15:33:48 +02:00
Juergen Spitzmueller
2d4ac90fd2
Fix text direction problem with polyglossia
...
If an RTL language is set via environment in polyglossia, only a nested
\\text<lang> command will reset the direction for LTR languages
Fixes rest of # 10111.
2018-08-24 15:02:26 +02:00
Juergen Spitzmueller
920e26916e
tex2lyx: Fix import of Arabic polyglossia environment
...
Part of #10111
2018-08-24 14:20:43 +02:00
Juergen Spitzmueller
2f279b29ff
Update tex2lyx tests
...
LyX itself also doesn't write "rotate" if it is 0. So tex2lyx is now
closer to LyX, and the new tests output is correct.
2018-08-24 10:19:55 +02:00
Juergen Spitzmueller
ab32a8319d
tex2lyx: also support rotated non-long tables
2018-08-24 10:11:19 +02:00
Juergen Spitzmueller
20663fb3b8
tex2lyx: also support rotated xltabulars
2018-08-24 09:39:46 +02:00
Juergen Spitzmueller
766eb3f02c
tex2lyx: support rotated longtable
2018-08-24 08:50:32 +02:00
Juergen Spitzmueller
30abecd437
tex2lyx: split huge else-if-clause
...
Use a loop instead and break out after a condition is met. This prevents
problems on windows where the number of else-if-conditions is limited.
2018-08-22 18:49:16 +02:00
Juergen Spitzmueller
68d48b0015
tex2lyx: Fixes to the btUnit import
...
1. Do not attempt to mix diverging btUnits (e.g., chapters and sections).
2. use parse_text to properly parse the contents.
2018-08-22 08:39:13 +02:00
Juergen Spitzmueller
5c97424a72
tex2lyx: simplify btUnit parsing
2018-08-21 17:33:30 +02:00
Juergen Spitzmueller
0ae68ae828
tex2lyx: support for btUnit (multibib)
2018-08-21 17:18:04 +02:00
Juergen Spitzmueller
f44a55c367
tex2lyx: add bib encoding support.
2018-08-21 08:19:24 +02:00
Juergen Spitzmueller
924a666166
Remove empty entry
2018-08-20 18:18:48 +02:00
Juergen Spitzmueller
23ea74a40b
tex2lyx: support for Plex fonts
2018-08-20 11:13:13 +02:00
Juergen Spitzmueller
ed61ce74b7
So long, date-insert!
...
This function is superseded by info-insert date, which is much mightier
and more flexible.
2018-08-20 09:25:22 +02:00
Juergen Spitzmueller
43e26a562b
Add prefs2prefs code for vcs info inset renaming
2018-08-18 16:11:08 +02:00
Juergen Spitzmueller
b0f579655c
InsetInfo: Move validateArgument() to params
...
and use it for LFUN_INFO_INSERT validation
2018-08-18 14:29:15 +02:00
Juergen Spitzmueller
c5cab5a8f7
Update tex2lyx tests
2018-08-17 20:34:28 +02:00
Juergen Spitzmueller
6d71b9b69a
Fix line break in tooltip
...
Fixes : #11252
2018-08-17 10:32:57 +02:00