3 * \file insetpagebreak.h
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.
12 #ifndef INSET_PAGEBREAK_H
13 #define INSET_PAGEBREAK_H
18 class InsetPagebreak : public InsetOld {
23 InsetBase::Code lyxCode() const { return InsetBase::LINE_CODE; }
25 void metrics(MetricsInfo &, Dimension &) const;
27 void draw(PainterInfo & pi, int x, int y) const;
29 int latex(Buffer const &, std::ostream &,
30 OutputParams const &) const;
32 int plaintext(Buffer const &, std::ostream &,
33 OutputParams const &) const;
35 int linuxdoc(Buffer const &, std::ostream &,
36 OutputParams const &) const;
38 int docbook(Buffer const &, std::ostream &,
39 OutputParams const &) const;
41 void read(Buffer const &, LyXLex & lex);
43 void write(Buffer const & buf, std::ostream & os) const;
44 /// We don't need \begin_inset and \end_inset
45 bool directWrite() const { return true; }
47 bool display() const { return true; }
49 virtual std::auto_ptr<InsetBase> doClone() const
51 return std::auto_ptr<InsetBase>(new InsetPagebreak);
55 #endif // INSET_NEWLINE_H