]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insethfill.C
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / insethfill.C
index 03d7abb2fac96023692e1d0776519b2e8e4d2e8f..25146edb54baee80b487483cd204a718183b4d7f 100644 (file)
 #include <config.h>
 
 #include "insethfill.h"
+#include "gettext.h"
 
 #include "support/std_ostream.h"
 
-using lyx::docstring;
+
+namespace lyx {
 
 using std::ostream;
 
@@ -41,19 +43,11 @@ void InsetHFill::metrics(MetricsInfo &, Dimension & dim) const
 
 docstring const InsetHFill::getScreenLabel(Buffer const &) const
 {
-       return lyx::from_ascii(getContents());
+       return _("Horizontal Fill");
 }
 
 
-int InsetHFill::latex(Buffer const &, ostream & os,
-                     OutputParams const &) const
-{
-       os << getCommand();
-       return 0;
-}
-
-
-int InsetHFill::plaintext(Buffer const &, lyx::odocstream & os,
+int InsetHFill::plaintext(Buffer const &, odocstream & os,
                      OutputParams const &) const
 {
        os << '\t';
@@ -61,7 +55,7 @@ int InsetHFill::plaintext(Buffer const &, lyx::odocstream & os,
 }
 
 
-int InsetHFill::docbook(Buffer const &, std::ostream & os,
+int InsetHFill::docbook(Buffer const &, odocstream & os,
                        OutputParams const &) const
 {
        os << '\n';
@@ -79,3 +73,6 @@ bool InsetHFill::isSpace() const
 {
        return true;
 }
+
+
+} // namespace lyx