]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathData.h
typo
[lyx.git] / src / mathed / MathData.h
index c27b9f58d69294bc6d85dfff36e789b7d34d99b3..865742df4cb9603040cf5ec8456d3f9bdf54a585 100644 (file)
@@ -16,8 +16,9 @@
 #define MATH_DATA_H
 
 #include "MathAtom.h"
-#include "MathRow.h"
+#include "MathClass.h"
 
+#include "Dimension.h"
 #include "OutputEnums.h"
 
 #include "support/strfwd.h"
@@ -33,13 +34,14 @@ class BufferView;
 class Cursor;
 class Dimension;
 class DocIterator;
+class InsetMathMacro;
 class LaTeXFeatures;
-class ReplaceData;
 class MacroContext;
-class InsetMathMacro;
+class MathRow;
 class MetricsInfo;
 class PainterInfo;
 class ParIterator;
+class ReplaceData;
 class TextMetricsInfo;
 class TextPainter;
 
@@ -142,8 +144,12 @@ public:
        void drawT(TextPainter & pi, int x, int y) const;
        /// approximate mathclass of the data
        MathClass mathClass() const;
+       /// math class of first interesting element
+       MathClass firstMathClass() const;
        /// math class of last interesting element
        MathClass lastMathClass() const;
+       /// is the cell in display style
+       bool displayStyle() const { return display_style_; }
 
        /// access to cached x coordinate of last drawing
        int xo(BufferView const & bv) const;
@@ -190,6 +196,8 @@ protected:
        mutable int mindes_ = 0;
        mutable int slevel_ = 0;
        mutable int sshift_ = 0;
+       /// cached value for display style
+       mutable bool display_style_ = false;
        Buffer * buffer_ = nullptr;
 
 private: