]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathFont.h
index e73dc3de4cf3f1e4269a3e8e2b77d0884191b979..a55c1f77b16ca7910ef503ea18c45e2529d62ee0 100644 (file)
@@ -15,6 +15,9 @@
 #include "InsetMathNest.h"
 
 
+namespace lyx {
+
+
 class latexkeys;
 
 /// Inset for font changes
@@ -29,7 +32,7 @@ public:
        /// are we in math mode, text mode, or unsure?
        mode_type currentMode() const;
        ///
-       std::string name() const;
+       docstring name() const;
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -41,11 +44,16 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       void infoize(std::ostream & os) const;
+       void infoize(odocstream & os) const;
+       ///
+       int kerning(BufferView const * bv) const { return cell(0).kerning(bv); }
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        /// the font to be used on screen
        latexkeys const * key_;
 };
+
+
+} // namespace lyx
 #endif