]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insethfill.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insethfill.C
index 159d6c81f19676be77418d6310742db3815f0d8c..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;
 
@@ -31,26 +32,20 @@ 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;
 }
 
 
 docstring const InsetHFill::getScreenLabel(Buffer const &) const
 {
-       return lyx::from_ascii(getContents());
-}
-
-
-int InsetHFill::latex(Buffer const &, odocstream & os,
-                     OutputParams const &) const
-{
-       os << getCommand() << "{}";
-       return 0;
+       return _("Horizontal Fill");
 }
 
 
@@ -80,3 +75,6 @@ bool InsetHFill::isSpace() const
 {
        return true;
 }
+
+
+} // namespace lyx