4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
18 class InsetLine : public InsetOld {
23 std::auto_ptr<InsetBase> clone() const {
24 return std::auto_ptr<InsetBase>(new InsetLine);
27 InsetOld::Code lyxCode() const { return InsetOld::LINE_CODE; }
29 void metrics(MetricsInfo &, Dimension &) const;
31 void draw(PainterInfo & pi, int x, int y) const;
33 int latex(Buffer const &, std::ostream &,
34 OutputParams const &) const;
36 int plaintext(Buffer const &, std::ostream &,
37 OutputParams const &) const;
39 int linuxdoc(Buffer const &, std::ostream &,
40 OutputParams const &) const;
42 int docbook(Buffer const &, std::ostream &,
43 OutputParams const &) const;
45 void read(Buffer const &, LyXLex & lex);
47 void write(Buffer const & buf, std::ostream & os) const;
48 /// We don't need \begin_inset and \end_inset
49 bool directWrite() const { return true; }
51 bool display() const { return true; }
53 void validate(LaTeXFeatures & features) const;
56 #endif // INSET_NEWLINE_H