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