]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetmarginal.h
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetmarginal.h
index cb7a6fca2f98c1ed8d2df2ad1a9cbaaf614db03d..e4331b9faad63807c414bdf62c5cbb8800384f54 100644 (file)
@@ -1,40 +1,51 @@
 // -*- 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 "insetfootlike.h"
 
+
+namespace lyx {
+
 /** The marginal note inset
-  
+
 */
 class InsetMarginal : public InsetFootlike {
 public:
        ///
        InsetMarginal(BufferParams const &);
        ///
-       InsetMarginal(InsetMarginal const &, bool same_id = false);
+       InsetBase::Code lyxCode() const { return InsetBase::MARGIN_CODE; }
        ///
-       Inset * clone(Buffer const &, bool same_id = false) const;
+       int latex(Buffer const &, odocstream &,
+                 OutputParams const &) const;
        ///
-       Inset::Code lyxCode() const { return Inset::MARGIN_CODE; }
+       int plaintext(Buffer const &, odocstream &,
+                     OutputParams const & runparams) const;
        ///
-       int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
+       int docbook(Buffer const &, odocstream &,
+                   OutputParams const & runparams) 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