]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insethfill.C
more cleanup:
[lyx.git] / src / insets / insethfill.C
index 18fbc104774a5440e39bf08aff91821e8aeed164..1f20b3deab603dd7bf1b3ff6a7ece1eb3e2135ba 100644 (file)
 #include <config.h>
 
 #include "insethfill.h"
-
 #include "gettext.h"
 
 #include "support/std_ostream.h"
 
-using lyx::docstring;
-using lyx::odocstream;
+
+namespace lyx {
 
 using std::ostream;
 
@@ -33,12 +32,14 @@ std::auto_ptr<InsetBase> InsetHFill::doClone() const
 }
 
 
-void InsetHFill::metrics(MetricsInfo &, Dimension & dim) const
+bool InsetHFill::metrics(MetricsInfo &, Dimension & dim) const
 {
        dim.wid = 3;
        dim.asc = 3;
        dim.des = 3;
+       bool const changed = dim_ != dim;
        dim_ = dim;
+       return changed;
 }
 
 
@@ -48,14 +49,6 @@ docstring const InsetHFill::getScreenLabel(Buffer const &) const
 }
 
 
-int InsetHFill::latex(Buffer const &, odocstream & os,
-                     OutputParams const &) const
-{
-       os << getCommand() << "{}";
-       return 0;
-}
-
-
 int InsetHFill::plaintext(Buffer const &, odocstream & os,
                      OutputParams const &) const
 {
@@ -82,3 +75,6 @@ bool InsetHFill::isSpace() const
 {
        return true;
 }
+
+
+} // namespace lyx