]> git.lyx.org Git - features.git/commit
Skip drawing of markers in non-editable math data
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 14 Nov 2016 17:01:56 +0000 (18:01 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 17 Nov 2016 07:48:32 +0000 (08:48 +0100)
commit9a9a6a8c8f12cb8b0e713a9a1ed3c5763fa25c66
tree53f21ab747fac8fc149b8470a1f528bad319390b
parentf3f9b083d180412a62a50bdef06ab236dca5fc9d
Skip drawing of markers in non-editable math data

There is no reason to reserve pixel space in macros replacement text,
which is not editable. This makes macros more compact and eases the
writing of lib/symbols.

* introduce new InsetMath::drawMarkers and friends that do nothing
  when nested inside a macro. This required to move macro_nesting
  inside MetricsBase, and to pass MetricsInfo & to metricsMarkers.

* keep track of nesting when drawing rows or macros.
33 files changed:
src/MetricsInfo.cpp
src/MetricsInfo.h
src/mathed/InsetMath.cpp
src/mathed/InsetMath.h
src/mathed/InsetMathBoldSymbol.cpp
src/mathed/InsetMathBox.cpp
src/mathed/InsetMathBrace.cpp
src/mathed/InsetMathCancel.cpp
src/mathed/InsetMathCancelto.cpp
src/mathed/InsetMathClass.cpp
src/mathed/InsetMathColor.cpp
src/mathed/InsetMathComment.cpp
src/mathed/InsetMathDecoration.cpp
src/mathed/InsetMathEnsureMath.cpp
src/mathed/InsetMathEnv.cpp
src/mathed/InsetMathFont.cpp
src/mathed/InsetMathFontOld.cpp
src/mathed/InsetMathFrac.cpp
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathLefteqn.cpp
src/mathed/InsetMathOverset.cpp
src/mathed/InsetMathPhantom.cpp
src/mathed/InsetMathRoot.cpp
src/mathed/InsetMathScript.cpp
src/mathed/InsetMathSideset.cpp
src/mathed/InsetMathSize.cpp
src/mathed/InsetMathSqrt.cpp
src/mathed/InsetMathStackrel.cpp
src/mathed/InsetMathUnderset.cpp
src/mathed/InsetMathXArrow.cpp
src/mathed/MathMacro.cpp
src/mathed/MathMacroTemplate.cpp
src/mathed/MathRow.cpp