]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfoot.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetfoot.C
index 0ed4db0936ad0cca6a193579f68fcf816d5eb102..b9be27578b7835d9ee2798557114dcf6c0365da1 100644 (file)
@@ -24,6 +24,8 @@
 #include "support/std_ostream.h"
 
 
+namespace lyx {
+
 using std::string;
 using std::auto_ptr;
 using std::ostream;
@@ -33,7 +35,7 @@ InsetFoot::InsetFoot(BufferParams const & bp)
        : InsetFootlike(bp)
 {
        setLabel(_("foot"));
-       setInsetName("Foot");
+       setInsetName(from_ascii("Foot"));
 }
 
 
@@ -41,7 +43,7 @@ InsetFoot::InsetFoot(InsetFoot const & in)
        : InsetFootlike(in)
 {
        setLabel(_("foot"));
-       setInsetName("Foot");
+       setInsetName(from_ascii("Foot"));
 }
 
 
@@ -51,13 +53,13 @@ auto_ptr<InsetBase> InsetFoot::doClone() const
 }
 
 
-string const InsetFoot::editMessage() const
+docstring const InsetFoot::editMessage() const
 {
        return _("Opened Footnote Inset");
 }
 
 
-int InsetFoot::latex(Buffer const & buf, ostream & os,
+int InsetFoot::latex(Buffer const & buf, odocstream & os,
                     OutputParams const & runparams_in) const
 {
        OutputParams runparams = runparams_in;
@@ -78,7 +80,7 @@ int InsetFoot::latex(Buffer const & buf, ostream & os,
 }
 
 
-int InsetFoot::docbook(Buffer const & buf, ostream & os,
+int InsetFoot::docbook(Buffer const & buf, odocstream & os,
                       OutputParams const & runparams) const
 {
        os << "<footnote>";
@@ -87,3 +89,6 @@ int InsetFoot::docbook(Buffer const & buf, ostream & os,
 
        return i;
 }
+
+
+} // namespace lyx