#ifndef MATH_INSET_H
#define MATH_INSET_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
*/
-
+class OutputParams;
class MathArrayInset;
class MathAMSArrayInset;
class MathCharInset;
virtual bool takesLimits() const { return false; }
/// char char code if possible
- virtual void handleFont(string const &) {}
+ virtual void handleFont(std::string const &) {}
/// is this inset equal to a given other inset?
virtual bool match(MathAtom const &) const { return false; }
/// replace things by other things
/// 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
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 &);