]> git.lyx.org Git - lyx.git/blob - src/insets/insethfill.C
fix #832
[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
14 #include "insethfill.h"
15 #include "support/LOstream.h"
16
17 using std::ostream;
18
19 InsetHFill::InsetHFill()
20         : InsetCommand(InsetCommandParams("hfill"))
21 {}
22
23
24 int InsetHFill::latex(Buffer const *, ostream & os,
25                       bool /*fragile*/, bool /*fs*/) const
26 {
27         os << getCommand();
28         return 0;
29 }
30
31
32 int InsetHFill::ascii(Buffer const *, ostream & os, int) const
33 {
34         os << '\t';
35         return 0;
36 }
37
38
39 void InsetHFill::write(Buffer const *, ostream & os) const
40 {
41         os << "\n\\hfill \n";
42 }