Juergen Spitzmueller
430327152a
Fix per-document dictionary with Mac
2021-03-07 17:25:31 +01:00
Juergen Spitzmueller
07396ab244
Meet per-document spelling dictionaries ( fixes #86 [sic!])
...
Now who can beat that? ;-)
2021-03-06 16:53:33 +01:00
Pavel Sanda
9e734339e9
Compile with gcc 4.9 again.
2021-02-21 20:05:06 +01:00
Thibaut Cuvelier
358e4ace56
DocBook: implement prepended/appended arguments for all kinds of elements.
...
Previously, it was just in InsetText.
2021-02-19 17:38:38 +01:00
Enrico Forestieri
7114de5175
Fix bug #12148
2021-02-19 02:19:06 +01:00
Enrico Forestieri
2fdee24959
Correctly show deleted url with change tracking
...
This fixes the issue reported here:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg202545.html
I could not find an open ticket about it.
2021-02-17 19:51:01 +01:00
Juergen Spitzmueller
ab1cc8e1c2
Consider case (in)sensitivity when querying special char insets
2021-02-17 15:50:54 +01:00
Thibaut Cuvelier
d18dff22b5
DocBook: add the DocBookNoFontInside layout configuration.
2021-02-13 05:09:59 +01:00
Enrico Forestieri
22ee249c3e
Allow pasting references to mathed
...
A reference can be directly inserted into mathed but cannot be pasted
because the pasted material is returned in plain text format. This patch
allows getting a string from the cut stack in a suitable format allowing
the math parser to actually create an InsetRef.
Fixes #11539
2021-01-30 01:32:40 +01:00
Jean-Marc Lasgouttes
ef091ca0ea
ChangesMonitor: beware of exceptions in destructor
...
There may be an exception is the paragraph does not have an owner. In
this case, there is nothing to do anyway.
Spotted by coverity.
2021-01-29 18:45:50 +01:00
Jean-Marc Lasgouttes
f3a0e8ff9a
Run updateBuffer when adding/merging changes
...
Following 4a4ded22
, the enabling of some change-related functions is
handled in updateBuffer. However, this method is not ran at every
document change for performance reasons.
This patch adds code to every place that modifies
Paragraph::Private::changes_ that checks whether the `changedness' of
the paragraph, err... changes.
To this end, a new helper struct is introduced that remembers
paragraph state at contruction time, and compares it to new state in
the destructor.
New forceUpdate/needUpdate methods are added to Buffer class, since
the cursor is in general not available in the places where these
changes are made.
Fixes bug #12074 .
2021-01-28 11:30:05 +01:00
Kornel Benko
961e393b95
FindAdv: Make search for text in deleted regions configurable.
...
The function call 'search-ignore deleted false'
makes findadv to search also deleted parts,
while 'search-ignore deleted true' will omit these parts.
2021-01-22 21:11:28 +01:00
Kornel Benko
3259f3c73e
FindAdv: Remove dead code
...
+ correct detection of backspaced '{' and '}' in regex with format search enabled
2021-01-18 17:06:05 +01:00
Kornel Benko
ec387b6d65
FindAdv: Handle search for '{' and '}'
...
In format-search the chars '{' and '}' are understood as latex parentheses, which normally are not
part of text and are discarded.
Instead we fake them as if they were a char like \backslash or \guilemotright or such.
2021-01-18 01:10:07 +01:00
Kornel Benko
9bdd0b31db
Fix #12069 : Broken search
...
Do not count ignored characters as matching
2021-01-14 14:36:07 +01:00
Juergen Spitzmueller
22efd5a5ef
Simple Search: find isChar() insets ( #11462 )
2021-01-13 08:19:54 +01:00
Juergen Spitzmueller
c049527941
Consider inset strings in simple find/replaceAll ( #12049 )
2021-01-12 16:45:32 +01:00
Juergen Spitzmueller
d87511308b
Ignore tracked deletions in simple find ( #11051 )
2021-01-12 16:11:58 +01:00
Kornel Benko
6211469b5f
FindAdv: A try to handle backslashes in text
...
Otherwise we are unable to distinguish text from latex commands.
For instance '\color{blue}' in text-part is normal text, while othervise
it defines following characters as being blue colored)
2021-01-06 02:20:15 +01:00
Kornel Benko
b3d4271e78
Adv-Find: Try to use some more unicode chars (instead of latex macros)
2020-12-15 18:08:02 +01:00
Richard Kimberly Heck
41216228c0
Change name in source files
2020-12-05 17:17:02 -05:00
Juergen Spitzmueller
7b6bb23b87
Move dummy bool a bit closer to context
2020-12-03 08:50:43 +01:00
Juergen Spitzmueller
098c16f153
Assure \par is output when needed with fontswitch
2020-12-02 14:32:05 +01:00
Juergen Spitzmueller
95fed10131
Exclude insets without output from fontswitch_insets
2020-12-02 14:31:26 +01:00
Yuriy Skalko
c0a5987181
Better naming for enums
2020-12-01 00:46:21 +02:00
Yuriy Skalko
ecf62a8f21
Refactor OutputParams
...
Now all Inset hierarchy uses OutputParams.h included in Inset.h.
Forward declare some enums to reduce header dependencies.
2020-11-30 13:05:03 +02:00
Thibaut Cuvelier
59acb375d1
DocBook: add layout parameters to control the special case and argument positioning.
...
Only for flex insets.
Also add similar checks in InsetText to avoid bibliographies in paragraphs.
2020-11-29 22:54:03 +01:00
Thibaut Cuvelier
2c6537ff66
DocBook: ensure that <info>-related insets in the abstract are not generated in the abstract.
...
This helps generate more conformant DocBook files.
Also implement wrapper tags for InsetText.
2020-11-20 18:41:02 +01:00
Yuriy Skalko
d38eddb397
Match header/source function argument naming
2020-11-01 22:23:44 +02:00
Yuriy Skalko
a7018252b7
Constify
2020-10-25 09:28:34 +02:00
Pavel Sanda
8af747c9d9
Revert da8b5de97
because of MSVC 2017.
...
In GCC `min` is defined via including <vector>.
2020-10-24 12:06:54 +02:00
Yuriy Skalko
196d9caeb0
Clean includes using the output of iwyu tool
2020-10-20 11:38:55 +03:00
Yuriy Skalko
d25c10ed81
Remove duplicate and unused header includes in .cpp files
2020-10-19 18:01:11 +03:00
Pavel Sanda
da8b5de973
Move <algorithm> from DocIterator.h
2020-10-14 13:01:30 +02:00
Yuriy Skalko
238fd9ac50
Right exception rethrowing
2020-10-12 15:14:55 +02:00
Yuriy Skalko
7d38a4d126
Loop refactoring
2020-10-09 09:04:20 +03:00
Thibaut Cuvelier
6a0e93f162
Amend 249d899
...
Non-ASCII characters make std::isspace crash, but not lyx::isSpace.
2020-10-07 04:49:20 +02:00
Thibaut Cuvelier
249d899298
DocBook: clean output when fonts span over text that ends with a space
2020-10-05 16:22:58 +02:00
Yuriy Skalko
fe85162a29
Refactoring
2020-10-05 14:55:00 +02:00
Yuriy Skalko
715b8cda54
Refactoring based on cppcheck suggestions
2020-10-03 13:39:51 +02:00
Juergen Spitzmueller
b38500353c
Amend 448e5efab4
...
Only set langClosed to true if it really has been closed.
2020-09-26 12:12:09 +02:00
Juergen Spitzmueller
b814c4fda7
Fix unnecessary cprotect
2020-09-20 08:45:42 +02:00
Thibaut Cuvelier
44a7d2bc88
DocBook: adapt code for older GCC.
2020-09-19 23:55:07 +02:00
Thibaut Cuvelier
9a48c8d22b
DocBook: fix handling of new lines and fonts.
...
Only the font variable was restored to the right state, not fs.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
594a4763b7
Fix a few warnings.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
e995414917
DocBook: avoid generating fonts for "special cases" like equations.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
654559feb8
DocBook: fix line issues around programlisting.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
9d3a717ef1
DocBook: fix font issues when a paragraph has an InsetNewline.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
39ad6e84f0
DocBook: improve equation formatting (new lines for block equations).
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
52b2d3f683
DocBook: make Paragraph::simpleDocBookOnePar return a list of paragraphs.
...
Before, it directly wrote to the XMLStream, but it made implementation of new lines tricky. Now, it returns the XML for each sub-paragraph (delimited by new lines) as a string, so that the caller can adopt a more precise behaviour (such as in lists).
2020-09-19 20:43:38 +02:00