]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insethfill.C
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / insethfill.C
index 96d05c336a4f0d24316d4c479ccd58af3830a1c0..25146edb54baee80b487483cd204a718183b4d7f 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;
 
@@ -42,15 +43,7 @@ void InsetHFill::metrics(MetricsInfo &, Dimension & dim) const
 
 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");
 }
 
 
@@ -62,7 +55,7 @@ int InsetHFill::plaintext(Buffer const &, odocstream & os,
 }
 
 
-int InsetHFill::docbook(Buffer const &, std::ostream & os,
+int InsetHFill::docbook(Buffer const &, odocstream & os,
                        OutputParams const &) const
 {
        os << '\n';
@@ -80,3 +73,6 @@ bool InsetHFill::isSpace() const
 {
        return true;
 }
+
+
+} // namespace lyx