X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_metricsinfo.h;h=3046587bef8645dad56291877d8e7acc336354c5;hb=99cb25781ac599f3aeefb5b391b95ed26b74405f;hp=ee67ca71865afda15ad58b0f98abf4434e26fd02;hpb=40b2b89d4dbd9f948732741503574333ac7b7df7;p=lyx.git diff --git a/src/mathed/math_metricsinfo.h b/src/mathed/math_metricsinfo.h index ee67ca7186..3046587bef 100644 --- a/src/mathed/math_metricsinfo.h +++ b/src/mathed/math_metricsinfo.h @@ -1,9 +1,11 @@ -#ifndef MATH_METRICSINFO -#define MATH_METRICSINFO +#ifndef MATH_METRICSINFO_H +#define MATH_METRICSINFO_H #include "lyxfont.h" +#include "textpainter.h" class BufferView; +class MathNestInset; /// Standard Math Sizes (Math mode styles) @@ -22,11 +24,11 @@ enum MathStyles { struct MathMetricsInfo { /// MathMetricsInfo() - : view(0), font(), style(LM_ST_TEXT) + : view(0), font(), style(LM_ST_TEXT), inset(0) {} /// MathMetricsInfo(BufferView * v, LyXFont const & f, MathStyles s) - : view(v), font(f), style(s) + : view(v), font(f), style(s), inset(0) {} /// @@ -35,6 +37,21 @@ struct MathMetricsInfo { LyXFont font; /// MathStyles style; + /// used to pass some info down + MathNestInset const * inset; + /// + int idx; +}; + + +struct TextMetricsInfo { + /// + TextMetricsInfo() + {} + /// used to pass some info down + MathNestInset const * inset; + /// + int idx; }; #endif