]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetmarginal.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetmarginal.h
index 1ee63aa9016a303a923d636fd468c075511d63b7..5a50a637c37d1ce23fb1f8782216ccd7d93fa0f3 100644 (file)
@@ -7,7 +7,7 @@
  * \author Jürgen Vigna
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef INSETMARGINAL_H
@@ -16,6 +16,9 @@
 
 #include "insetfootlike.h"
 
+
+namespace lyx {
+
 /** The marginal note inset
 
 */
@@ -24,20 +27,22 @@ public:
        ///
        InsetMarginal(BufferParams const &);
        ///
-       InsetMarginal(InsetMarginal const &);
-       ///
-       //InsetMarginal(InsetMarginal const &, bool same_id);
-       ///
-       Inset * clone(Buffer const &) const;
+       InsetBase::Code lyxCode() const { return InsetBase::MARGIN_CODE; }
        ///
-       //Inset * clone(Buffer const &, bool same_id) const;
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       Inset::Code lyxCode() const { return Inset::MARGIN_CODE; }
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const & runparams) const;
        ///
-       int latex(Buffer const *, std::ostream &,
-                 LatexRunParams const &) const;
-       ///
-       string const editMessage() const;
+       virtual docstring const editMessage() const;
+protected:
+       InsetMarginal(InsetMarginal const &);
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
+
+} // namespace lyx
+
 #endif