]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetHFill.cpp
Further cleanup of collapsable insets. The layouts are now properly read and applied.
[lyx.git] / src / insets / InsetHFill.cpp
index 9369f09735d2a03ce424f697d7bfaf77fba7b6e1..968c64223e0d81e43eb32b5f54b041a15e4fd87f 100644 (file)
@@ -20,24 +20,29 @@ namespace lyx {
 
 
 InsetHFill::InsetHFill()
-       : InsetCommand(InsetCommandParams("hfill"), std::string())
+       : InsetCommand(InsetCommandParams(HFILL_CODE), std::string())
 {}
 
 
+CommandInfo const * InsetHFill::findInfo(std::string const & /* cmdName */)
+{
+       static const char * const paramnames[] = {""};
+       static const CommandInfo info = {0, paramnames, 0};
+       return &info;
+}
+
+
 Inset * InsetHFill::clone() const
 {
        return new InsetHFill;
 }
 
 
-bool InsetHFill::metrics(MetricsInfo &, Dimension & dim) const
+void InsetHFill::metrics(MetricsInfo &, Dimension & dim) const
 {
        dim.wid = 3;
        dim.asc = 3;
        dim.des = 3;
-       bool const changed = dim_ != dim;
-       dim_ = dim;
-       return changed;
 }