X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetLine.cpp;h=d90c285bc185b67bb6edb12de03d2959d30f7b73;hb=4a1be58591ea5a7431d9426abb27d8b946c634cb;hp=22f4aa316a4aa800e804bad9bb8f3569ae474c6c;hpb=5ddc612b735317d5b22553a63aad7879503e3950;p=lyx.git diff --git a/src/insets/InsetLine.cpp b/src/insets/InsetLine.cpp index 22f4aa316a..d90c285bc1 100644 --- a/src/insets/InsetLine.cpp +++ b/src/insets/InsetLine.cpp @@ -12,7 +12,7 @@ #include "InsetLine.h" -#include "debug.h" +#include "Dimension.h" #include "Font.h" #include "MetricsInfo.h" #include "LaTeXFeatures.h" @@ -21,21 +21,25 @@ #include "frontends/Painter.h" +#include "support/debug.h" +#include "support/docstream.h" + + + +using namespace std; namespace lyx { using frontend::Painter; -using std::ostream; - -void InsetLine::read(Buffer const &, Lexer &) +void InsetLine::read(Lexer &) { /* Nothing to read */ } -void InsetLine::write(Buffer const &, ostream & os) const +void InsetLine::write(ostream & os) const { os << "\n\\lyxline\n"; } @@ -59,8 +63,7 @@ void InsetLine::draw(PainterInfo & pi, int x, int y) const } -int InsetLine::latex(Buffer const &, odocstream & os, - OutputParams const & runparams) const +int InsetLine::latex(odocstream & os, OutputParams const & runparams) const { os << "\\lyxline{\\" << from_ascii(runparams.local_font->latexSize()) << '}'; @@ -68,16 +71,14 @@ int InsetLine::latex(Buffer const &, odocstream & os, } -int InsetLine::plaintext(Buffer const &, odocstream & os, - OutputParams const &) const +int InsetLine::plaintext(odocstream & os, OutputParams const &) const { os << "\n-------------------------------------------\n"; return PLAINTEXT_NEWLINE; } -int InsetLine::docbook(Buffer const &, odocstream & os, - OutputParams const &) const +int InsetLine::docbook(odocstream & os, OutputParams const &) const { os << '\n'; return 0;