Pavel Sanda
db52066d6a
Typo
2020-12-19 18:29:10 +01:00
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
Richard Kimberly Heck
2ae77d5091
Only set buffer if it is not null.
...
Yuriy found these specific problems. They do not cause a crash, but
they are not good.
2020-11-24 17:07:16 -05:00
Richard Kimberly Heck
5691b89858
nullptr
2020-11-24 17:07:16 -05:00
Jean-Marc Lasgouttes
8673c5ac28
Forgot this.
2020-11-24 21:20:25 +01:00
Jean-Marc Lasgouttes
1b3ffa6627
Rewrite (again!) the code for caret drawing
...
The caret geometry is now computed in BufferView as a list of shapes
(caret, horizontal l-shape if needed, completion triangle if needed)
kept in a variable of type CaretGeometry.
The code in WorkArea.cpp only has to draw these shapes. The
CaretWidget (which never was a widget) in GuiWorkArea.cpp is gone
now.
As a consequence, the bounding box for the cursor is known precisely
and therefore rows should be repainted correctly now. This avoids
caret droppings.
Fixes bug #12024 .
2020-11-24 20:12:42 +01:00
Juergen Spitzmueller
4487af367c
Do not \cprotect \textcolor
...
Fixes #12034
2020-11-24 15:19:56 +01:00
Kornel Benko
be50eb507f
Adv-Find: Add handling for \cdot (at least if using format-search
2020-11-23 21:55:13 +01:00
Jean-Marc Lasgouttes
7a28258d32
(almost) Proper fix for caret droppings
...
Try to find the most inner row that is overwritten by the caret. This
allows to replace the hack in TextMetrics::draw, which did not really
work.
Note that there are still issues with emphasized caret at the
beginning of inset, which will require some code reorganisation.
Fixes current recipe of bug #12024 .
2020-11-21 20:00:26 +01:00
Jean-Marc Lasgouttes
d53b44273c
Compilation fix
2020-11-21 19:54:43 +01:00
Jean-Marc Lasgouttes
ba8ca0e384
Correct caret position from the start
2020-11-21 19:39:48 +01:00
Yuriy Skalko
8dfe07b5b5
Use std::any
when compiler supports C++17 or later
2020-11-21 20:32:51 +02:00
Yuriy Skalko
cbad214cdd
Refactor checksum calculation
2020-11-21 20:32:43 +02:00
Yuriy Skalko
0b1e0b8610
Remove unused headers
2020-11-21 20:32:30 +02:00
Yuriy Skalko
7ca2f2b58d
Use range-based loops
2020-11-21 20:32:16 +02:00
Jean-Marc Lasgouttes
2d27d033a6
Typo and reformatting
2020-11-21 19:13:29 +01:00
Pavel Sanda
4eb791ff18
Erase white frame in fullscreen mode.
...
Since Qt 5.9.4 one can't set negative margins unless explicitely
allowed by a new flag. This brought back the white frame in
fullscreen mode.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg214002.html
2020-11-21 16:02:54 +01:00
Yuriy Skalko
916ceeba12
Simplify Length
2020-11-21 00:32:47 +02:00
Yuriy Skalko
2941bc0198
Add more override
specifiers
2020-11-21 00:32:40 +02:00
Yuriy Skalko
09eba40418
Remove unused header
2020-11-21 00:32:35 +02:00
Thibaut Cuvelier
2bbfc726c4
amend 2c6537ff
for C++11 compatibility
2020-11-20 21:59:22 +01:00
Thibaut Cuvelier
1176fab1d4
DocBook: make InsetText respect tag types.
2020-11-20 18:41:03 +01:00
Thibaut Cuvelier
3a02251bfa
XML: move higher-level tag-opening and closing functions to xml namespace.
2020-11-20 18:41:03 +01:00
Thibaut Cuvelier
0fe3d05344
XML: add tag-type information in XML tags. It is not yet used.
2020-11-20 18:41:03 +01:00
Thibaut Cuvelier
f426e458c4
DocBook: InsetText supports items and wrappers.
2020-11-20 18:41:02 +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
Kornel Benko
5474c3fb4b
Missing '{'
2020-11-20 16:32:51 +01:00
Jean-Marc Lasgouttes
d8e8a93a58
Use range-based loops in GuiView
2020-11-20 15:14:21 +01:00
Yuriy Skalko
b56a64a8ef
Typo
2020-11-20 15:57:34 +02:00
Yuriy Skalko
f953d88c88
Simplify constructors
2020-11-20 15:57:26 +02:00
Jean-Marc Lasgouttes
a877cdb196
Do not set language from keyboard in passthru setting
2020-11-20 13:49:26 +01:00
Jean-Marc Lasgouttes
875b1def4f
Take right margin into account for text inset width
...
This is particularly important for contents in RtL languages, where
the right margin may contain the paragraph indentation, or
itemize/enumeration symbols.
Fixes bug #12030 .
2020-11-17 17:51:43 +01:00
Thibaut Cuvelier
c6fe1fbe5f
DocBook: implement svglobal.
2020-11-16 20:15:34 +01:00
Yuriy Skalko
888ff9c114
Amend 9b1dc338b2
. Fix compilation in GCC 4.9
2020-11-15 22:41:38 +02:00
Thibaut Cuvelier
dc94abf039
DocBook: specific fix for Localization_Test.lyx.
...
In one paragraph, there was both a float and a list of floats in a paragraph: the list of floats has no DocBook output, so that there should be no surrounding <para>.
2020-11-15 19:04:21 +01:00
Thibaut Cuvelier
0ed820fa0b
DocBook: fix for nomenclature xml:id and glossary paragraphs.
...
Previously, the xml:id's were not consistent among <glossterm> in the text and <glossentry> in the glossary.
2020-11-15 18:43:58 +01:00
Sam Crawley
f457a32a13
Fix issue in running compare from the command line
...
Because Compare uses threads, we need to make sure it is finished when a
compare is executed from the command line. This was a problem for command
sequences, because the next command would start running before the compare
was done, and the buffer with differences was available.
So this commit adds the "run-blocking" parameter when using
LFUN_DIALOG_SHOW to run a Compare. When calling Compare with run-sync, the
LFUN will wait for the compare worker thread to finish before returning and
possibly running the next command.
2020-11-15 10:35:28 +01:00
Thibaut Cuvelier
46cbd6d234
DocBook: refactor code about retrieving captions and labels.
...
There was already an existing method in InsetCaptionable for captions, but not yet for labels. It was at least already useful at two places, that's why I moved it to InsetCaptionable.
2020-11-15 04:03:04 +01:00
Thibaut Cuvelier
c4bbff8ecb
DocBook: fix handling of listings with titles.
...
Also implement a code path for inline listings.
2020-11-15 04:03:04 +01:00
Thibaut Cuvelier
46daa3865b
DocBook: missing support for customisation of layouts in inset arguments.
2020-11-15 04:03:04 +01:00
Thibaut Cuvelier
6bc04367cf
DocBook: add support for IGNORE tags.
...
These paragraphs will simply have no output (no enclosing DocBook tag, no content). This change is as backward-compatible as possible: without this commit, the paragraphs will be output, but in an <IGNORE> tag (not much more can be achieved without this). It is mostly made for metadata and formatting instructions. (As opposed to NONE, which corresponds to outputting the paragraph without enclosing DocBook tag.)
2020-11-15 04:03:04 +01:00
Jean-Marc Lasgouttes
222a317dd2
Store correctly the window position with Wayland
...
To do this, hard-coded test for xcb had to be replaced with a call to
platformName(). Since this method does not exist in Qt4, we emulate
it.
Note that Qt5 uses xcb bindings for X11 system, while Qt4 relies on
older X11 bindings. We return platorm == "qt4x11" in this case.
Fixes bug #11746 .
2020-11-14 17:55:59 +01:00
Yuriy Skalko
9b1dc338b2
Simplify Changers
2020-11-12 14:22:00 +02:00
Thibaut Cuvelier
14887dda1c
DocBook: implement achemso.
2020-11-12 03:18:03 +01:00
Richard Kimberly Heck
fdd0a6f849
Revert "Improve structure of updateMacros"
...
The problem here is that the check against TEXT_CODE only
catches InsetText, and not its subclasses. Same for the check
against MATH_HULL_CODE. So there is reason not to check codes
here.
This reverts commit 5a54ccfa87
.
2020-11-11 11:26:11 -05:00
Jean-Marc Lasgouttes
63300c3ba8
Fixup aeb51be9
: set current font correctly when editing inset
...
When using InsetText::edit(), invoke Cursor::setCurrentFont (note that
editXY does it already). It is a good idea in general, especially
after commit 411333fa95
, which sets languagecorrectly in ERT.
This allows to comment out (again!) the trick added to fix ticket #9042 .
2020-11-10 15:43:48 +01:00
Jean-Marc Lasgouttes
411333fa95
Make sure that Cursor::setCurrentFont sets LaTeX language in ERT&friends
...
Fix issue when language is set to document language instead of
latex_language in ERT and pass thru layouts.
To trigger the issue
1/ select all in a ERT inset
2/ type "abc"
3/ look at code in code preview pane
==> result: the "a" is in document language, the "bc" in LaTeX language
(as should be)
2020-11-10 14:09:31 +01:00
Yuriy Skalko
437fef65aa
Simplify operator== for ParConstIterator
...
Comment out it while it is unused.
2020-11-08 23:29:20 +02:00
Yuriy Skalko
589e780e15
Whitespace & renaming
2020-11-06 21:34:02 +02:00
Yuriy Skalko
01e673635b
MacroData refactoring
2020-11-06 21:33:56 +02:00
Yuriy Skalko
5a54ccfa87
Improve structure of updateMacros
2020-11-06 21:33:41 +02:00
Richard Kimberly Heck
97ecf71016
Remove dead comment
2020-11-06 11:30:07 -05:00
Richard Kimberly Heck
5bd498c56d
Move trivial constructors into header. Remove unimplemented one.
2020-11-06 11:30:07 -05:00
Thibaut Cuvelier
1766bff806
DocBook: remove special options from InsetGraphics.cpp
...
This was not really a useful attribute for DocBook, or it must be parsed beforehand.
2020-11-05 05:35:34 +01:00
Thibaut Cuvelier
85a8664ba5
MathML: make InsetMathXArrow generate valid XML entities when required.
...
Before this, it only supported HTML entities.
2020-11-05 02:18:47 +01:00
Thibaut Cuvelier
7f8d0fd7b7
DocBook: ensure that tables do not get wrapped in a paragraph.
2020-11-05 02:03:34 +01:00
Thibaut Cuvelier
307aefef89
DocBook: don't consider bridgeheads for abstracts.
2020-11-05 00:02:59 +01:00
Jean-Marc Lasgouttes
4094afaf2e
Indentation
2020-11-03 15:12:20 +01:00
Richard Kimberly Heck
060c3de2f0
StepMasterCounter --> StepParentCounter
2020-11-02 17:36:58 -05:00
Richard Kimberly Heck
fba1c434e5
Revert "Fix a number of signedness warnings"
...
This reverts commit e8a28c33c5
.
I was not aware that we used negative numbers for author IDs!
2020-11-02 17:09:59 -05:00
Richard Kimberly Heck
39f997048e
Remove 'slave' terminology from Counters.cpp.
...
And with it, 'master'. That is less problematic by itself (so I'm not
worried about 'master document'), but here it doesn't make a lot of
sense without 'slave'.
2020-11-02 17:09:59 -05:00
Yuriy Skalko
8a25741ccd
Use default member initialization in OutputParams
2020-11-02 20:30:01 +02:00
Richard Kimberly Heck
e8a28c33c5
Fix a number of signedness warnings
2020-11-02 12:03:37 -05:00
Richard Kimberly Heck
cfd19d86be
whitespace and style
2020-11-02 11:45:09 -05:00
Richard Kimberly Heck
2945bc356e
whitespace
2020-11-02 11:38:52 -05:00
Yuriy Skalko
c7d0ba0f26
Simplify bformat
2020-11-02 11:54:40 +02:00
Thibaut Cuvelier
ebfdac4fa3
DocBook: implement svmult.
...
More generally, ensures that paragraphs in abstracts do not have something else configured.
A major problem in making the layout more useful is that article titles are not supposed to be in TOC.
2020-11-02 04:30:39 +01:00
Richard Kimberly Heck
679ce23ddc
Some constness, following Yuriy
2020-11-01 17:37:28 -05:00
Yuriy Skalko
1fdcd7bf14
Constify LaTeXFont
2020-11-01 22:25:08 +02:00
Yuriy Skalko
81a5e7927b
Use default member initialization
2020-11-01 22:25:03 +02:00
Yuriy Skalko
6f514da5fd
Use bool literals
2020-11-01 22:24:48 +02:00
Yuriy Skalko
9c47e736f8
Constify InsetQuotesParams
2020-11-01 22:24:31 +02:00
Yuriy Skalko
d38eddb397
Match header/source function argument naming
2020-11-01 22:23:44 +02:00
Yuriy Skalko
5061db891c
Use const references
2020-11-01 22:23:26 +02:00
Yuriy Skalko
6e65967e15
Use default member initialization in InsetLayout
2020-11-01 22:22:50 +02:00
Yuriy Skalko
dbe35af542
Simplify with std::map::insert
2020-11-01 22:22:27 +02:00
Richard Kimberly Heck
ca3077b40b
Change the logic of the indentation setting.
...
The option here is to NOT indent the paragraph, so make that clear.
As it was, we would set "Indent" to false in the case of paragraphs
that do not permit indentation and then write that, uselessly, to the
LyX file if we wrote any other option (and then keep writing it, even
if other options were removed). Now, we will write it only if it's been
explicitly set.
2020-10-30 13:34:36 -04:00
Richard Kimberly Heck
3b4b047576
Fix warning
2020-10-30 13:26:48 -04:00
Thibaut Cuvelier
df0ea858ed
DocBook: use the same normalisation for biblio IDs and their references.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
da6e999fc6
DocBook: more robust list implementation.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
6843bc5a38
DocBook: ensure to have paragraphs in <sidebar>.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
30572880ba
DocBook: fix an issue where parts of list in abstract were duplicated.
...
Excerpt from export/latex/lyxbugs-resolved/9633-languagenesting_enumerate_and_lyxcode.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
661c5d256b
DocBook: support for <info> tags in inner sections.
...
Previously, this code only worked correctly for the root tag.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
4405f0164a
DocBook: implement algorithm floats.
...
Now that https://github.com/docbook/docbook/pull/185 has been merged into DocBook 5.2.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
f2b7f8a089
DocBook: generate chapter metadata in <info>, for Springer mono.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
b816cb0f3c
DocBook: don't consider sectioning items that shouldn't be in TOC for anything section-related.
2020-10-30 01:59:34 +01:00
Thibaut Cuvelier
149e1ccc02
DocBook: add DocBookSection parameter for styles that define new sections and implement argument parameters; improve Springer support.
...
For elements that should behave like sections (for now, mostly prefaces).
A second paragraph of PartBacktext can only wreak havok: it should start a section, and nothing else (otherwise, it's a real nightmare to implement).
2020-10-30 01:59:34 +01:00
Richard Kimberly Heck
cc1d3b78c9
Const
2020-10-29 18:25:33 -04:00
Yuriy Skalko
b8737e898c
Simplify DispatchResult ctors
2020-10-29 15:52:38 +02:00
Yuriy Skalko
d8ead7debf
Use nullptr
2020-10-29 15:52:33 +02:00
Yuriy Skalko
524073d09f
Move HullType functions declared in InsetMath.h into InsetMath.cpp
2020-10-29 15:52:28 +02:00
Yuriy Skalko
f1926251c0
Move Windows-specific stuff into os_win32.h
2020-10-25 19:59:03 +02:00
Yuriy Skalko
10272e4747
Move include of own header to the top. Fix dependencies
2020-10-25 19:58:57 +02:00
Yuriy Skalko
4ece87c324
Fix obsoleted Qt values
...
All new values exist in Qt 4.8.7.
2020-10-25 09:28:46 +02:00
Yuriy Skalko
1b508fff03
Small refactorings
2020-10-25 09:28:41 +02:00
Yuriy Skalko
a7018252b7
Constify
2020-10-25 09:28:34 +02:00
Jean-Marc Lasgouttes
21422dd652
Replace QFontMetrics::width() by horizontalAdvance() in Qt>=5.11
...
The method horizontalAdvance() replaces width() starting with Qt 5.11.
To handle this, all direct calls to QFontMetrics::width() are replaced
by calls to GuiFontMetrics::width(), and the code for
GuiFontMetrics::width(QChar) uses horizontalAdvance on newer Qt
versions.
2020-10-24 19:52:18 +02:00
Yuriy Skalko
69f838bbf3
Fix isSpace for docstring
2020-10-24 18:55:05 +03: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
Enrico Forestieri
d2d33a6a1f
Fix compilation on cygwin
2020-10-23 15:00:23 +02:00
Yuriy Skalko
c928714b0b
Unify naming of menu items
2020-10-23 10:23:01 +03:00
Jean-Marc Lasgouttes
2395522aa7
Revert "Do not set language from keyboard in passthru setting"
...
This reverts commit d94bd07264
.
2020-10-21 18:50:31 +02:00
Jean-Marc Lasgouttes
526b4b0d79
Revert "Fix compilation mess in d94bd0726"
...
This reverts commit abaf2e9bda
.
2020-10-21 18:50:10 +02:00
Jean-Marc Lasgouttes
abaf2e9bda
Fix compilation mess in d94bd0726
2020-10-21 18:37:22 +02:00
Jean-Marc Lasgouttes
d94bd07264
Do not set language from keyboard in passthru setting
2020-10-21 18:09:31 +02:00
Pavel Sanda
5d0b1b640b
Make master compilable again with older gcc.
2020-10-21 00:01:03 +02:00
Yuriy Skalko
196d9caeb0
Clean includes using the output of iwyu tool
2020-10-20 11:38:55 +03:00
Thibaut Cuvelier
d1b9af3b1d
DocBook: fix file inclusion.
...
Previously, nothing was output. Special care was needed for when new paragraphs should be open (this work is probably not finished yet).
2020-10-20 02:34:02 +02:00
Yuriy Skalko
af29f02dd8
Reduce includes in header files (2)
2020-10-19 18:01:17 +03:00
Yuriy Skalko
d25c10ed81
Remove duplicate and unused header includes in .cpp files
2020-10-19 18:01:11 +03:00
Yuriy Skalko
fa6ac23e1c
Reduce includes in header files
2020-10-19 17:33:51 +03:00
Yuriy Skalko
65c88f0a0a
Remove redundant const &
for primitive types
2020-10-19 12:50:07 +03:00
Thibaut Cuvelier
7be7026386
DocBook: generalise detection of "special cases" to check all insets of a paragraph.
...
This will catch cases where there are multiple listings in a single paragraph, for instance.
The new code is also less brittle (checks on lyxCode instead of generated LaTeX or names).
2020-10-18 08:23:37 +02:00
Thibaut Cuvelier
739735ab73
DocBook: output inline equations in their own paragraph if they are the only inset of the paragraph.
...
It's invalid to have an <inlineequation> outside a paragraph. Another solution would have been to change InsetMathHull::docbook to generate an <informalequation>, but that function would have required more knowledge about its context than now.
Need more tests to determine if <inlineequation> should only be output for hullSimple or in more cases like:
const static std::set<HullType> inlineHulls = {
hullUnknown,
hullNone,
hullSimple,
hullEquation,
hullMultline,
hullGather,
hullRegexp
};
2020-10-18 08:23:36 +02:00
Jean-Marc Lasgouttes
c286cad565
Reset caret size when inserting text over a selection
2020-10-17 20:29:16 +02:00
Scott Kostyshak
1e3ef3c6e2
Update tex2lyx tests after the format change
...
The diff consists of only the format number, which is expected since
there is no instance of "\nopagebreak" in the .tex files.
2020-10-16 23:06:15 -04:00
Yuriy Skalko
b5cb23a92a
Remove unused headers in output_xhtml.h
2020-10-16 23:05:54 +03:00
Yuriy Skalko
a3eeb8a4b5
Clean math headers
2020-10-16 23:05:46 +03:00
Thibaut Cuvelier
0ba9b7c0c8
DocBook: fix an assertion/crash.
2020-10-16 17:02:24 +02:00
Yuriy Skalko
84365fc946
Move Author.h, Format.h from BufferParams.h
2020-10-16 08:02:51 +03:00
Yuriy Skalko
4c8d262996
Const refactor
2020-10-16 08:02:51 +03:00
Yuriy Skalko
ce0e192689
Move Cursor.h from TocWidget.h
2020-10-16 08:02:51 +03:00
Yuriy Skalko
fbefdb10a5
Move Cursor.h from Clipboard.h
2020-10-16 08:02:51 +03:00
Yuriy Skalko
7f40bb2b2d
Clean output_latex
2020-10-16 08:02:51 +03:00
Yuriy Skalko
65db7b31ad
Clean Cursor and CursorSlice
2020-10-16 08:02:51 +03:00
Yuriy Skalko
61bc850c27
Remove CutAndPaste.h from Trans.cpp
2020-10-16 08:02:51 +03:00
Yuriy Skalko
bea9d2f3f7
Clean includes in TextMetrics.cpp
2020-10-16 08:02:51 +03:00
Yuriy Skalko
da56091c2a
Clean includes in buffer_funcs.cpp
2020-10-16 08:02:51 +03:00
Thibaut Cuvelier
170866986c
Amend 82ea3d6
...
Test was done on the wrong data structure: the title is almost the only element ending up in shouldBeInInfo, it is never inmustBeInInfo.
2020-10-16 04:30:41 +02:00
Yuriy Skalko
36c8e06cf1
Move Dimension.h from InsetIPA.h
2020-10-15 19:26:16 +03:00
Yuriy Skalko
5ac65d1532
Move BufferParams.h from Language.h
2020-10-15 19:25:37 +03:00
Yuriy Skalko
87d19e1068
Remove BufferParams.h from BiblioInfo.h
2020-10-15 19:25:19 +03:00
Daniel Ramoeller
d5fe3337c6
Cleanup CutAndPaste.cpp
2020-10-15 10:24:00 +02:00
Richard Kimberly Heck
1f22a2520a
Fix linking problem by adding convert from string to unsigned long long.
2020-10-14 22:28:10 -04:00
Pavel Sanda
c0f9309300
Move <fstream> from support/gzstream.h
2020-10-14 15:12:48 +02:00
Pavel Sanda
644c1d3453
Move docstream.h from output_xhtml.h
2020-10-14 15:06:12 +02:00
Pavel Sanda
560ff6d40d
Move MetricsInfo.h from InsetMathSize.h
2020-10-14 14:58:18 +02:00
Pavel Sanda
2b02b73f4a
Move <QTimer> from TocWidget.h
2020-10-14 14:48:41 +02:00
Pavel Sanda
bd33601512
Move <QTimer> from GuiViewSource.h
2020-10-14 14:37:38 +02:00
Pavel Sanda
85eec10e4b
Move <QKeyEvent> from DockView.h
2020-10-14 14:35:29 +02:00
Pavel Sanda
61824e057e
Move GuiView.h from DockView.h
2020-10-14 14:28:47 +02:00
Pavel Sanda
57703d51c6
<QCloseEvent> DialogView.h -> DialogView.cpp
2020-10-14 13:57:30 +02:00
Pavel Sanda
f1b147cc97
include "GuiView.h": DialogView.h -> DialogView.cpp
2020-10-14 13:53:40 +02:00
Pavel Sanda
10fafd3bfe
<map> ParagraphMetrics.h -> TextMetrics.h
2020-10-14 13:14:58 +02:00
Pavel Sanda
da8b5de973
Move <algorithm> from DocIterator.h
2020-10-14 13:01:30 +02:00
Richard Kimberly Heck
b7f632ca1c
Fix bug #12002 .
...
Patch from Daniel.
2020-10-13 19:51:27 -04:00
Richard Kimberly Heck
1ff2de387d
Whitespace
2020-10-13 18:26:13 -04:00
Richard Kimberly Heck
28ae543a2a
Fix signed-ness warnings
2020-10-13 18:24:03 -04:00
Pavel Sanda
0ea9df7467
Add inset for \nopagebreak.
...
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg213388.html
2020-10-13 19:13:59 +02:00
Jean-Marc Lasgouttes
c516c86d19
Make cursor width depend on current font
...
This makes the cursor more visible wrt current font.
Moreover make the cursor width scalable by default.
2020-10-13 17:27:52 +02:00
Jean-Marc Lasgouttes
310c94c48c
Fix display of caret completion indicator
...
The zooming algorithm based on caret width was deeply flawed. It is
not replaced with a formula based on caret height.
Fixes bug #12000 .
2020-10-13 17:09:33 +02:00
Yuriy Skalko
2a594d3e90
Remove unused forward declarations
2020-10-13 09:57:36 +03:00
Thibaut Cuvelier
769578eac6
Fix typos in filetools.cpp.
2020-10-13 00:33:05 +02:00
Thibaut Cuvelier
82ea3d67ec
DocBook: documents must have a title.
2020-10-12 19:26:37 +02:00
Thibaut Cuvelier
92b9c82dea
Fix compilation on Visual C++.
...
Without this patch, there would be errors like these (warnings turned into errors):
D:\LyX\lyx-unstable\src\frontends\qt\GuiView.cpp(2413): error C4101: 'e': unreferenced local variable
D:\LyX\lyx-unstable\src\frontends\qt\GuiView.cpp(4879): error C4101: 'ex': unreferenced local variable
2020-10-12 19:21:58 +02:00
Yuriy Skalko
cb52dd2e42
Add override
in VCBackend
2020-10-12 15:14:55 +02:00
Yuriy Skalko
238fd9ac50
Right exception rethrowing
2020-10-12 15:14:55 +02:00
Yuriy Skalko
919a06718a
Constify
2020-10-12 15:06:16 +02:00
Richard Kimberly Heck
2dc4277452
Const
2020-10-10 17:12:50 -04:00
Richard Kimberly Heck
b28bd27932
Fix warning
2020-10-10 17:12:50 -04:00
Yuriy Skalko
7d38a4d126
Loop refactoring
2020-10-09 09:04:20 +03:00
Richard Kimberly Heck
b511d8d93e
Use 'delete' for unimplemented constructors.
...
Thanks Yuriy!
2020-10-07 11:05:54 -04:00
Thibaut Cuvelier
0bd2978ac9
DocBook: add DocBookInnerTag and family.
...
This allows old DocBook documents to be valid when output.
2020-10-07 06:05:22 +02: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
Richard Kimberly Heck
3d46cc302b
Use explicit default syntax (C++11).
...
Thanks to Jos'e for noticing this option.
2020-10-06 20:31:11 -04:00
Richard Kimberly Heck
0f417f2a06
Fix some warnings
2020-10-06 12:27:28 -04:00
Richard Kimberly Heck
bff97ba76d
Explicit InsetTableCell copy constructor
2020-10-06 12:20:31 -04:00
Pavel Sanda
ffbcac3dde
Add few examples for lineno options.
...
It's actually pretty hard to get that from the manual.
2020-10-06 15:05:11 +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
Jean-Marc Lasgouttes
c46f3b8f31
remove unused variable
2020-10-05 15:11:51 +02:00
Yuriy Skalko
c5ae08f0b8
Amend efc0877f
...
Add the last `override`s.
2020-10-05 15:03:13 +02:00
Yuriy Skalko
fe85162a29
Refactoring
2020-10-05 14:55:00 +02:00
Yuriy Skalko
d82adc625b
Amend efc0877f
...
Add more `override` specifiers. Replace `throw()` to `noexcept`.
2020-10-05 09:37:15 +02:00
Yuriy Skalko
14b0da28c2
Amend efc0877f
2020-10-03 21:17:17 +02:00
Yuriy Skalko
715b8cda54
Refactoring based on cppcheck suggestions
2020-10-03 13:39:51 +02:00
Kornel Benko
a43d8501a2
Do not use runparams.nice == true while exporting to docbook5
...
The setting implies that the variable external_in_tmpdir is set to false.
If a lyx-file includes external material for spreadsheet,
the conversion results are in tmpdir.
The routine doSubstitution() (insets/ExternalSupport.cpp:188) therefore
does nothing for the entry $$Contents because it uses wrong path.
2020-10-03 13:28:26 +02:00
Yuriy Skalko
efc0877f8f
Add override
specifiers to improve code maintainability
2020-10-03 12:43:48 +02:00
Juergen Spitzmueller
2330b4ce9c
Never mark references in inactive insets broken
...
This is the sledgehammer (and the only) way to omit broken refs if the
target is in an (or the same) inactive inset as well.
2020-10-03 08:54:06 +02:00
Richard Kimberly Heck
2afc68ede2
Whitespace
2020-10-02 13:11:28 -04:00
Jean-Marc Lasgouttes
dd65a97b55
Pass parameters as const references when possible
...
Fixes some cppcheck warnings.
2020-10-02 18:56:01 +02:00
Jean-Marc Lasgouttes
4d9a2c2e59
Fixup f96b99dc
: do not initialize cache too late
2020-10-02 12:17:57 +02:00
Jean-Marc Lasgouttes
a97b384b07
Fixup f96b99dc
: thinko
...
Setting the res value and returning from the function at the same time
does not make sense. After reflection, it is the "return" that shall
go.
No idea what effect it had.
2020-10-02 12:06:32 +02:00
Juergen Spitzmueller
8b155ce957
Refactoring
2020-10-02 08:30:31 +02:00
Juergen Spitzmueller
720179947e
tex2lyx: properly set textclass if no class is given
...
(snippets without \documentclass and no forced class)
2020-10-02 08:17:45 +02:00
Jean-Marc Lasgouttes
e16b9e8d22
Remove non-const version of ParagraphMetrics::getRow
...
Constify a bit TextMetrics::isRTLBoundary().
2020-10-01 14:58:18 +02:00
Jean-Marc Lasgouttes
a2b754b10b
Fixup 7d965319
: reset cursor font at a finer level
2020-10-01 14:19:09 +02:00
Jean-Marc Lasgouttes
7f1b1729b4
Cleanup the caret geometry code
...
Intended changes:
* code is shorter and cleaner
* caret scales better with zoom when cursor_width=0: completion
indicator, l-shaped cursor...
Details:
* Rename BufferView::getPosAndHeight to getPosAndDim because ascent is
needed too and width could in the future be set depending on font.
* Get rid of rect_ in CaretWidget and record a Dimension (and y value) instead.
Remove also caret_width_ and slant_, replace rtl_ with dir.
* Make CaretWidget members public and lose the trailing _.
* change CaretWidget::update to read its parameters from current bufferview.
2020-10-01 13:17:01 +02:00
Jean-Marc Lasgouttes
7d96531909
Fix bug where cursor size is not reset correctly.
...
A couple of calls to setCurrentFont fix the issue, but there has to be
more cases to catch. I am not sure why it used to work.
2020-10-01 12:44:38 +02:00
Jean-Marc Lasgouttes
f9aadae290
Get rid of helper Text::previousWord(), used only once
2020-09-29 10:15:31 +02:00
Richard Kimberly Heck
a41bcb3701
Error message
2020-09-28 22:45:44 -04:00
Richard Kimberly Heck
003a267764
We really do not want id to change
2020-09-28 22:20:22 -04:00
Richard Kimberly Heck
594401912b
Fix minor annoyance with previous commit.
...
When validating local layout, in particular, we create a dummy text TextClass
and so are not necessarily modifying previously declared material. Hence, we
get a spurious (but harmless) "Incomplete argument definition!" warning. This
suppresses it, but to do that we need to propogate the ReadType.
2020-09-28 22:07:08 -04:00
Richard Kimberly Heck
6f643e52d4
Allow argument definitions in layout files to modify existing ones.
...
This is what layout re-definitions do in all other cases.
2020-09-28 22:06:11 -04:00
Richard Kimberly Heck
54a72663ae
Move defaults into struct definition
2020-09-28 21:30:40 -04:00
Pavel Sanda
ad475adfd3
amend 6d6fc761be
2020-09-28 16:44:12 +02:00
Pavel Sanda
6d6fc761be
Qt4 compilable again
2020-09-28 16:34:42 +02:00
Yuriy Skalko
e47092044b
Use real italic slope for slanted caret
2020-09-28 14:30:05 +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
Enrico Forestieri
f0807a604c
Use correct bounding box when exporting from command line
...
Without GUI an image is not available even if it is actually cached.
In this case we load the image for obtaining its dimensions in order
to correct the clipping bounding box.
This amends 380f34a1
.
2020-09-25 20:58:40 +02:00
Enrico Forestieri
a8572c1358
Correct comment
2020-09-25 12:11:10 +02:00
Enrico Forestieri
9b1763cd42
Do not correct clipping bounding box for vector formats
...
This amends 380f34a1
that only took into account the postscript format.
2020-09-25 12:01:57 +02:00
Jean-Marc Lasgouttes
967f4d661e
Remove default parameter of UndoGroupHelper constructor
...
This can lead to mistakes. If no buffer is required at the beginning,
it is better to pass 'nullptr' explicitly.
Fix a case of missing parameter in GuiCompleter (introduced at
f3656600
). This avoids some spurious "There is no group open (creating
one)" messages.
2020-09-23 17:33:17 +02:00
Jean-Marc Lasgouttes
32b688225d
Do not use a fake row to compute completion dimension
...
The code in TextMetrics::completionPosAndDim is needlessly complicated.
1/ It is easier to rely directly on Text::getWord() rather than on the
helper previousWord().
2/ Using a fake row to compute completion height is overkill. A
simpler solution is proposed here.
No intended effect. These changes prepare the fix to ticket #11818 .
2020-09-22 15:11:08 +02:00
Juergen Spitzmueller
b814c4fda7
Fix unnecessary cprotect
2020-09-20 08:45:42 +02:00
Thibaut Cuvelier
da67bde61a
Revert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1, and not XHTML5."
...
This reverts commit c8e2c17a
: this makes some browsers unable to understand basic HTML entities.
2020-09-20 01:35:14 +02:00
Thibaut Cuvelier
44a7d2bc88
DocBook: adapt code for older GCC.
2020-09-19 23:55:07 +02:00
Thibaut Cuvelier
b5adcec28a
XHTML: fix for encodings in attributes (patch by Kornel)
2020-09-19 20:43:42 +02:00
Thibaut Cuvelier
c83fd0eb06
XHTML sections: saner code to close the section.
...
It only caused troubles in corner cases...
2020-09-19 20:43:42 +02:00
Thibaut Cuvelier
a85b4b88ed
XHTML sections: only filter out things that are not Sectioning, not based on the level.
2020-09-19 20:43:42 +02:00
Thibaut Cuvelier
0dfa240209
XHTML: restore sections.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
15dbc2b9ab
Revert "XHTML: remove <section> support."
...
This reverts commit 52216b73
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
c8e2c17a58
XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1, and not XHTML5.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
92ad86dacc
XHTML: remove <section> support.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
bfeb3b66b1
DocBook: slight code simplification.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
6c51cabd35
DocBook: fix output in Layout::write.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
50f011e062
DocBook: implement InsetBox titles.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
3711a38b9c
DocBook: fix a crash in bibliography paragraphs.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
1b818c448d
DocBook: work for more subfigure cases.
...
EmbeddedObjects hid quite a few gems :).
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
8758000641
DocBook: ensure xml:id is not output too many times.
...
This is mostly important for subfigures, but debugging this issue showed that InsetCaption could be slightly simplified and InsetLabel should be made a tad more robust.
2020-09-19 20:43:41 +02:00
Thibaut Cuvelier
d0a5ba4859
DocBook: handle other cases of subfigures.
2020-09-19 20:43:41 +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
5f0720e947
XHTML: fix generation of many useless </section>.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
faec783822
XML: bad fix for a crash that only happened in XHTML.
...
As an error is output, I suppose that this behaviour is OK.
2020-09-19 20:43:40 +02:00
Scott Kostyshak
a632a9ae3c
DocBook: remove useless functions.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
1a76fb9658
DocBook: avoid using isspace in StartTag::writeTag.
...
This is the cause of crashes (on both Windows and Linux).
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
2cd7a94f8b
DocBook: introduce Floating::docbookFloatType.
...
This ensures that all comparisons for DocBook are made on the same normalised version of the float type. This cased a strange bug where <table> was output within <informaltable> for Linguistics Tableaux.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
8ed8d36595
Fix two warnings in BufferView.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
40f4da3c9f
DocBook: floats can no more override DocBookTag.
...
This lead to a quite subtle bug. The major problem is that float tags
depend on whether the LyX float has a title (formal) or nor (informal).
This information cannot be encoded in the layout format as easily as a
simple DocBookTag.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
08a58242c1
DocBook: better output with the Linguistics module.
...
One issue left: <table> output within an <informaltable>, that does not make sense... I'm debugging it.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
abed1f3e6e
DocBook: fix crash with Linguistics example.
...
This was due to Floating::docbookTag not returning anything with the floattype_ tableau. Another issue that happened with that document is that the standard library's isspace crashed for some characters. I therefore implemented a more efficient version of the part that required it, and inlined the definition of isspace (even though that part becomes irrespective of locale, but was that feature ever used?).
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
e3da8b65f6
DocBook: several missing features for Additional.lyx.
...
Includes: semantic markup (sorry about noun: Additional.lyx uses it to mark menus; there is something better in DocBook, but it looks like the LaTeX equivalent is really for person names), boxes, info layouts.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
19734ea454
DocBook: implement LyX-Code.
...
This is quite ugly.
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
bc9d3ec262
DocBook: <person> is not valid per se, rather use <personname>.
...
The cleanest solution would still be <person><personname>, but this ought to be enough. Otherwise, that would imply having two tags for some fonts...
2020-09-19 20:43:40 +02:00
Thibaut Cuvelier
8f3d0fd88f
DocBook: new-line behaviour in bibliographies.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
6d246bba69
DocBook: fix margin notes.
...
They were nested twice in <sidebar>. Also fixes a new line issue.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
91982ee105
DocBook: new lines around formulae.
2020-09-19 20:43:39 +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
7a1b82a16a
DocBook: fix issue with fonts.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
c3aa843da8
DocBook: fixes in bibliography (missing new line at the end).
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
6688b076cc
DocBook: fixes in lists.
...
Actually output something when list item is empty. XMLStream discarded the sequence StartTag/EndTag (nothing in between).
New-line behaviour around term in description lists.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
5b01c80635
DocBook: fix titles in KOMA Script.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
976bd91fc2
DocBook: bug fixing with wrapper merging.
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
ec0f4885a7
DocBook: fix bibliographies (end of <bibliography> and sections).
2020-09-19 20:43:39 +02:00
Thibaut Cuvelier
642b18aad0
DocBook: generate <partintro> when required.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
17b06f5336
DocBook: streamline code to handle sections.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
f219fe1cd7
DocBook: streamline code to handle abstracts.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
a8da31e5e0
DocBook: fix handling of index end-of-range.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
78a361778f
DocBook: fix float tags (was unduly overridden).
...
The output was not valid for floats without title.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
39ad6e84f0
DocBook: improve equation formatting (new lines for block equations).
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
fc2c36289b
DocBook: rewrite makeListEnvironment.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
8656fbd520
DocBook: start splitting environment handling in two, to have proper things for lists.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
1bd49f9c39
DocBook: make all make* functions have the same argument order.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
fc0999a422
DocBook: partially remove use of bpit/epit in docbookParagraphs and docbookSimpleAllParagraphs.
...
This will help with the next refactoring to be much cleaner (only work with iterators, don't maintain twice the same information).
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
bfc67c59b4
XML: use the new mechanisms for CR detection with errors.
...
This helps tracking down line problems even in the presence of errors.
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
Thibaut Cuvelier
faaf780bed
DocBook: fix compilation issues.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
3d348818e0
DocBook: Coverity potential problem for precooked bibliographies.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
ac46456b28
DocBook: simplify precooked bibliography code.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
6a4d3dbef7
DocBook: remove useless includes.
2020-09-19 20:43:38 +02:00
Thibaut Cuvelier
d8651cc60b
More functions in anonymous namespace.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
25f72d392c
DocBook: fine tuning of new lines.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
bdea21a87e
DocBook: improve comments.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
9393ca74ba
DocBook: new logic to handle the new lines, only used in output_docbook for now.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
27a44f8e48
XML: memorise if the last thing that is getting output is a line feed.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
6998e76495
DocBook: define new arguments in layouts to configure new-line behaviour.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
87dae26e4a
Simplify code to generate only one paragraph at a time.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
9184ae14f0
A few more constants to avoid copies
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
dab71087cf
DocBook: add a layout tag to tell whether an item is the abstract or not.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
7b0f9d9524
DocBook: simplify code to handle abstracts.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
0f145c3ef0
DocBook: use DocBookWrapperMergeWithPrevious in the code.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
c92e0bc5e7
DocBook: fix for ordering.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
72c304a629
DocBook: make openParTag/closeTag use paragraphs instead of layouts.
...
Not useful per se, but will be next with checking whether the wrapper tags should be opened/closed.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
c417253d0b
DocBook: use DocBookItemTag within paragraphs.
...
This is at least helpful for AAS, even though it slightly resembles a repurposition of that parameter.
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
1a09086ec2
Merge findLastParagraph and findLastBibliographyParagraph to lower code duplication.
...
Maybe these functions should move to ParagraphList.h/cpp?
2020-09-19 20:43:37 +02:00
Thibaut Cuvelier
4d78fe5957
Slight code-consistency improvements.
2020-09-19 20:43:36 +02:00
Thibaut Cuvelier
ad18c19492
DocBook: add new layout parameter DocBookWrapperMergeWithPrevious.
2020-09-19 20:43:36 +02:00
Thibaut Cuvelier
a852706bf0
DocBook: allow empty paragraphs before the <info> section.
2020-09-19 20:43:36 +02:00
Daniel Ramoeller
9a1f732664
Show slanted caret (cursor) when text style emphasis/italics/slanted.
...
Fixes for bug #11428 . Emphasis is used regularly and it is helpful to
see whether the next text will be written emphasized directly from the
cursor.
This is also implemented in MS Word and Google docs but not in
LibreWriter.
Also fixes the caret for RTL languages whose width was previously
extended into the wrong direction.
2020-09-18 13:27:06 +02:00
Yuriy Skalko
cd933534bd
Increment preferences format to 34: rename Cyrillic *.kmap files
2020-09-17 15:05:31 +02:00
Jean-Marc Lasgouttes
b96b876403
Revert "Show toolbar context menu only when clicking on the toolbar"
...
Something is wrong.
This reverts commit f25253f89a
.
2020-09-16 16:54:33 +02:00
Daniel Ramoeller
f25253f89a
Show toolbar context menu only when clicking on the toolbar
...
Previsouly it was on the whole application window, except on disabled toolbar
buttons.
Fix for bug #11949
2020-09-16 11:18:57 +02:00
Jean-Marc Lasgouttes
ae37caacdd
Add method FontMetrics::italic()
...
This can be useful for ticket #11428 .
2020-09-14 16:26:19 +02:00
Yuriy Skalko
b0db575dc1
Show custom text styles in status bar
...
Fixes bug #11951 .
2020-09-14 11:38:29 +02:00
Scott Kostyshak
670da1817e
Fix documentation for LFUN_LAYOUT
...
The argument 'ignorenests' was renamed to 'ignoreautonests' at
d6fb2abb
.
2020-09-12 19:31:42 -04:00
Stephan Witt
320b6b6656
#6401 correct cursor movement for word forward/backward with enabled Mac style (mac_like_cursor_movement)
...
The change includes a rewrite of the cursor movement when „mac style“ is enabled and don’t change anything otherwise.
The new code for mac uses the document iterator to go forward or backward. The traversal stops at word boundaries.
If going forward the position increments until a word is reached (if not already inside) and stops at the end of the word.
If going backward it does the same in opposite direction. The cursor jumps over non-editable insets and math.
Editable (open) insets are entered and the cursor move detects word boundaries inside them.
2020-09-12 14:34:56 +02:00
Yuriy Skalko
fb7b7e5223
Refactor runCommand
2020-09-11 16:13:23 +02:00
Jean-Marc Lasgouttes
c1f8c6c26d
Fixup 5202d44e
: make caret geometry update lazy
...
Instead of working around crashes in update of caret geometry, only
request it as needed. The actual computation will take place just
before painting the caret.
It might be that this is overkill and that caret geometry should be
updated unconditionally. One would have to to some timing while idle to
ascertain that.
Fixes bug #11912 .
2020-09-11 11:48:12 +02:00
Eugene Chornyi
46da0d9d4d
Workaround Qtbug regarding the QAbstractScrollArea::mouseMoveEvent(...) ( 06969f9d
) is only needed until Qt 5.15.1 as it was fixed there.
2020-09-10 20:40:48 +02:00
Daniel Ramöller
69841003a3
Let Ctrl-Click on a reference jump to the corresponding label.
...
Fix some warnings while we're at it. (That part by RKH.)
2020-09-10 12:38:41 -04:00
Daniel Ramöller
35aaa1c528
Show child documents in outline with their paths.
2020-09-10 12:30:12 -04:00
Richard Kimberly Heck
a8de13632a
Add FIXME
2020-09-10 12:24:52 -04:00
Jean-Marc Lasgouttes
bf25e8568d
Fixup ad954a32
: make space insets easier to see.
...
The previous code left one extra pixel on each side of the visible space, and
spaces became too small to be readable.
2020-09-09 11:28:21 +02:00
Jean-Marc Lasgouttes
eda3219662
Remove unneeded space for \nolimits
2020-09-09 10:35:35 +02:00
Enrico Forestieri
fcd14df230
Avoid spurious requirements
...
The macros defined in the symbols file are only used for on-screen
representation, so that their definition should not require the use
on any latex package. Their definition should be taken into account
only when they are overridden by user macros with same name.
2020-09-09 01:32:51 +02:00
Enrico Forestieri
0762b52334
Try to use the right width for math symbols
...
The rules for typesetting math differ from the rules for typesetting
text. For example, two italic 'f' chars have to be typeset more closely
than two 'o' chars in text mode, but not in math mode. Qt provides a
method that returns the distance appropriate for drawing a subsequent
character in text mode, but nothing for math mode. Typically, the
distance appropriate for drawing the next character in math mode is
the actual width span by the character, corrected by the rules of
an appendix in the TeXbook. Recently, those rules are followed more
closely in LyX but not exactly, and we have to find a way to adapt to them.
Some symbols may need more spacing around them than the width they span.
So, we use the distance suggested by Qt, unless it is less than the
width of the rectangle bounding the symbol. Before Qt 5.11 the used method
was QFontMetrics::width(), but since then it has been declared obsolete
in favor of QFontMetrics::horizontalAdvance(), whose name conveys better
its meaning.
2020-09-08 22:30:02 +02:00
Jean-Marc Lasgouttes
b744c3e28a
Revert "Fixup 5202d44e
: make caret geometry update lazy"
...
Something is wrong with the cursor.
This reverts commit dc35f1ddf4
.
2020-09-07 16:02:50 +02:00
Jean-Marc Lasgouttes
dc35f1ddf4
Fixup 5202d44e
: make caret geometry update lazy
...
Instead of working around crashes in update of caret geometry, only
request it as needed. The actual computaiton will take place just
before painting the caret.
It might be that this is overkill and that caret geometry should be
updated unconditionally. One would have to to some timing while idle to
ascertain that.
Fixes bug #11912 .
2020-09-07 15:52:43 +02:00
Jean-Marc Lasgouttes
9b18a9b609
Fixup e1be71da5
: avoid duplication of layout
...
If the containing paragraph has kept its layout, reset the layout of
the first paragraph of the newly inserted inset.
2020-09-07 14:16:47 +02:00
Jean-Marc Lasgouttes
a58bcf1d27
Fixup f96b99dcb3
: read correctly \limits after macros
...
Move InsetMacro::limits_ to InsetMacro::Private, where it should have
been from the start. This means that limits_ is now copied when the
macro is cloned.
2020-09-07 12:13:42 +02:00
Enrico Forestieri
062d94c5da
Fix on-screen display of special math fonts
...
Make sure that the on-screen representation of the special math fonts
mathbb, mathds, mathfrak, mathcal, and mathscr matches the latex output.
2020-09-06 18:16:04 +02:00
Juergen Spitzmueller
61739e5aef
Add some hspacers
2020-09-05 08:23:56 +02:00
Juergen Spitzmueller
199fb4b934
set defaults for float_placement and float_alignment
2020-09-05 08:09:02 +02:00
Stephan Witt
45e8ea4acc
#11756 Respect system preferences for tabbing on Mac
2020-09-04 23:28:27 +02:00
Enrico Forestieri
a9afdbb73c
Personalize fonts
...
When the fonts distributed with texlive with same family name
as ours are also managed by fontconfig, Qt is not able to
discriminate ours by the style only. In order to be sure Qt
will load our fonts, we change the foundry name from 'PfEd'
to 'LyEd' and augment the font family name with this foundry
name. This only works on *nix, because adding a foundry name
seemingly breaks things on Windows. However, this is a *nix
only problem, seemingly.
2020-09-03 17:46:30 +02:00
Jean-Marc Lasgouttes
efc8d44d09
Fixup 2e784b2f
: consider default layout too.
...
And simplify the test at the same time.
2020-09-03 12:56:33 +02:00
Juergen Spitzmueller
5c83c5c410
Foward-port tooltip addition from stable ( 3a7560dcb0
)
2020-09-03 08:55:46 +02:00
Richard Kimberly Heck
5606e934ac
Accelerators
2020-09-02 10:22:26 -04:00
Enrico Forestieri
8039b34802
Adjust debug output for fonts
...
This restores the debug output as it was intended before the
introduction of the LYXERR macro that was unconditionally outputing
an end of line. This is how this output was appearing until lyx 1.5:
Looking for font family cmr10 ... got: cmr10
got it normal!
instead of as it was since lyx 1.6 and until now:
Looking for font family cmr10 ...
got: cmr10
got it
normal!
2020-09-01 12:12:55 +02:00
Richard Kimberly Heck
1ba785f2c6
Localization
2020-09-01 01:41:10 -04:00
Richard Kimberly Heck
3c25899eab
Improved fix for edit button
2020-08-31 11:20:49 -04:00
Richard Kimberly Heck
cf7e32ee8f
Fix problem with edit button.
...
The previous implementation relied upon the cursor being immediately
in front of the inset. A bad idea.
2020-08-31 10:50:59 -04:00
Richard Kimberly Heck
a385b7dc2b
Fix bug 4475.
...
Add ability to create child from the include dialog.
2020-08-31 10:20:52 -04:00
Jean-Marc Lasgouttes
d68f6f7f40
Add FIXME: do we need to update scrollbar at each draw()?
...
Related to ticket #11947 .
2020-08-30 19:16:38 +02:00
Stephan Witt
292799a4bd
#11756 cleanup the view menu on Mac
...
Using US english desktop language LyX's Mac OS adds some items to the view menu:
1. Show/Hide Tab Bar and
2. Enter Full Screen
These items won't work properly and it's better to hide them.
2020-08-30 15:35:02 +02:00
Stephan Witt
1c5a2fc0ec
#11756 hide additional menu items in edit menu on Mac
...
Mac OS adds two extra menu entries to the edit menu.
These menu items are:
1. Start Dictation...
2. Emoji & Symbols
Both menu items don't work with LyX.
Therefore they shouldn't be present and the new code hides them.
2020-08-30 11:24:59 +02:00
Stephan Witt
784139da50
Remove unused leftover from Makefile.
2020-08-30 11:24:59 +02:00
Enrico Forestieri
80f94a9398
Use correct width for \fint
...
Both QTextLine::naturalTextWidth() and QTextLine::horizontalAdvance()
return the same value for \fint. However, examining esint10.ttf with
fontforge does not reveal any issue with the metrics. The fact that
\fint seems to be the only affected symbol might be due to its code
point, which corresponds to a space, so that maybe Qt makes some
assumptions on the metrics.
As QTextLine::naturalTextWidth() returns the width of the line that is
occupied by text, in the case of a single symbol we can obtain the
same value by using the width of the rectangle bounding the symbol.
2020-08-29 20:10:26 +02:00
Juergen Spitzmueller
6f476b960e
Localize format prettyName in some more places ( #11954 )
2020-08-29 11:50:43 +02:00
Juergen Spitzmueller
3fc095e3bc
Do not \protect label in subfloat caption ( #11950 )
2020-08-28 07:32:29 +02:00
Yuriy Skalko
3bd358a2f6
Prevent permanent disabling of comboboxes in Vertical/Horizontal space dialogs
2020-08-28 07:07:44 +02:00
Juergen Spitzmueller
4fdcf0e929
address deprecation warning
2020-08-27 14:43:23 +02:00
Pavel Sanda
28dd0e1f21
Fix Qt4 compilation.
2020-08-27 14:05:22 +02:00
Juergen Spitzmueller
bc76026da5
Disable citationSearchLE with citationSearchCB
2020-08-27 12:53:41 +02:00
Juergen Spitzmueller
39caa70100
Clear info_ cache if format changes
2020-08-27 12:41:40 +02:00
Juergen Spitzmueller
d44929ff81
Properly report back if showDirectory() doesn't succeed
2020-08-27 11:58:37 +02:00
Juergen Spitzmueller
ff14d0bd00
Report back if citation target could not be opened
2020-08-27 11:52:52 +02:00
Juergen Spitzmueller
5cc191ddee
Fix string subst
2020-08-27 11:52:23 +02:00
Juergen Spitzmueller
b4ca3e4fa4
Assure bibinfo is correctly processed
2020-08-27 11:42:03 +02:00
Juergen Spitzmueller
c5c3323f32
Properly disable function
2020-08-27 10:59:15 +02:00
Juergen Spitzmueller
8365eabd6f
Make paper search function accessible and customizable
2020-08-27 08:48:55 +02:00
Juergen Spitzmueller
d436a51024
About: Fix cutting of icon ( #11946 )
2020-08-26 10:01:53 +02:00
Jean-Marc Lasgouttes
cc349fd031
Add space before display math that starts a paragraph
...
This extra spacing was missing and is important for detecting extra
par breaks before equations (which are most of the times not wanted).
To do that, add a new member vmode to MetricsInfo which is equivalent
to LaTeX's \ifvmode (start of paragraph).
If in vmode, add the equivalent of an empty line before a display math inset.
At the same time, tweak value of \(above|below)displayskip, which was
12pt, whereas LaTeX uses 10pt in 10pt size (our reference).
Fixes bug #11891 .
2020-08-25 13:20:37 +02:00
Stephan Witt
3c1b4a5d7e
#6401 avoid use of lyxCode()
2020-08-25 10:54:49 +02:00
Jean-Marc Lasgouttes
294e4884ee
Center correctly top labels like Abstract.
...
They used to take the paragraph indentation into account.
Fixes bug #11939 .
2020-08-25 10:30:34 +02:00
Jean-Marc Lasgouttes
ee3a711316
Forgotten break in switch found by coverity scan.
2020-08-24 17:21:04 +02:00
Jean-Marc Lasgouttes
2a6f1d2b58
Fixup 907f0207
: another place where pm.ascent() is wrong
...
Fix bug where selecting in first paragraph gave an end of selection on
wrong row.
Since pm.ascent() may contain the top margin, it makes sense in
setCursorFromCoordinates() to use the ascent of the front row instead,
like was none in907f0207 for getPitAndRowNearY().
2020-08-24 17:14:08 +02:00
Pavel Sanda
44ede7ef4b
Do not hardcode launching of lyxpaperview script.
2020-08-24 15:11:53 +02:00
Yuriy Skalko
c160e21c48
Split some UI strings for translations
2020-08-24 07:23:40 +02:00
Pavel Sanda
894ad70eba
Enable Open Citation menu item iff citation contain locator information or external search script is available.
...
Per Juergen's request.
2020-08-23 22:19:34 +02:00
Juergen Spitzmueller
0fa93fe55a
Amend 76cdca6422
...
Use auto pointer in all loops over UsedLanguages_
2020-08-23 13:49:56 +02:00
Richard Kimberly Heck
17f9d6b192
Fix warnings
2020-08-23 05:48:15 -04:00
Juergen Spitzmueller
76cdca6422
range-based loops
2020-08-23 10:07:49 +02:00
Juergen Spitzmueller
c3cac2048b
Sort secondary babel languages alphabetically
2020-08-23 10:04:56 +02:00
Juergen Spitzmueller
448e5efab4
Do not attempt to close language twice
2020-08-21 11:07:22 +02:00
Scott Kostyshak
4c0073cd03
Whitespace
2020-08-20 21:51:29 -04:00
Juergen Spitzmueller
c71551fd9d
GuiAbout: some more polishment
2020-08-20 16:08:10 +02:00
Juergen Spitzmueller
1f92214d78
GuiAbout: use unformatted version info via Copy button
2020-08-20 15:50:31 +02:00
Pavel Sanda
e648202e7e
Allow LyX to find pdfs and urls of citation references and follow them from context menu.
...
Currently tested:
- url & doi fields for bibtex.
- all documented eprinttypes of biblatex
- absolute paths of first entry of 'file' field for jabref and kbibtex
- external script searching for author + year pdf
Additional polishing will follow.
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg212505.html
2020-08-20 09:12:54 +02:00