X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsethfill.h;h=51f5b59fa1ddc4103eceb1d7f2ea2f0258000c79;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=a258686647793ab7813bc29e833525d710e0bbab;hpb=cd424d78530c9e38502ee7f989ef5c426c97ad61;p=lyx.git diff --git a/src/insets/insethfill.h b/src/insets/insethfill.h index a258686647..51f5b59fa1 100644 --- a/src/insets/insethfill.h +++ b/src/insets/insethfill.h @@ -15,35 +15,37 @@ #include "insetcommand.h" + +namespace lyx { + class InsetHFill : public InsetCommand { public: /// InsetHFill(); /// - void metrics(MetricsInfo &, Dimension &) const; - /// - std::auto_ptr clone() const; - /// - std::string const getScreenLabel(Buffer const &) const; + 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 &, - OutputParams const &) const; + InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; } /// - int plaintext(Buffer const &, std::ostream &, + int plaintext(Buffer const &, odocstream &, OutputParams const & runparams) const; /// - int linuxdoc(Buffer const &, std::ostream &, - OutputParams const &) const; - /// - int docbook(Buffer const &, std::ostream &, + int docbook(Buffer const &, odocstream &, OutputParams const & runparams) 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