* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
void normalize(NormalStream & ns) const;
///
void infoize(odocstream & os) const;
+ ///
+ void validate(LaTeXFeatures & features) const;
private:
Inset * clone() const { return new InsetMathBox(*this); }
};
-/// Extra nesting
-class InsetMathFrameBox : public InsetMathNest {
-public:
- ///
- InsetMathFrameBox();
- ///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
- ///
- void draw(PainterInfo & pi, int x, int y) const;
- ///
- void write(WriteStream & os) const;
- /// write normalized content
- void normalize(NormalStream & ns) const;
- ///
- mode_type currentMode() const { return TEXT_MODE; }
-private:
- Inset * clone() const { return new InsetMathFrameBox(*this); }
-};
-
-
-/// Extra nesting: \\makebox.
-// consolidate with InsetMathFrameBox?
+/// Extra nesting: \\makebox or \\framebox.
class InsetMathMakebox : public InsetMathNest {
public:
///
- InsetMathMakebox();
+ InsetMathMakebox(bool framebox);
///
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void infoize(odocstream & os) const;
private:
Inset * clone() const { return new InsetMathMakebox(*this); }
- /// width of '[' in current font
- mutable int w_;
+ ///
+ bool framebox_;
};