]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRef.h
Change the interface to a paragraph's layout. We still store a LayoutPtr, but now...
[lyx.git] / src / mathed / InsetMathRef.h
index 25d1391e50cf795d8818cacc11306cd497c8e7a1..a31165e1c82a50b52fbd9a11174fa167830c7311 100644 (file)
 #define REF_INSET_H
 
 
-#include "InsetMathCommand.h"
+#include "CommandInset.h"
 
 
 namespace lyx {
 class Buffer;
 
 // for \ref
-class RefInset : public CommandInset {
+class InsetMathRef : public CommandInset {
 public:
        ///
-       RefInset();
+       InsetMathRef();
        ///
-       explicit RefInset(docstring const & data);
+       explicit InsetMathRef(docstring const & data);
        ///
        //void write(WriteStream & os) const;
        ///
@@ -35,10 +35,12 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       virtual RefInset * asRefInset() { return this; }
+       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;
 
        struct ref_type_info {
                ///
@@ -55,12 +57,12 @@ public:
        static docstring const & getName(int type);
 protected:
        ///
-       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
-       bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
+       bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
 private:
        ///
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 };