]> 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 12c2afd2972f4df097e33acbc13e54f418cebdf4..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,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,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;
 };