Juergen Spitzmueller
194298045c
Color lines of added/deleted rows/columns
2020-01-13 19:02:48 +01:00
Jean-Marc Lasgouttes
93794d6fea
Implement isChanged for tabular inset.
2020-01-13 16:35:15 +01:00
Jean-Marc Lasgouttes
b0371714a0
Only show pencil change mark when inset is collapsed
2020-01-13 16:35:15 +01:00
Jean-Marc Lasgouttes
e340f46476
Fixup bf7f4d71
: Let changeRefsIfUnique handle undo
...
This allows for a much lower memory consumption than a plain
recordUnfoFullBuffer.
Related to bug 6494.
2020-01-12 22:18:36 +01:00
Jean-Marc Lasgouttes
4a4ded2297
Reimplement computation of change tracking status
...
This is a reimplementation of 6d4e6aad
that is both simpler and more
complete.
This uses the updateBuffer mechanism to implement a fully working
version of Inset::isChanged(). Now the function returns true for an
inset that contains an inset that contains a change, for example.
Moverover Buffer::areChangesPresent() is merely a proxy for
Buffer::inset().isChanged().
2020-01-12 20:26:35 +01:00
Jean-Marc Lasgouttes
ce950f1ea5
Fixup b321bb1a
: set changebar when inset contains changes
...
Add Paragraph::isChanged() and InetText::isCgchanged() which indicate
the presence of a change in the relevant object.
Sets Row::needsChangebar() when adding an inset that contains changes.
Related to bug #8645 .
2020-01-12 20:26:35 +01:00
Juergen Spitzmueller
bbc6ea4a5f
Implement change tracking of column/row addition/deletion
...
Fixes #8469
File format change
2020-01-11 16:17:04 +01:00
Juergen Spitzmueller
c77999a5f3
Add buffer param to opt-out fragile content movement
...
Fixes #11714
File format change
2020-01-10 10:21:09 +01:00
Juergen Spitzmueller
79674c7632
Track changes in InsetCommands
2019-12-31 15:46:03 +01:00
Juergen Spitzmueller
affc006bae
Honor change tracking when automatically renaming refs to labels
...
Fixes rest of #11556
2019-12-31 12:29:53 +01:00
Juergen Spitzmueller
a5db5d4c90
whitespace
2019-12-30 16:28:15 +01:00
Juergen Spitzmueller
8a17cc01e0
Implement (basic) ct for tabular-feature delete-row and delete-column
...
Fixes part of #8469
For a proper fix that works with change-reject as well as with hide
changes in output, we need to implement
ct information in tabular's row and column.
2019-12-29 14:09:52 +01:00
Juergen Spitzmueller
b37b39365f
Remove obsolete FIXMEs
2019-12-29 12:07:55 +01:00
Juergen Spitzmueller
e65fdc6a51
Track change of label name
...
Fixes #11556
2019-12-29 11:01:18 +01:00
Juergen Spitzmueller
b321bb1aed
Indicate change of content in label of collapsed collapsible
...
Fixes #8645
2019-12-29 09:46:18 +01:00
Juergen Spitzmueller
89b5607e0a
Centralize code to markup deleted complex objects (with tikz) in output
...
This fixes #9293
2019-12-28 13:43:17 +01:00
Juergen Spitzmueller
da5ad1736a
Handle change-accept and change-reject in multi-cell selection
...
Fixes #8426
2019-12-27 12:05:56 +01:00
Juergen Spitzmueller
7c63896c60
CT: Mark deleted floats in output
...
Fixes #11175
2019-12-27 09:50:11 +01:00
Jean-Marc Lasgouttes
aeed6fb8fa
Do not check again and again for non existing files
...
If the file of an InsetInclude does not exist, loadIfNeeded will try
again and again to look for it. This is very bad for files with many
include insets, especially on windows.
Fixes bug #11656 .
2019-12-26 16:45:40 +01:00
Juergen Spitzmueller
e5a9d09870
Mark deleted graphics in output
...
Fixes #11687
2019-12-26 07:15:37 +01:00
Scott Kostyshak
79787c2274
Correct typo in method name getDescendants()
...
When used as an adjective, both variants "descendent" and
"descendant" are acceptable, but when used as a noun only
"descendant" should be used.
For a reference, see here:
https://en.wiktionary.org/wiki/descendent#Noun
2019-12-15 23:36:17 -05:00
Scott Kostyshak
989a49f377
Remove execute permission from two source files
2019-12-15 23:32:29 -05:00
Scott Kostyshak
f1accdebf3
Refresh previews on branch toggle
...
We only referesh previews if the branch that is toggled exists in a
descendant. This code could be further optimized, as noted in the
comments.
For relevant discussion, see the following ML thread:
https://www.mail-archive.com/search?l=mid&q=20191209022030.d6gyy3abdectr3yz%40tallinn
2019-12-11 11:48:56 -05:00
Scott Kostyshak
c61472303e
Fix crash due to encoding issues with child doc
...
This crash occurred starting with 553bebc3
, and can be triggered
when preview is enabled both in preferences and in a child document
inset. For a minimal example, see the following ML thread:
https://www.mail-archive.com/search?l=mid&q=20191209002609.6fao3dljtf3ohl25%40tallinn
This fix restores behavior to before that commit for the case when
oldEnc is 0.
2019-12-10 09:17:49 -05:00
Jean-Marc Lasgouttes
5ac3b88007
Disable inset-dissolve in table cells
...
This is better than making sure that the inset has exactly one cell.
In the future, inset-dissolve could be extended to dissolve all the
cells contents in the enclosing text.
Note that this check does not appear in mathed, and using dissolve in
e.g. fraction inset may lead to data loss (only current cell contents
is preserved).
2019-12-06 09:54:43 +01:00
Pavel Sanda
88ff1686bc
typo
2019-11-21 17:13:47 +01:00
Pavel Sanda
ae16abf57a
Reduce number of strings (the same one in buffer).
2019-11-21 17:11:09 +01:00
Juergen Spitzmueller
1a1adbc821
Handle paragraph direction switch in captions (with polyglossia/bidi)
2019-11-19 13:45:35 +01:00
Juergen Spitzmueller
967158c054
Always use local font switches in table cells.
2019-11-17 11:07:18 +01:00
Juergen Spitzmueller
3c0e0f8a29
Polish warning
2019-10-26 09:10:40 +02:00
Juergen Spitzmueller
1c0572f1ab
Validate if graphics path is encodable
...
Fixes #11688
2019-10-26 08:33:51 +02:00
Jean-Marc Lasgouttes
912704511b
Make some constructors explicit
...
Spotted by cppcheck.
2019-09-17 23:15:09 +02:00
Jean-Marc Lasgouttes
3fffa6eb83
Fix cut-n-paste error
...
Spotted by cppcheck.
2019-09-16 00:47:47 +02:00
Jean-Marc Lasgouttes
3aba81cf6a
Many small code cleanups suggested by cppcheck
2019-09-16 00:45:20 +02:00
Jean-Marc Lasgouttes
7c1891e0b4
Remove unused private members.
...
Spotted by cppcheck.
2019-09-16 00:17:08 +02:00
Jean-Marc Lasgouttes
714113655a
Follow some of the performance advice from cppcheck
...
Most of that is changing string to string const &.
2019-09-13 16:23:49 +02:00
Richard Kimberly Heck
e71280221f
Fix nullptr warnings
2019-09-11 22:13:25 -04:00
Richard Kimberly Heck
05a446b77c
Fix bug #11636 .
...
Directories are created when files are copied, so we do not need
to do it prospectively here.
2019-09-11 20:54:42 -04:00
Richard Kimberly Heck
a20f3a0d52
Revert last two commits, which we pushed accidentally.
2019-09-11 20:47:07 -04:00
Richard Kimberly Heck
1fb308cd02
Whoops, forgot this part
2019-09-11 20:30:31 -04:00
Richard Kimberly Heck
26813996e2
Constify, largely for debugging purposes
2019-09-11 20:29:58 -04:00
Jean-Marc Lasgouttes
7c1c50d737
Enable dissolve in undefined Flex inset context menu
...
This is a hackish special case, so I had to add a hack...
Fixes bug #8650 .
2019-09-11 15:49:50 +02:00
Juergen Spitzmueller
cc3e227cba
Properly terminate command
2019-08-19 07:30:06 +02:00
Juergen Spitzmueller
7ca267e1fe
Fix coloured boxes in RTL with [pdf]latex ( #8642 )
2019-08-15 16:21:13 +02:00
Juergen Spitzmueller
4e74dd0d42
Fix greyedout note in RTL ( #8647 )
...
More complicated than I wished for, but color handling in RTL is
particularly tricky.
The three versions are needed due to the differences between [pdf]latex,
xetex, luatex/luabidi and luatex/babel.
2019-08-15 15:15:59 +02:00
Juergen Spitzmueller
2746fdf7dd
Correct ^ catcode for \cprotect
2019-08-14 18:32:34 +02:00
Juergen Spitzmueller
4b0069860c
InsetGraphics: use totalheight for height output
...
Graphics "height" is only the height above the baseline and thus not
what most people will expect. Also, using height can result in a
division by zero with rotation.
Use totalheight now since this means "height of the figure" (independent
of the baseline).
The custom options field can be used if height is really desired.
We handle this in conversion/reversion, respectively, so document
output will not change.
Hence, file format change.
Fixes : #9676
2019-08-14 16:55:43 +02:00
Juergen Spitzmueller
1929caf4b7
Re-fix #2005
...
Loading keyval does not work any longer. Fix it properly by de-activating
the equal character locally if graphics options use it.
2019-08-14 14:49:38 +02:00
Juergen Spitzmueller
f995fba310
Fix cprotect with Slovak
...
babel-slovak makes ^ active, though cprotect relies on it being
catcode 9 ("ignored"). Thus we locally change the catcode with Slovak.
2019-08-14 14:00:29 +02:00
Juergen Spitzmueller
ce447e1760
Deactivate active - in tables with \cline or \cmidrule
...
This introduces a new languages tag ActiveChar which also can be used
for similar cases.
2019-08-14 13:10:42 +02:00