]> git.lyx.org Git - lyx.git/blob - src/insets/insetnewline.h
get rid of same_id from function signatures
[lyx.git] / src / insets / insetnewline.h
1 // -*- C++ -*-
2 /**
3  * \file insetnewline.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef INSET_NEWLINE_H
13 #define INSET_NEWLINE_H
14
15
16 #include "inset.h"
17
18 class InsetNewline : public Inset {
19 public:
20
21         InsetNewline() {}
22
23         virtual Inset * clone(Buffer const &) const {
24                 return new InsetNewline;
25         }
26
27
28         //virtual Inset * clone(Buffer const &, bool same_id) const {
29         //      return new InsetNewline;
30         //}
31
32         Inset::Code lyxCode() const { return Inset::NEWLINE_CODE; }
33
34         void dimension(BufferView *, LyXFont const &, Dimension &) const;
35
36         virtual void draw(BufferView *, LyXFont const &,
37                           int baseline, float & x) const;
38
39         virtual int latex(Buffer const *, std::ostream &,
40                           LatexRunParams const &) const;
41
42         virtual int ascii(Buffer const *, std::ostream &, int linelen) const;
43
44         virtual int linuxdoc(Buffer const *, std::ostream &) const;
45
46         virtual int docbook(Buffer const *, std::ostream &, bool) const;
47
48         virtual void read(Buffer const *, LyXLex & lex);
49
50         virtual void write(Buffer const * buf, std::ostream & os) const;
51         /// We don't need \begin_inset and \end_inset
52         virtual bool directWrite() const { return true; }
53 };
54
55 #endif // INSET_NEWLINE_H