4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
16 #include "insetcommand.h"
18 class InsetHFill : public InsetCommand {
23 virtual Inset * clone(Buffer const &) const {
24 return new InsetHFill();
27 //virtual Inset * clone(Buffer const &, bool /*same_id*/) const {
28 // return new InsetHFill();
31 string const getScreenLabel(Buffer const *) const { return getContents(); }
33 Inset::Code lyxCode() const { return Inset::HFILL_CODE; }
35 int latex(Buffer const *, std::ostream &,
36 LatexRunParams const &) const;
38 int ascii(Buffer const *, std::ostream &, int linelen) const;
40 void write(Buffer const * buf, std::ostream & os) const;
41 /// We don't need \begin_inset and \end_inset
42 bool directWrite() const { return true; }