]> git.lyx.org Git - lyx.git/blob - src/insets/InsetHFill.h
Remove color dependency of framed note, fix bug 3598
[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
19 namespace lyx {
20
21 class InsetHFill : public InsetCommand {
22 public:
23         ///
24         InsetHFill();
25         ///
26         bool metrics(MetricsInfo &, Dimension &) const;
27         ///
28         docstring const getScreenLabel(Buffer const &) const;
29         ///
30         Inset::Code lyxCode() const { return Inset::HFILL_CODE; }
31         ///
32         int plaintext(Buffer const &, odocstream &,
33                       OutputParams const &) const;
34         ///
35         int docbook(Buffer const &, odocstream &,
36                     OutputParams const &) const;
37         ///
38         void write(Buffer const & buf, std::ostream & os) const;
39         /// We don't need \begin_inset and \end_inset
40         bool directWrite() const { return true; }
41         /// is this equivalent to a space (which is BTW different from
42         // a line separator)?
43         bool isSpace() const;
44 private:
45         virtual std::auto_ptr<Inset> doClone() const;
46 };
47
48
49 } // namespace lyx
50
51 #endif