]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.h
* src/frontends/controllers/Dialog.{cpp,h}:
[lyx.git] / src / mathed / InsetMathFont.h
index e73dc3de4cf3f1e4269a3e8e2b77d0884191b979..bfa380d19113aadc17490553c6761d25ced400a6 100644 (file)
@@ -15,6 +15,9 @@
 #include "InsetMathNest.h"
 
 
+namespace lyx {
+
+
 class latexkeys;
 
 /// Inset for font changes
@@ -29,9 +32,9 @@ 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;
+       bool metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -41,11 +44,16 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       void infoize(std::ostream & os) const;
+       void infoize(odocstream & os) const;
+       ///
+       int kerning() const { return cell(0).kerning(); }
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
        /// the font to be used on screen
        latexkeys const * key_;
 };
+
+
+} // namespace lyx
 #endif