]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRef.h
Whitespace.
[lyx.git] / src / mathed / InsetMathRef.h
index 7683ca587fafc13fe1736d227466fcc9ad4434bd..7b788c78145cdda6d94153cbcc06f63a4479e16a 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -23,9 +23,9 @@ class Buffer;
 class InsetMathRef : public CommandInset {
 public:
        ///
-       InsetMathRef();
+       InsetMathRef(Buffer * buf);
        ///
-       explicit InsetMathRef(docstring const & data);
+       explicit InsetMathRef(Buffer * buf, docstring const & data);
        ///
        //void write(WriteStream & os) const;
        ///
@@ -38,7 +38,7 @@ public:
        virtual InsetMathRef * asRefInset() { return this; }
 
        /// docbook output
-       int docbook(Buffer const & buf, odocstream & os, OutputParams const &) const;
+       int docbook(odocstream & os, OutputParams const &) const;
        /// generate something that will be understood by the Dialogs.
        std::string const createDialogStr(std::string const & name) const;
 
@@ -55,6 +55,9 @@ public:
        static int getType(docstring const & name);
        ///
        static docstring const & getName(int type);
+       ///
+       InsetCode lyxCode() const { return MATH_REF_CODE; }
+
 protected:
        ///
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
@@ -62,7 +65,7 @@ protected:
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
 private:
        ///
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 };