]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetHFill.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetHFill.h
index a72b66cf7b2a8c9b625bde8556d754908f27b415..3c4683cc2de5562daf3736a0abf526b6290e8548 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,6 +43,13 @@ public:
        /// is this equivalent to a space (which is BTW different from
        // a line separator)?
        bool isSpace() const;
+       ///
+       static CommandInfo const * findInfo(std::string const &);
+       ///
+       static std::string defaultCommand() { return "hfill"; };
+       ///
+       static bool isCompatibleCommand(std::string const & s) 
+               { return s == "hfill"; }
 private:
        virtual Inset * clone() const;
 };