]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetHFill.h
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / insets / InsetHFill.h
index 6461e8a3cff5f795b9eaee6f393276ae66138204..0364e6ecb1e76f19de6246ed34b37bca61b6581b 100644 (file)
@@ -23,11 +23,13 @@ public:
        ///
        InsetHFill();
        ///
-       bool metrics(MetricsInfo &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
+       ///
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
        docstring const getScreenLabel(Buffer const &) const;
        ///
-       Inset::Code lyxCode() const { return Inset::HFILL_CODE; }
+       InsetCode lyxCode() const { return HFILL_CODE; }
        ///
        int plaintext(Buffer const &, odocstream &,
                      OutputParams const &) const;
@@ -41,8 +43,16 @@ public:
        /// is this equivalent to a space (which is BTW different from
        // a line separator)?
        bool isSpace() const;
+       ///
+       static ParamInfo const & findInfo(std::string const &);
+       ///
+       static std::string defaultCommand() { return "hfill"; };
+       ///
+       static bool isCompatibleCommand(std::string const & s) 
+               { return s == "hfill"; }
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       ///
+       virtual Inset * clone() const;
 };