]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_hullinset.h
revert Buffer LyxText->InsetText commit
[lyx.git] / src / mathed / math_hullinset.h
index a951d77da276c205a5b08d53a4faf1128d0cc590..30c9e8cc083545481b68488e475f1cdb57fb3baa 100644 (file)
@@ -15,8 +15,6 @@
 #include "math_gridinset.h"
 
 
-class LaTeXFeatures;
-
 /// This provides an interface between "LyX insets" and "LyX math insets"
 class MathHullInset : public MathGridInset {
 public:
@@ -25,7 +23,7 @@ public:
        ///
        explicit MathHullInset(std::string const & type);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
+       std::auto_ptr<InsetBase> clone() const;
        ///
        mode_type currentMode() const;
        ///
@@ -94,9 +92,32 @@ public:
        ///
        void infoize(std::ostream & os) const;
 
+       ///
+       void write(Buffer const &, std::ostream & os) const;
+       ///
+       void read(Buffer const &, LyXLex & lex);
+       ///
+       int latex(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
+       ///
+       int plaintext(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
+       ///
+       int linuxdoc(Buffer const &, std::ostream &,
+                    OutputParams const &) const;
+       ///
+       int docbook(Buffer const &, std::ostream &,
+                   OutputParams const &) const;
+
+       ///
+       //bool insetAllowed(Code code) const;
+       ///
+       //void addPreview(lyx::graphics::PreviewLoader &) const;
+
+
 protected:
        ///
-       DispatchResult priv_dispatch(LCursor & cur, FuncRequest const & cmd);
+       void priv_dispatch(LCursor & cur, FuncRequest const & cmd);
        ///
        std::string eolString(row_type row, bool fragile) const;
 
@@ -145,8 +166,6 @@ public:
 
        /// what appears in the minibuffer when opening
        virtual std::string const editMessage() const;
-       /// get the absolute document x,y of the cursor
-       virtual void getCursorPos(BufferView & bv, int & x, int & y) const;
        ///
        virtual void getCursorDim(int &, int &) const;
        ///
@@ -172,32 +191,13 @@ public:
        ///
        bool display() const;
        ///
-       void edit(LCursor & cur, bool);
-       ///
-       void edit(LCursor & cur, int, int);
-       ///
-       Code MathHullInset::lyxCode() const;
+       Code lyxCode() const;
 
 private:
        /// common base for handling accents
        void handleAccent(BufferView & bv, std::string const & arg,
                std::string const & name);
 
-       /// lfun handler
-       DispatchResult lfunMousePress(LCursor &, FuncRequest const &);
-       ///
-       DispatchResult lfunMouseRelease(LCursor &, FuncRequest const &);
-       ///
-       DispatchResult lfunMouseMotion(LCursor &, FuncRequest const &);
-       ///
-       int x() const { return xo_; }
-       ///
-       int y() const { return yo_; }
-       ///
-       int yo_;
-       ///
-       int xo_;
-
 protected:
 
        /** Find the PreviewLoader, add a LaTeX snippet to it and
@@ -214,7 +214,7 @@ protected:
        void handleFont2(LCursor &, std::string const & arg);
 };
 
-// We don't really mess want around with mathed stuff outside mathed.
+// We don't really want to mess around with mathed stuff outside mathed.
 // So do it here.
 void mathDispatch(LCursor & cur, FuncRequest const & cmd);
 #endif