X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetcommand.C;h=69322ae8905cc40caa50164553a0d2bf939f3760;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=0a566e3463d1011eb27f6cc871d79f04af25166c;hpb=85798535a19919e82cc94a177a8414c542a9c5bf;p=lyx.git diff --git a/src/insets/insetcommand.C b/src/insets/insetcommand.C index 0a566e3463..69322ae890 100644 --- a/src/insets/insetcommand.C +++ b/src/insets/insetcommand.C @@ -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;