]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathStream.h
Assure correct spacing of colored items in mathed
[lyx.git] / src / mathed / MathStream.h
index bf3deb921d675e69ec64873d5fb621fac67ef592..9344dac497e85e6f37531b06984327ed65ed7ea2 100644 (file)
@@ -101,6 +101,10 @@ public:
        void asciiOnly(bool ascii);
        /// tell whether to use only ascii chars when producing latex code
        bool asciiOnly() const { return ascii_; }
+       /// tell whether we are in a MathClass inset
+       void inMathClass(bool mathclass) { mathclass_ = mathclass; };
+       /// tell whether we are in a MathClass inset
+       bool inMathClass() const { return mathclass_; }
        /// LaTeX encoding
        Encoding const * encoding() const { return encoding_; }
 
@@ -142,6 +146,8 @@ private:
        Encoding const * encoding_;
        /// Row entry we are in
        TexRow::RowEntry row_entry_;
+       /// whether we are in a MathClass inset
+       bool mathclass_;
 };
 
 ///