]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBox.h
Fix compiling errors caused by r18701 (moving drawMarkers and drawMarkers2 back to...
[lyx.git] / src / mathed / InsetMathBox.h
index fc8d9aa977a93b2d8a4d1f18c7f8e832ef644106..b217dc57fa288778d1ad8c64b783082510cf0181 100644 (file)
 #include <string>
 
 
-class LyXFont;
+namespace lyx {
+
+
+class Font;
 
 /// Support for \\mbox
 
 class InsetMathBox : public InsetMathNest {
 public:
        ///
-       explicit InsetMathBox(std::string const & name);
+       explicit InsetMathBox(docstring const & name);
        ///
        mode_type currentMode() const { return TEXT_MODE; }
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       bool metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -36,13 +39,16 @@ public:
        ///
        void normalize(NormalStream & ns) const;
        ///
-       void infoize(std::ostream & os) const;
+       void infoize(odocstream & os) const;
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
        ///
-       std::string name_;
+       docstring name_;
 };
 
 
+
+} // namespace lyx
+
 #endif