]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insethfill.h
* BufferParams:
[lyx.git] / src / insets / insethfill.h
index 1f0321015b477d4df1fb6d1767b0fb12c6e3fb51..04e46e2d6572e92d4a8ed741af702c39eae7ebba 100644 (file)
 
 #include "insetcommand.h"
 
+
+namespace lyx {
+
 class InsetHFill : public InsetCommand {
 public:
        ///
        InsetHFill();
        ///
-       virtual std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetHFill);
-       }
-       ///
-       std::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 &) const;
        ///
-       int linuxdoc(Buffer const &, std::ostream &) const;
-       ///
-       int docbook(Buffer const &, std::ostream &, bool) const;
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const &) 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<InsetBase> doClone() const;
 };
 
+
+} // namespace lyx
+
 #endif