Juergen Spitzmueller
7f773cf24e
Resize table if needed on multi-cell paste
2020-06-29 17:51:24 +02:00
Juergen Spitzmueller
5cb89a8f81
Implement proper pasting from multiple table cells to non-table ( #4447 )
2020-06-29 15:13:45 +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
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
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
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
Juergen Spitzmueller
cbe75042c0
Do not track row/column deletion in paste_tabular
...
Fixes #11884 .
2020-06-07 19:18:00 +02:00
Richard Kimberly Heck
8a4bb40c7e
Fix typo.
2020-05-01 19:47:50 -04:00
Juergen Spitzmueller
1e409a1a75
Properly resolve tracked changes when pasting multiple tabular cells
...
Fixes #11791
2020-03-21 15:54:37 +01:00
Juergen Spitzmueller
d94b708a0f
Tell updateBuffer whether an inset is deleted.
...
Fixes #11747
2020-03-06 13:23:01 +01:00
Stephan Witt
e900b61d46
Make cell index of tabular local for column loop.
2020-02-12 12:32:31 +01:00
Juergen Spitzmueller
62a2b69bb0
Remove terminating linebreak
2020-01-16 10:19:52 +01:00
Jean-Marc Lasgouttes
0ef2c192c0
Replace the hardcoded TEXT_TO_INSET_OFFSET by tunable values
...
The basic value is Inset::textOffset(BufferView*), which can in theory
change with the BufferView zoom and dpi. It is hardcoded to 4 for now.
Moreover, we introduce the virtual inset methods
(top|bottom|left|right)Offset, which can be tweaked for each inset.
No change intended (for now).
2020-01-15 11:13:54 +01:00
Juergen Spitzmueller
8bd47bda8c
Improve comments
2020-01-15 08:40:51 +01:00
Juergen Spitzmueller
a940e9d709
Cross out ct-deleted tabular rows/columns in workarea
2020-01-15 08:37:35 +01:00
Juergen Spitzmueller
218731c3eb
Whitespace
2020-01-14 16:23:09 +01:00
Juergen Spitzmueller
1e5f252667
Account for bidi (swapped columns) when calculation clines
...
Fixes #11717
2020-01-14 16:15:49 +01:00
Juergen Spitzmueller
66c5d055e7
Do not output deleted rows columns if show changes in output is false
2020-01-14 13:03:12 +01:00
Juergen Spitzmueller
b5856628f1
Set changed status for changed column/row cells in updateIndexes()
2020-01-14 10:39:42 +01:00
Juergen Spitzmueller
2a48fbbf7f
Some polishment.
2020-01-14 09:55:16 +01:00
Juergen Spitzmueller
33133733ae
Record change author and time for tracked columns/rows
...
This now uses a real change object
2020-01-14 09:28:36 +01:00
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
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
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
da5ad1736a
Handle change-accept and change-reject in multi-cell selection
...
Fixes #8426
2019-12-27 12:05:56 +01: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
Juergen Spitzmueller
967158c054
Always use local font switches in table cells.
2019-11-17 11:07:18 +01:00
Jean-Marc Lasgouttes
3fffa6eb83
Fix cut-n-paste error
...
Spotted by cppcheck.
2019-09-16 00:47:47 +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
Juergen Spitzmueller
28b126b100
Fix cline/cmidrule calculation once more
2019-08-14 11:25:31 +02:00
Juergen Spitzmueller
5621c12135
fix midrule calculation
2019-08-13 19:29:39 +02:00
Juergen Spitzmueller
b852df91bc
Localize the default decimal separator
...
Do not blindly use (English) "." as default, but the locale default of
the current context language.
Fixes : #7204
2019-07-22 08:05:28 +02:00
Juergen Spitzmueller
04bd57a86a
Factor out test for bidi package (= XeTeX + polyglossia)
2019-07-11 10:31:10 +02:00
Juergen Spitzmueller
6f8db58778
LuaTeX (luabidi) does not swap table columns
...
This amends [21b347a2f8485/lyxgit].
2019-07-10 22:57:34 +02:00
Kornel Benko
58804aa399
Omit floating point exception
2019-05-31 12:55:12 +02:00
Juergen Spitzmueller
fe589d5622
Fix toprule with booktabs/longtable and captions
2019-05-31 10:48:00 +02:00
Juergen Spitzmueller
89f6de9835
Append rows and columns if necessary when pasting into table
2019-04-23 08:34:53 +02:00
Juergen Spitzmueller
302796ade1
Amend cf1c506d644
...
Get direct copying fro LibreOffice working
2019-04-22 11:10:07 +02:00
Juergen Spitzmueller
cf1c506d64
Handle plain text/html rows/columns in tabular LFUN_PASTE
...
Fixes : #7932
2019-04-22 10:56:00 +02:00
Juergen Spitzmueller
97d3b73e9a
Disable TABLUAR_STYLE_INSERT with TABULAR_INSERT
2019-04-04 08:24:25 +02:00
Juergen Spitzmueller
f60bda37a6
booktabs trimming: fix some thinkos
2019-04-03 17:18:21 +02:00
Juergen Spitzmueller
bf5d5e5d66
Fix cmidline trimming with multicolumns
2019-04-03 16:35:08 +02:00
Juergen Spitzmueller
8085fc21f8
booktabs: support for \cmidrule trimming
...
This has probably still some rough edges, so please test thoroughly.
Fixes : #3072
2019-04-03 07:59:52 +02:00
Juergen Spitzmueller
a8f778b66c
reset.formal-default: no need to fiddle with left/right lines at all.
2019-04-01 09:27:12 +02:00
Juergen Spitzmueller
00de6c4be7
Fix left/right border UI when toggling formal
...
Fixes : #9835
2019-04-01 09:26:09 +02:00
Juergen Spitzmueller
3bbcfda3db
Add option to reset to default booktabs lines
...
Addresses: #10106
2019-04-01 07:08:13 +02:00
Juergen Spitzmueller
819c9c1645
Fix booktabs bottom line with multirows
...
Fixes : #11445
2019-04-01 05:43:32 +02:00
Juergen Spitzmueller
cb84f752f2
Add tabular-features set-inner-lines and fix set-all-lines behavior
...
Patch by Daniel Ramöller (racoon)
Fixes : #11382
2018-12-28 10:11:42 +01:00