]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBoldSymbol.h
Give inset codes to all the math insets, so we get more information when
[lyx.git] / src / mathed / InsetMathBoldSymbol.h
index 80e0e43da74ddb68a22ebf9a0300ceade82157ef..67b0dfa4b7e08b7ced17ba85a91d55ba6d324a87 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,8 +21,15 @@ 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);
+       ///
+       docstring name() const;
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -37,6 +44,10 @@ public:
        void write(WriteStream & os) const;
        ///
        void infoize(odocstream & os) const;
+       ///
+       InsetCode lyxCode() const { return MATH_BOLDSYMBOL_CODE; }
+       ///
+       Kind kind_;
 private:
        virtual Inset * clone() const;
 };