]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetmarginal.C
changelogs
[lyx.git] / src / insets / insetmarginal.C
index d5ed64da418435fef285f85e413fccd5826c0c22..9147236c8b72e5eefffdb926e0550d6547c58045 100644 (file)
 #include "insetmarginal.h"
 
 #include "gettext.h"
+#include "paragraph.h"
 
 #include "support/std_ostream.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::ostream;
 
@@ -37,7 +40,7 @@ InsetMarginal::InsetMarginal(InsetMarginal const & in)
 }
 
 
-auto_ptr<InsetBase> InsetMarginal::clone() const
+auto_ptr<InsetBase> InsetMarginal::doClone() const
 {
        return auto_ptr<InsetBase>(new InsetMarginal(*this));
 }
@@ -50,12 +53,10 @@ string const InsetMarginal::editMessage() const
 
 
 int InsetMarginal::latex(Buffer const & buf, ostream & os,
-                        LatexRunParams const & runparams) const
+                        OutputParams const & runparams) const
 {
        os << "%\n\\marginpar{";
-
-       int const i = inset.latex(buf, os, runparams);
+       int const i = InsetText::latex(buf, os, runparams);
        os << "%\n}";
-
        return i + 2;
 }