]> git.lyx.org Git - lyx.git/blob - src/insets/insethfill.h
The speed patch: redraw only rows that have changed
[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::string const getScreenLabel(Buffer const &) const;
26         ///
27         InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; }
28         ///
29         int latex(Buffer const &, std::ostream &,
30                   OutputParams const &) const;
31         ///
32         int plaintext(Buffer const &, std::ostream &,
33                   OutputParams const & runparams) const;
34         ///
35         int linuxdoc(Buffer const &, std::ostream &,
36                      OutputParams const &) const;
37         ///
38         int docbook(Buffer const &, std::ostream &,
39                     OutputParams const & runparams) const;
40         ///
41         void write(Buffer const & buf, std::ostream & os) const;
42         /// We don't need \begin_inset and \end_inset
43         bool directWrite() const { return true; }
44         /// is this equivalent to a space (which is BTW different from
45         // a line separator)?
46         bool isSpace() const;
47 private:
48         virtual std::auto_ptr<InsetBase> doClone() const;
49 };
50
51 #endif