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
813eb0f9f7
Cleanup included headers
2020-11-29 00:25:14 +02:00
Yuriy Skalko
8793c2eed9
Replace ;;
2020-11-27 12:16:54 +02:00
Yuriy Skalko
6a21ec854b
Move several common types to support/types.h
2020-11-27 12:16:22 +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
Yuriy Skalko
7ca2f2b58d
Use range-based loops
2020-11-21 20:32:16 +02:00
Yuriy Skalko
09eba40418
Remove unused header
2020-11-21 00:32:35 +02: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
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
Yuriy Skalko
9b1dc338b2
Simplify Changers
2020-11-12 14:22:00 +02: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
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
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
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
524073d09f
Move HullType functions declared in InsetMath.h into InsetMath.cpp
2020-10-29 15:52:28 +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
a7018252b7
Constify
2020-10-25 09:28:34 +02:00
Yuriy Skalko
d25c10ed81
Remove duplicate and unused header includes in .cpp files
2020-10-19 18:01:11 +03:00
Yuriy Skalko
a3eeb8a4b5
Clean math headers
2020-10-16 23:05:46 +03:00
Yuriy Skalko
fbefdb10a5
Move Cursor.h from Clipboard.h
2020-10-16 08:02:51 +03:00
Pavel Sanda
560ff6d40d
Move MetricsInfo.h from InsetMathSize.h
2020-10-14 14:58:18 +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
Yuriy Skalko
2a594d3e90
Remove unused forward declarations
2020-10-13 09:57:36 +03: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
Yuriy Skalko
7d38a4d126
Loop refactoring
2020-10-09 09:04:20 +03: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
Yuriy Skalko
efc0877f8f
Add override
specifiers to improve code maintainability
2020-10-03 12:43:48 +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
Thibaut Cuvelier
91982ee105
DocBook: new lines around formulae.
2020-09-19 20:43:39 +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
87dae26e4a
Simplify code to generate only one paragraph at a time.
2020-09-19 20:43:37 +02:00
Yuriy Skalko
fb7b7e5223
Refactor runCommand
2020-09-11 16:13:23 +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
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
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