]> 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 a2c907025b91cb6b5fb9cb01488ce012923e9fa1..5a50a637c37d1ce23fb1f8782216ccd7d93fa0f3 100644 (file)
@@ -1,51 +1,48 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
- * 
- *           LyX, The Document Processor
+/**
+ * \file insetmarginal.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           Copyright 1998 The LyX Team.
+ * \author Jürgen Vigna
+ * \author Lars Gullik Bjønnes
  *
- *======================================================
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef INSETMARGINAL_H
 #define INSETMARGINAL_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
-#include "insetcollapsable.h"
+#include "insetfootlike.h"
+
 
-class Painter;
+namespace lyx {
 
 /** The marginal note inset
-  
+
 */
-class InsetMarginal : public InsetCollapsable {
+class InsetMarginal : public InsetFootlike {
 public:
        ///
-       explicit
-       InsetMarginal();
-       ///
-       ~InsetMarginal() {}
-       ///
-       void Write(Buffer const * buf, ostream & os) const;
+       InsetMarginal(BufferParams const &);
        ///
-       Inset * Clone() const;
+       InsetBase::Code lyxCode() const { return InsetBase::MARGIN_CODE; }
        ///
-       Inset::Code LyxCode() const { return Inset::MARGIN_CODE; }
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const & runparams) const;
        ///
-       const char * EditMessage() const;
-       ///
-       bool InsertInset(BufferView *, Inset * inset);
-       ///
-       bool InsertInsetAllowed(Inset * inset) const;
-       ///
-       LyXFont GetDrawFont(BufferView *, LyXParagraph * par, int pos) const;
+       virtual docstring const editMessage() const;
+protected:
+       InsetMarginal(InsetMarginal const &);
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
+
+} // namespace lyx
+
 #endif