X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsethfill.h;h=51f5b59fa1ddc4103eceb1d7f2ea2f0258000c79;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=6ff51882cc92a59d05d4cf4c331799879e4e9ed3;hpb=2e57f2ff0ae7cd4a6efbf634ffe6d2f4379d9cfc;p=lyx.git diff --git a/src/insets/insethfill.h b/src/insets/insethfill.h index 6ff51882cc..51f5b59fa1 100644 --- a/src/insets/insethfill.h +++ b/src/insets/insethfill.h @@ -6,7 +6,7 @@ * * \author André Pönitz * - * Full author contact details are available in file CREDITS + * Full author contact details are available in file CREDITS. */ #ifndef INSET_HFILL_H @@ -15,31 +15,37 @@ #include "insetcommand.h" + +namespace lyx { + class InsetHFill : public InsetCommand { public: /// InsetHFill(); /// - virtual std::auto_ptr clone() const { - return std::auto_ptr(new InsetHFill); - } - /// - string const getScreenLabel(Buffer const *) const { return getContents(); } + bool metrics(MetricsInfo &, Dimension &) const; /// - InsetOld::Code lyxCode() const { return InsetOld::HFILL_CODE; } + docstring const getScreenLabel(Buffer const &) const; /// - int latex(Buffer const *, std::ostream &, - LatexRunParams const &) const; + InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; } /// - int ascii(Buffer const *, std::ostream &, int linelen) const; + int plaintext(Buffer const &, odocstream &, + OutputParams const & runparams) const; /// - int linuxdoc(Buffer const *, std::ostream &) const; + int docbook(Buffer const &, odocstream &, + OutputParams const & runparams) const; /// - int docbook(Buffer const *, std::ostream &, bool) const; - /// - void write(Buffer const * buf, std::ostream & os) const; + void write(Buffer const & buf, std::ostream & os) const; /// We don't need \begin_inset and \end_inset bool directWrite() const { return true; } + /// is this equivalent to a space (which is BTW different from + // a line separator)? + bool isSpace() const; +private: + virtual std::auto_ptr doClone() const; }; + +} // namespace lyx + #endif