]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insethfill.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insethfill.h
index 68d555f9236600c1fde0bdcedf4bb66832c63262..51f5b59fa1ddc4103eceb1d7f2ea2f0258000c79 100644 (file)
@@ -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
 
 #include "insetcommand.h"
 
+
+namespace lyx {
+
 class InsetHFill : public InsetCommand {
 public:
        ///
        InsetHFill();
        ///
-       virtual Inset * clone(Buffer const &, bool = false) const {
-               return new InsetHFill();
-       }
+       bool metrics(MetricsInfo &, Dimension &) const;
        ///
-       string const getScreenLabel(Buffer const *) const { return getContents(); }
+       docstring const getScreenLabel(Buffer const &) const;
        ///
-       Inset::Code lyxCode() const { return Inset::HFILL_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; }
        ///
-       int latex(Buffer const *, std::ostream &,
-                 LatexRunParams const &) const;
+       int plaintext(Buffer const &, odocstream &,
+                 OutputParams const & runparams) const;
        ///
-       int ascii(Buffer const *, std::ostream &, int linelen) const;
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const & runparams) 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<InsetBase> doClone() const;
 };
 
+
+} // namespace lyx
+
 #endif