]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBoldSymbol.h
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathBoldSymbol.h
index b9f7e78e5f01fdd1697b5ce6f005b372dd7c3982..d91de3816a0918b484c427a251af6ce40db78d83 100644 (file)
@@ -4,7 +4,7 @@
  * 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.
  */
@@ -21,10 +21,17 @@ namespace lyx {
 /// Inset for AMSTeX's \boldsymbol
 class InsetMathBoldSymbol : public InsetMathNest {
 public:
+       enum Kind {
+               AMS_BOLD,
+               BM_BOLD,
+               BM_HEAVY
+       };
        ///
-       InsetMathBoldSymbol();
+       InsetMathBoldSymbol(Kind kind = AMS_BOLD);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       docstring name() const;
+       ///
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -37,8 +44,10 @@ public:
        void write(WriteStream & os) const;
        ///
        void infoize(odocstream & os) const;
+       ///
+       Kind kind_;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 };