]> git.lyx.org Git - lyx.git/blob - src/insets/insethfill.h
4b46d913353b32aa5e647ff01fa235e1775f6d22
[lyx.git] / src / insets / insethfill.h
1 // -*- C++ -*-
2 /**
3  * \file insethfill.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef INSET_HFILL_H
13 #define INSET_HFILL_H
14
15
16 #include "insetcommand.h"
17
18 class InsetHFill : public InsetCommand {
19 public:
20         ///
21         InsetHFill();
22         ///
23         void metrics(MetricsInfo &, Dimension &) const;
24         ///
25         std::auto_ptr<InsetBase> clone() const;
26         ///
27         std::string const getScreenLabel(Buffer const &) const;
28         ///
29         InsetOld::Code lyxCode() const { return InsetOld::HFILL_CODE; }
30         ///
31         int latex(Buffer const &, std::ostream &,
32                   LatexRunParams const &) const;
33         ///
34         int ascii(Buffer const &, std::ostream &,
35                   LatexRunParams const & runparams) const;
36         ///
37         int linuxdoc(Buffer const &, std::ostream &,
38                      LatexRunParams const &) const;
39         ///
40         int docbook(Buffer const &, std::ostream &,
41                     LatexRunParams const & runparams) const;
42         ///
43         void write(Buffer const & buf, std::ostream & os) const;
44         /// We don't need \begin_inset and \end_inset
45         bool directWrite() const { return true; }
46
47 };
48
49 #endif