]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.h
more IU
[lyx.git] / src / mathed / math_inset.h
index 02b9420b0ecf62f10885fbe0af403e3b7aac28f3..779e590fa38925b9bf8b6341770de4b4abbac321 100644 (file)
@@ -1,29 +1,22 @@
 // -*- C++ -*-
 /**
- *  File:        math_inset.h
- *  Purpose:     Declaration of insets for mathed
- *  Author:      Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
- *  Created:     January 1996
- *  Description: Math paragraph and objects for a WYSIWYG math editor.
+ * \file math_inset.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *  Dependencies: Xlib, XForms
+ * \author Alejandro Aguilar Sierra
+ * \author André Pönitz
  *
- *  Copyright: 1996, 1997 Alejandro Aguilar Sierra
- *
- *   Version: 0.8beta, Math & Lyx project.
- *
- *   You are free to use and modify this code under the terms of
- *   the GNU General Public Licence version 2 or later.
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef MATH_INSET_H
 #define MATH_INSET_H
 
-#include <config.h>
-
-#include "LString.h"
 #include "insets/insetbase.h"
 
+#include <string>
+
 /**
 
 Abstract base class for all math objects.  A math insets is for use of the
@@ -38,7 +31,7 @@ inclusion in the "real LyX insets" FormulaInset and FormulaMacroInset.
 
 */
 
-
+class OutputParams;
 class MathArrayInset;
 class MathAMSArrayInset;
 class MathCharInset;
@@ -70,7 +63,6 @@ class MathMLStream;
 class WriteStream;
 class InfoStream;
 
-class LaTeXFeatures;
 class BufferView;
 class UpdatableInset;
 class MathMacroTemplate;
@@ -88,8 +80,6 @@ public:
        /// our members behave nicely...
        MathInset() {}
 
-       /// reproduce itself
-       virtual MathInset * clone() const = 0;
        /// substitutes macro arguments if necessary
        virtual void substitute(MathMacro const & macro);
        /// draw selection between two positions
@@ -213,12 +203,8 @@ public:
        /// identifies things that can get \limits or \nolimits
        virtual bool takesLimits() const { return false; }
 
-       /// request "external features"
-       virtual void validate(LaTeXFeatures &) const {}
        /// char char code if possible
-       virtual void handleFont(string const &) {}
-       /// is this inset equal to a given other inset?
-       virtual bool match(MathAtom const &) const { return false; }
+       virtual void handleFont(std::string const &) {}
        /// replace things by other things
        virtual void replace(ReplaceData &) {}
        /// do we contain a given subsequence?
@@ -249,32 +235,25 @@ public:
        /// describe content if cursor behind
        virtual void infoize2(std::ostream &) const {}
        /// plain ascii output
-       virtual int ascii(std::ostream & os, int) const;
+       virtual int plaintext(std::ostream & os, OutputParams const &) const;
        /// linuxdoc output
-       virtual int linuxdoc(std::ostream & os) const;
+       virtual int linuxdoc(std::ostream & os, OutputParams const &) const;
        /// docbook output
-       virtual int docbook(std::ostream & os, bool) const;
+       virtual int docbook(std::ostream & os, OutputParams const &) const;
 
        /// dump content to stderr for debugging
        virtual void dump() const;
 
-       /// LyXInset stuff
-       /// write labels into a list
-       virtual void getLabelList(std::vector<string> &) const {}
        /// LyXInset stuff
        virtual bool numberedType() const { return false; }
        /// hull type
-       virtual string const & getType() const;
+       virtual std::string const & getType() const;
        /// change type
-       virtual void mutate(string const &) {}
+       virtual void mutate(std::string const &) {}
        /// how is the inset called in the .lyx file?
-       virtual string fileInsetLabel() const;
+       virtual std::string fileInsetLabel() const;
        /// usually the latex name
-       virtual string name() const;
-
-protected:
-       /// a dirty hack
-       BufferView * view() const;
+       virtual std::string name() const;
 };
 
 std::ostream & operator<<(std::ostream &, MathAtom const &);