X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_metricsinfo.h;h=26b542405b5f8bf51e5d16548fe696782330eb05;hb=858355fb69e30dbfbe84fb023076b5ac4ad7b0ec;hp=9c2e720547ac3d7fc1e6339f737461639459e7a2;hpb=dd60fa8ccbc203482c803c941a44b84e82dc8dee;p=lyx.git diff --git a/src/mathed/math_metricsinfo.h b/src/mathed/math_metricsinfo.h index 9c2e720547..26b542405b 100644 --- a/src/mathed/math_metricsinfo.h +++ b/src/mathed/math_metricsinfo.h @@ -1,5 +1,5 @@ -#ifndef MATH_METRICSINFO -#define MATH_METRICSINFO +#ifndef MATH_METRICSINFO_H +#define MATH_METRICSINFO_H #include "lyxfont.h" @@ -23,11 +23,15 @@ enum MathStyles { struct MathMetricsInfo { /// MathMetricsInfo() - : view(0), font(), style(LM_ST_TEXT), inset(0) + : view(0), font(), style(LM_ST_TEXT), + inset(0), idx(0), + fullredraw(false) {} /// MathMetricsInfo(BufferView * v, LyXFont const & f, MathStyles s) - : view(v), font(f), style(s), inset(0) + : view(v), font(f), style(s), + inset(0), idx(0), + fullredraw(false) {} /// @@ -40,6 +44,19 @@ struct MathMetricsInfo { MathNestInset const * inset; /// int idx; + /// + bool fullredraw; +}; + + +struct TextMetricsInfo { + /// + TextMetricsInfo() + {} + /// used to pass some info down + MathNestInset const * inset; + /// + int idx; }; #endif