]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insethfill.C
changelogs
[lyx.git] / src / insets / insethfill.C
index 2fc778ced0a447ed55cc8045a7004c82e9e506a5..32e4bb40bdc9446a451deb26914559d11daeb599 100644 (file)
@@ -18,11 +18,11 @@ using std::ostream;
 
 
 InsetHFill::InsetHFill()
-       : InsetCommand(InsetCommandParams("hfill"))
+       : InsetCommand(InsetCommandParams("hfill"), std::string())
 {}
 
 
-std::auto_ptr<InsetBase> InsetHFill::clone() const
+std::auto_ptr<InsetBase> InsetHFill::doClone() const
 {
        return std::auto_ptr<InsetBase>(new InsetHFill);
 }
@@ -77,5 +77,11 @@ int InsetHFill::docbook(Buffer const &, std::ostream & os,
 
 void InsetHFill::write(Buffer const &, ostream & os) const
 {
-       os << "\n\\hfill \n";
+       os << "\n\\hfill\n";
+}
+
+
+bool InsetHFill::isSpace() const
+{
+       return true;
 }