]> 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 16d0ef60cc4ef0bcb1b82baf19447022cd1e0c1c..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.
  */
 #include "InsetMathNest.h"
 
 
+namespace lyx {
+
+
 /// Inset for AMSTeX's \boldsymbol
 class InsetMathBoldSymbol : public InsetMathNest {
 public:
+       enum Kind {
+               AMS_BOLD,
+               BM_BOLD,
+               BM_HEAVY
+       };
+       ///
+       InsetMathBoldSymbol(Kind kind = AMS_BOLD);
        ///
-       InsetMathBoldSymbol();
+       docstring name() const;
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -33,9 +43,14 @@ public:
        ///
        void write(WriteStream & os) const;
        ///
-       void infoize(std::ostream & os) const;
+       void infoize(odocstream & os) const;
+       ///
+       Kind kind_;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 };
 
+
+} // namespace lyx
+
 #endif