#define MATH_MATHMLSTREAM_H
#include "InsetMath.h"
+#include "FontInfo.h"
#include "TexRow.h"
#include "texstream.h"
enum OutputType {
wsDefault,
wsDryrun,
- wsPreview
+ wsPreview,
+ wsSearchAdv
};
///
enum UlemCmdType {
/// 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; };
+ void inMathClass(bool mathclass) { mathclass_ = mathclass; }
/// tell whether we are in a MathClass inset
bool inMathClass() const { return mathclass_; }
/// LaTeX encoding
std::string namespacedTag(std::string const & tag) const {
return (xmlns().empty() ? "" : xmlns() + ":") + tag;
}
+ /// Returns the current math style in the stream.
+ const MathStyle & getFontMathStyle() const { return font_math_style_; }
+ /// Returns the current math style in the stream.
+ void setFontMathStyle(const MathStyle style) { font_math_style_ = style; }
private:
///
void setTextMode(bool t) { in_text_ = t; }
std::string xmlns_;
///
bool xml_mode_;
+ /// The only important part of a FontInfo object.
+ MathStyle font_math_style_;
///
friend class SetMode;
};