Jean-Marc Lasgouttes
405b5c04a7
Fixup 005f69de
: code cleanup.
...
Since we are not sure of where the cursor ends up after invoking
Cursor::handleNest it is safer to reset the cursor at each cell,
rather than reuse the same one over and over.
Related to bug #12035 .
2020-12-19 17:12:28 +01:00
Richard Kimberly Heck
8c805db9d3
Typo
2020-12-18 17:35:58 -05:00
Richard Kimberly Heck
49f019e129
Remove unnecessary change.
2020-12-18 17:11:05 -05:00
Richard Kimberly Heck
03897206bb
Minor code simplification
2020-12-18 16:59:57 -05:00
Richard Kimberly Heck
7e5c42593e
Simplify checking whether files are controlled by SVN and GIT.
2020-12-18 16:43:52 -05:00
Richard Kimberly Heck
05551a7cfb
Remove unused return values and useless member assignment.
...
The master_ variable holds a FileName that points to the meta-data
for this file, e.g., CVS/Entries. There is no such thing in SVN or GIT.
So we remove that variable from those classes.
2020-12-18 16:27:57 -05:00
Richard Kimberly Heck
a4c9a5010e
typo
2020-12-18 16:19:28 -05:00
Richard Kimberly Heck
49506153c1
Comments
2020-12-18 16:19:05 -05:00
Richard Kimberly Heck
77cdef1fe0
Allow registration of files with svn when parents directory is not yet registered.
2020-12-18 16:01:43 -05:00
Richard Kimberly Heck
750af39139
Comment
2020-12-18 15:53:45 -05:00
Richard Kimberly Heck
fdbbddecb7
Fix bug with registering files for VC when they are in repo subdirs.
2020-12-18 15:48:51 -05:00
Richard Kimberly Heck
2405788d84
Style
2020-12-18 14:56:18 -05:00
Richard Kimberly Heck
73e7cfb26a
Const
2020-12-18 14:55:58 -05:00
Richard Kimberly Heck
68e60f95d3
Remove unused file output
2020-12-18 14:51:56 -05:00
Richard Kimberly Heck
fd4d546d5b
Comment
2020-12-18 14:50:13 -05:00
Richard Kimberly Heck
bd306ae118
Style
2020-12-18 14:37:58 -05:00
Richard Kimberly Heck
81be2e8a9b
Use right style for private member
2020-12-18 14:30:21 -05:00
Jean-Marc Lasgouttes
005f69de23
Fix crash after b0937fb9
.
...
Now the cursor is not left inside color inset, so it is not needed to
pop_back.
Fix bug #12035 .
2020-12-17 22:04:46 +01:00
Juergen Spitzmueller
f661469734
Implement sane UI for switching tristate toolbars ( #6364 )
...
Also fix toolbar toggling with AllowAuto which was broken since
a long time.
2020-12-17 10:15:18 +01:00
Juergen Spitzmueller
7e11cb2b37
Whitespace
2020-12-17 10:10:56 +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
Jean-Marc Lasgouttes
3950f05497
Take label width into account for SubLabel insets
...
The drawing of the label should not go further than inset width.
Fixes bug #12046 .
2020-12-15 15:25:07 +01:00
Jean-Marc Lasgouttes
209a3ce618
Dialog.h and DialogFactory.h are not moc-able
2020-12-15 11:53:06 +01:00
Juergen Spitzmueller
9bf3a5a778
Add some documentation
2020-12-15 09:52:52 +01:00
Juergen Spitzmueller
1a0b842e66
Do not close spellchecker after "Replace All" ( #11310 )
...
Wrong use of wrapAround here
2020-12-15 09:46:32 +01:00
Juergen Spitzmueller
34c166f45f
One more nullptr
2020-12-15 08:53:41 +01:00
Juergen Spitzmueller
ece5b8818d
More readable latex color (on button and workarea) in dark mode
2020-12-15 08:53:06 +01:00
Juergen Spitzmueller
47de618de8
Fix nullptr warning
2020-12-15 08:36:17 +01:00
Richard Kimberly Heck
5e6c5f407a
Fix thinko
2020-12-14 23:40:28 -05:00
Kornel Benko
d384136ff9
Find-Adv: A try to handle cyrillic chars also in regexp-mode
2020-12-14 20:43:39 +01:00
Juergen Spitzmueller
2d553ec5b9
Amend 24b71d30d5
( #12048 )
2020-12-14 14:19:08 +01:00
Pavel Sanda
2db26ff522
Compile on older gcc.
2020-12-14 00:01:05 +01:00
Yuriy Skalko
bda4570400
Use new signal library nod
instead of boost::signals2
...
Thanks Enrico for updating autotools files.
2020-12-13 23:11:19 +02:00
Juergen Spitzmueller
148748b0c2
Make InsetInfo math/IPA icons visible in dark mode
...
This does not show the real colors, but the icons are at least readable.
2020-12-13 09:51:32 +01:00
Juergen Spitzmueller
e6e30caca5
Do not forceLTR in InsetHyperlink ( #12044 )
...
This can also be RTL text
2020-12-13 05:54:48 +01:00
Juergen Spitzmueller
39a28b4b27
Whitespace
2020-12-13 05:08:11 +01:00
Juergen Spitzmueller
33fb7ed258
Ditch deprecation warning
2020-12-12 14:16:34 +01:00
Juergen Spitzmueller
882f06121b
Use semantic latex and math colors for dark theme icon overlay
2020-12-12 10:56:51 +01:00
Juergen Spitzmueller
704331fdcd
Add dark theme colors to semantic colors ( #8325 )
2020-12-12 10:56:05 +01:00
Stephan Witt
7b41faabae
amend 99b1488f0e
- on Mac the include is needed
2020-12-11 18:42:04 +01:00
Juergen Spitzmueller
91026711ae
Introduce semantic label colors
...
This allows customization e.g. in dark mode and is a prerequisite
for color theming
Part of #8325
2020-12-11 11:44:45 +01:00
Juergen Spitzmueller
a06cdfa073
Adapt math and IPA panels to dark theme ( #5636 )
2020-12-11 09:08:41 +01:00
Juergen Spitzmueller
b2ab394832
Remove unused function
2020-12-11 09:08:10 +01:00
Yuriy Skalko
9348c5c635
Use to_string
instead of boost::lexical_cast
2020-12-10 20:14:40 +02:00
Yuriy Skalko
5999dd96e6
Remove unnecessary c_str
2020-12-10 20:14:31 +02:00
Jean-Marc Lasgouttes
69c46c56fe
Preserve paragraph depth when dissolving.
...
It turns out that makeSameLayout() does more than we want.
Fixes bug #11981 .
2020-12-10 18:34:07 +01:00
Kornel Benko
2d2e2f1c6d
Adv-Search: Use some free unicodes as replacement for searched spaces
...
Without this, it is difficult to find backslashed macros if in regexp-mode.
2020-12-10 11:36:09 +01:00
Juergen Spitzmueller
f9b817676a
Search ipa image dir befor top dir
...
Else the unknown icon is found before the proper icon.
This unbreaks IPA panel top icons
2020-12-10 07:08:04 +01:00
Jean-Marc Lasgouttes
d9c39232ac
Reduce the amount of needed boost headers
...
boost/signals2.hpp is a convenience header, it seems that
boost/signals2/signal.hpp is enough for our needs.
This allows to get rid of 6MiB of header files in 3rdparty/boost (and
probably to speed-up compilation).
2020-12-09 14:50:18 +01:00
Jean-Marc Lasgouttes
99fb1c7003
Overhaul (no)limits support
...
- Add limits support to InsetMathScript
- Add limits support to InsetMathClass
- Fix bug where limits changing is disabled in inline math
Now the MathData objects remember whether they are in diaply mode.
Fixes bug #12045 .
2020-12-09 14:10:17 +01:00
Pavel Sanda
a222a2eab6
Hint message when .lyx dir can not be created.
...
Useful for scripts running without standard homedir environments,
cf https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816173
2020-12-08 09:53:38 +01:00
Jean-Marc Lasgouttes
1dcb08104c
Make spellchecker work in read-only document
...
Mistakes are visible but word replacement is disabled. Disable relevant
widgets depending on the situation.
Move updateView code to SpellcheckerWidget::Private.
2020-12-07 18:33:45 +01:00
Yuriy Skalko
ccbfd22f56
Move implementation details to constructors. Amend 78f457796c
2020-12-06 20:51:11 +02:00
Pavel Sanda
2f3d0653b3
Fix compilation
2020-12-06 18:37:38 +01:00
Yuriy Skalko
3e7ccc367a
Use range-based for loops
2020-12-06 18:26:56 +02:00
Yuriy Skalko
e292dd70bf
More enums & includes refactoring
2020-12-06 18:26:41 +02:00
Juergen Spitzmueller
b57b4a3e12
Clarify documentation if "Keep change markup on paste" pref
2020-12-06 17:04:17 +01:00
Richard Kimberly Heck
842fd8a74d
Use LOCK in all cases
2020-12-06 10:57:20 -05:00
Yuriy Skalko
78f457796c
Implement proper Dialog factory instead of implicit link-time dependencies
2020-12-06 17:37:39 +02:00
Juergen Spitzmueller
22193601bf
Always mark pasted stuff as changed with ct on
...
independent of "Keep change tracking markup on copy and paste" pref.
Probably addresses #11973
2020-12-06 10:00:47 +01:00
Richard Kimberly Heck
c978137f99
Disable Edit Externally for read-only Buffers.
2020-12-06 00:14:23 -05:00
Richard Kimberly Heck
16834a32ad
Use LOCK symbol with Minimalistic decoration, too.
...
In that case, we force a button with just the lock.
2020-12-05 21:25:05 -05:00
Richard Kimberly Heck
877a46f7b0
Use a lock symbol to indicate when an inset is being edited externally.
...
Good idea from Scott.
2020-12-05 21:16:17 -05:00
Richard Kimberly Heck
ad887798c9
Renaming
2020-12-05 20:30:45 -05:00
Richard Kimberly Heck
742348262e
Fix bug #12033 .
...
Silly mistake: Only considered the parent, not grandparents, etc.
2020-12-05 20:30:45 -05:00
Richard Kimberly Heck
41216228c0
Change name in source files
2020-12-05 17:17:02 -05:00
Thibaut Cuvelier
0c5e10f36b
This should fix a few type-conversion warnings.
2020-12-05 22:52:41 +01:00
Richard Kimberly Heck
d31891c6bf
Use LaTeXName of counter in LaTeX output.
...
Fixes an oversight noticed by Scott.
2020-12-05 16:46:33 -05:00
Richard Kimberly Heck
ae2ce7a86a
LaTeXName tag for counters. Layout format change.
2020-12-05 16:46:33 -05:00
Jean-Marc Lasgouttes
4f8cfca117
Update handling of read-only for Thesaurus
...
Remove dummy calls to ButtonController::addReadOnly().
Properly disable stuff for read-only documents.
Streamline code.
2020-12-05 20:27:46 +01:00
Jean-Marc Lasgouttes
f02311241a
Make Merge Changes dialog work in read only.
...
Make LFUN_CHANGES_MERGE active in read-only documents.
Remove dummy call to ButtonController::addReadonly and replace with
proper code.
2020-12-05 19:53:30 +01:00
Jean-Marc Lasgouttes
e561358be9
Move stuff
2020-12-05 19:45:09 +01:00
Pavel Sanda
b670990bc1
Improve VCS error message when RCS is not installed.
...
User's report that it takes time to realize what package
is 'ci' part of, so we can give a hint for the initial
file registration.
2020-12-04 18:16:44 +01:00
Jean-Marc Lasgouttes
c30b0aac4b
Disable some Adv F&R widgets for read-only documents
2020-12-03 18:04:23 +01:00
Jean-Marc Lasgouttes
24b71d30d5
Fix disabling of widgets for (simple) Search dialog
...
This allows to remove the calls to ButtonController::addReadonly,
which are placebo since 78ade7e6
.
2020-12-03 15:44:55 +01:00
Juergen Spitzmueller
e3f7f18440
amend a204dbe934
2020-12-03 14:51:05 +01:00
Juergen Spitzmueller
a04d30a650
tex2lyx: prevent \; \: and \! to be converted in tipa and algorithm
...
These commands have special meanings there.
2020-12-03 14:49:01 +01:00
Juergen Spitzmueller
a204dbe934
Escape backslash in comments
2020-12-03 14:47:34 +01:00
Juergen Spitzmueller
c93d5d76fa
tex2lyx: support all space type in texted
2020-12-03 11:12:55 +01:00
Juergen Spitzmueller
de2be5bdaa
Recent LaTeX includes all math and text spaces
...
amsmath no longer required here.
2020-12-03 10:49:18 +01:00
Juergen Spitzmueller
7b6bb23b87
Move dummy bool a bit closer to context
2020-12-03 08:50:43 +01:00
Juergen Spitzmueller
4a13a29042
Add empty line after last \bibitem in bibliography ( #12041 )
2020-12-03 07:46:39 +01:00
Yuriy Skalko
9cb98136ce
Cleanup headers
2020-12-03 00:38:27 +02:00
Yuriy Skalko
efaffb897d
Simplify InsetMathGrid structs
2020-12-03 00:38:18 +02:00
Yuriy Skalko
1dd676bed1
Simplify FuncRequest constructors
2020-12-03 00:38:12 +02:00
Yuriy Skalko
e0f553b941
Fix warnings and use range-based loop
2020-12-03 00:38:05 +02:00
Juergen Spitzmueller
0424f297b8
Update tex2lyx tests
2020-12-02 17:01:21 +01:00
Juergen Spitzmueller
e9cbd69f6e
Implement Hungarian quotation marks style ( #12040 )
...
File format change
2020-12-02 17:00:40 +01:00
Juergen Spitzmueller
b2ca2d1e3a
Fix listpreamble breakage by 6f643e52d4
2020-12-02 15:25:14 +01:00
Juergen Spitzmueller
fedd9bf4d0
Do not reset font in preview inset
2020-12-02 15:03:21 +01:00
Juergen Spitzmueller
560d2df70c
Capitalization fixes
2020-12-02 14:52:51 +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
Jean-Marc Lasgouttes
f41ca959fd
Reduce top/bottom margin for Adv F&R workareas
2020-12-01 12:01:20 +01:00
Jean-Marc Lasgouttes
26135330bc
Simplify GuiWorkarea::Private constructor
...
Also use the newly introduced platformName() for Qt4.
2020-12-01 11:26:01 +01:00
Yuriy Skalko
c0a5987181
Better naming for enums
2020-12-01 00:46:21 +02:00
Yuriy Skalko
890ca6df7b
Refactor KernelDocType enum
2020-12-01 00:46:16 +02:00
Yuriy Skalko
6354ad60b4
Refactor InsetQuotes.h enums
2020-12-01 00:46:09 +02:00
Yuriy Skalko
66403b4449
Remove useless breaks
2020-12-01 00:46:02 +02:00
Pavel Sanda
2ab39fe121
Fix compilation on older gccs.
2020-11-30 12:21:56 +01:00
Yuriy Skalko
ec5c7b905b
Move Inset.h include from .h to .cpp
2020-11-30 13:05:08 +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
Yuriy Skalko
19f5aa58aa
Simplify DocIterator
2020-11-30 13:04:58 +02:00
Yuriy Skalko
99b1488f0e
Cleanup included headers
2020-11-30 13:04:54 +02:00
Enrico Forestieri
0d204c4e87
Fix compilation on cygwin
2020-11-30 11:32:35 +01:00
Kornel Benko
a171c651a6
Revert "Amend 3093789e
for cmake build"
...
This reverts commit b3d43404f4
.
2020-11-30 10:19:22 +01:00
Yuriy Skalko
89d05890bf
Simplify KeyModifier
2020-11-30 10:44:28 +02:00
Thibaut Cuvelier
877806f208
DocBook: implement SciPoster.
2020-11-29 22:54:03 +01: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
a8de4d3296
DocBook: clean the special-case code.
2020-11-29 22:54:02 +01:00
Yuriy Skalko
7779316e6c
Include standard <regex>
2020-11-29 15:27:28 +02:00
Kornel Benko
b3d43404f4
Amend 3093789e
for cmake build
2020-11-29 10:04:54 +01:00
Yuriy Skalko
075ae38ec9
Use correct std header
2020-11-29 10:49:59 +02:00
Yuriy Skalko
00d07d6732
Remove unused Counters::copy
2020-11-29 00:25:27 +02:00
Yuriy Skalko
9b0cd3c970
Fix buffer over-read on last Unicode code points
2020-11-29 00:25:24 +02:00
Yuriy Skalko
ad7c5568cd
Make InsetIterator compatible with range-based loops
2020-11-29 00:25:19 +02:00
Yuriy Skalko
813eb0f9f7
Cleanup included headers
2020-11-29 00:25:14 +02:00
Yuriy Skalko
e97daf9e13
Use range-based loops
2020-11-29 00:25:09 +02:00
Jean-Marc Lasgouttes
3093789e8d
remove most traces of boost::regex
...
1/ remove boost regex code from 3rdparty/boost. Only the cmake stuff remains.
2/ remove traces of BOOST_LIB since there is no need anymore to
compile boost stuff.
3/ remove traces of boost regexp in config/lyxinclude.m4 and INSTALL
4/ require gcc 4.9 as minimal version in autoconf.
Unfortunately, the net gain is only 10% of included boost size (now 21M).
2020-11-28 19:59:17 +01:00
Thibaut Cuvelier
a6cc62f6ee
DocBook: ignore fonts in ERT.
...
Also, mark a Slides test as passing, because it is valid DocBook (but not really useful).
2020-11-28 05:15:34 +01:00
Thibaut Cuvelier
633a617841
DocBook: implement Copernicus.
...
Includes a fix when wrappers are used with empty paragraphs. The logic is probably wrong if two legit wrapped paragraphs have one empty paragraph in the middle. This is only for slightly convoluted cases... Wrapping decisions should rather be taken for a series of paragraphs at once, but it would be more complex to implement and would only solve very peculiar cases like these ones.
2020-11-28 04:56:19 +01:00
Thibaut Cuvelier
14cfcf00cb
DocBook: implement AEA and APA.
2020-11-28 00:51:35 +01:00
Thibaut Cuvelier
7437a6ce3c
DocBook: fix regression in floats.
...
Also implement a valid filler for tables.
2020-11-27 23:44:48 +01:00
Thibaut Cuvelier
dfb1ad85fa
amend bd9dce3749
...
Fix warning, add a comment while I'm there
2020-11-27 17:59:35 +01:00
Yuriy Skalko
f3ec89cfa1
Always use std::regex
...
Since now minimum supported GCC is 4.9.
2020-11-27 12:39:59 +02:00
Yuriy Skalko
fdefff1108
Fix signed integer overflow on x = 0, detected by GCC sanitizer
2020-11-27 12:17:22 +02:00
Yuriy Skalko
8793c2eed9
Replace ;;
2020-11-27 12:16:54 +02:00
Yuriy Skalko
59e2becdd8
Use iround function, amend c0ce79452f
2020-11-27 12:16:50 +02:00
Yuriy Skalko
8cb728c2d7
Constify
2020-11-27 12:16:45 +02:00
Yuriy Skalko
816512879d
Use to_string function
2020-11-27 12:16:41 +02:00
Yuriy Skalko
6a21ec854b
Move several common types to support/types.h
2020-11-27 12:16:22 +02:00
Jean-Marc Lasgouttes
4b15d64f51
Remove deprecated enum value with Qt5
2020-11-27 10:23:49 +01:00
Thibaut Cuvelier
bd9dce3749
DocBook: bug fixes for JASA.
...
Includes more consistent behaviour for bibliographies in appendix (do the same as LyX shows the user, i.e. bibliography in appendix).
2020-11-27 05:53:46 +01:00
Thibaut Cuvelier
3f07ae9083
DocBook: for empty figures, output a message.
...
This ensures that this part of the DocBook file is valid.
2020-11-27 05:19:27 +01:00
Thibaut Cuvelier
6201158e5d
DocBook: fix appendices.
2020-11-27 02:50:03 +01:00
Thibaut Cuvelier
587f1f5571
DocBook: implement Mathematical Monthly.
2020-11-27 01:54:00 +01:00
Thibaut Cuvelier
46d90b3415
amend dae0640436
...
Fix a warning in the code.
2020-11-26 23:33:03 +01:00
Scott Kostyshak
9649e80c44
Fix Clang warning about struct/class mismatch
...
CaretGeometry is defined as a struct, but was forward-declared as a
class. Now we forward-declare as a struct. This addresses the
following Clang warning (that does not appear with GCC):
src/frontends/CaretGeometry.h:27:1: warning: 'CaretGeometry' defined
as a struct here but previously declared as a class; this is valid,
but may result in linker errors under the Microsoft C++ ABI
[-Wmismatched-tags]
2020-11-26 13:51:12 -05:00
Jean-Marc Lasgouttes
c68be9a9be
Improve some debug messages
...
The current code did not give much information.
I am not sure why the <<FontInfo operator is not defined in
FontInfo.h, but I figured that it was not necessary to understand that
now.
2020-11-26 11:09:17 +01:00
Thibaut Cuvelier
eaf9460909
DocBook: make empty bibliographies empty.
...
Even though this means that there is no output tag.
2020-11-26 06:55:49 +01:00
Thibaut Cuvelier
ed6fbdd249
DocBook: implement Kluwer.
...
Includes an assertion fix that only occurred with this example.
2020-11-26 06:41:13 +01:00
Thibaut Cuvelier
dae0640436
DocBook: implement REVTeX.
...
Improvements to abstract detection: it can now contain lists or anything with a higher depth.
Implement video floats.
2020-11-26 06:22:27 +01:00
Yuriy Skalko
11434df35d
Fix warnings regarding switches on enum values
2020-11-25 23:16:56 +02:00
Yuriy Skalko
0a8d3c9887
Fix loop variable, amend d8e8a93a58
2020-11-25 23:16:51 +02:00
Yuriy Skalko
43477730a4
Better PNG detection in guessFormatFromContents
2020-11-25 23:16:45 +02:00
Scott Kostyshak
c81bb47e49
Catch exception if LaTeX fails for child preview
...
The exception is raised when an included file fails to export
because e.g. it is from a newer version of LyX or because an
intermediate command such as knitr fails.
The exception was introduced at 1a374a93
so that the export of a
document exits with error if an included document exports with
error.
This commit catches the exception when the LaTeX is asked for in
order to generate a preview of the included file.
2020-11-25 15:34:58 -05:00
Yuriy Skalko
8e60182f58
Simplify InsetQuotes constructors
2020-11-25 02:43:43 +02:00
Yuriy Skalko
fe0ea7bff7
Add default TransformID enum value
2020-11-25 02:43:35 +02:00
Yuriy Skalko
b3be47765b
Fix memory leak
2020-11-25 02:43:26 +02:00
Yuriy Skalko
43b16548b4
Cleanup headers
2020-11-25 02:43:16 +02:00