]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetmarginal.C
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetmarginal.C
index 80980c9fd15e7e9c96feebda74c9a2405466a2e9..1a0eb1b5bece05e73a06a2be8b4033ca650be9d9 100644 (file)
@@ -24,6 +24,9 @@
 #include "debug.h"
 
 
+using std::ostream;
+
+
 InsetMarginal::InsetMarginal()
        : InsetFootlike()
 {
@@ -32,6 +35,20 @@ InsetMarginal::InsetMarginal()
 }
 
 
+InsetMarginal::InsetMarginal(InsetMarginal const & in, bool same_id)
+       : InsetFootlike(in, same_id)
+{
+       setLabel(_("margin"));
+       setInsetName("Marginal");
+}
+
+
+Inset * InsetMarginal::clone(Buffer const &, bool same_id) const
+{
+       return new InsetMarginal(*const_cast<InsetMarginal *>(this), same_id);
+}
+
+
 string const InsetMarginal::editMessage() const
 {
        return _("Opened Marginal Note Inset");
@@ -39,7 +56,7 @@ string const InsetMarginal::editMessage() const
 
 
 int InsetMarginal::latex(Buffer const * buf,
-                        std::ostream & os, bool fragile, bool fp) const
+                        ostream & os, bool fragile, bool fp) const
 {
        os << "%\n\\marginpar{";