]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_makeboxinset.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_makeboxinset.h
index bdeb78ff81f6203c412c5c761ab84807eae5912f..5ddf3618e38547fd018e225817bc4b23630914f9 100644 (file)
@@ -1,19 +1,20 @@
 // -*- C++ -*-
+/**
+ * \file math_makeboxinset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Ling Li
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef MATH_MAKEBOXINSET_H
 #define MATH_MAKEBOXINSET_H
 
 #include "math_nestinset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-/** Extra nesting: \\makebox.
- *  \author Ling Li
- *
- *  Full author contact details are available in file CREDITS
- */
-
+/// Extra nesting: \\makebox.
 // consolidate with MathFrameboxInset?
 
 class MathMakeboxInset : public MathNestInset {
@@ -21,8 +22,6 @@ public:
        ///
        MathMakeboxInset();
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-       ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
@@ -32,7 +31,10 @@ public:
        void normalize(NormalStream & ns) const;
        ///
        mode_type currentMode() const { return TEXT_MODE; }
+       ///
+       void infoize(std::ostream & os) const;
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// width of '[' in current font
        mutable int w_;
 };