]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommand.C
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / insetcommand.C
index 0a566e3463d1011eb27f6cc871d79f04af25166c..69322ae8905cc40caa50164553a0d2bf939f3760 100644 (file)
@@ -18,6 +18,7 @@
 #include "debug.h"
 #include "Painter.h"
 
+using std::ostream;
 using std::endl;
 
 
@@ -89,7 +90,7 @@ int InsetCommand::width(Painter & pain, LyXFont const &) const
                              LColor::commandbg, LColor::commandframe,
                              false, width, ascent, descent);
        }
-       return width+4;
+       return width + 4;
 }
 
 
@@ -111,7 +112,7 @@ void InsetCommand::draw(Painter & pain, LyXFont const &,
                              true, width);
        }
 
-       x += width;
+       x += width + 4;
 }
 
 
@@ -196,13 +197,19 @@ void InsetCommand::Read(LyXLex & lex)
 }
 
 
-int InsetCommand::Latex(ostream & os, signed char /*fragile*/, bool/*fs*/) const
+int InsetCommand::Latex(ostream & os, bool /*fragile*/, bool/*fs*/) const
 {
        os << getCommand();
        return 0;
 }
 
 
+int InsetCommand::Ascii(ostream &) const
+{
+       return 0;
+}
+
+
 int InsetCommand::Linuxdoc(ostream &) const
 {
        return 0;