]> git.lyx.org Git - lyx.git/blob - src/insets/insethfill.C
ws changes only
[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 #include "support/std_ostream.h"
16
17 using std::ostream;
18
19
20 InsetHFill::InsetHFill()
21         : InsetCommand(InsetCommandParams("hfill"))
22 {}
23
24
25 int InsetHFill::latex(Buffer const &, ostream & os,
26                       LatexRunParams const &) const
27 {
28         os << getCommand();
29         return 0;
30 }
31
32
33 int InsetHFill::ascii(Buffer const &, ostream & os, int) const
34 {
35         os << '\t';
36         return 0;
37 }
38
39
40 int InsetHFill::linuxdoc(Buffer const &, std::ostream & os) const
41 {
42         os << '\n';
43         return 0;
44 }
45
46
47 int InsetHFill::docbook(Buffer const &, std::ostream & os, bool) const
48 {
49         os << '\n';
50         return 0;
51 }
52
53 void InsetHFill::write(Buffer const &, ostream & os) const
54 {
55         os << "\n\\hfill \n";
56 }