]> git.lyx.org Git - lyx.git/blob - src/insets/insethfill.C
Re-add the RasterImage template.
[lyx.git] / src / insets / insethfill.C
1 /**
2  * \file insethfill.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "insethfill.h"
14
15 using std::ostream;
16
17
18 InsetHFill::InsetHFill()
19         : InsetCommand(InsetCommandParams("hfill"))
20 {}
21
22
23 int InsetHFill::latex(Buffer const &, ostream & os,
24                       LatexRunParams const &) const
25 {
26         os << getCommand();
27         return 0;
28 }
29
30
31 int InsetHFill::ascii(Buffer const &, ostream & os, int) const
32 {
33         os << '\t';
34         return 0;
35 }
36
37
38 int InsetHFill::linuxdoc(Buffer const &, std::ostream & os) const
39 {
40         os << '\n';
41         return 0;
42 }
43
44
45 int InsetHFill::docbook(Buffer const &, std::ostream & os, bool) const
46 {
47         os << '\n';
48         return 0;
49 }
50
51 void InsetHFill::write(Buffer const &, ostream & os) const
52 {
53         os << "\n\\hfill \n";
54 }