]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.h
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetref.h
index 41bbdbe5365a85165a9625d919d484981d5ef054..69dff7cac5392c9e45380e501e328ec86f4b1c5c 100644 (file)
@@ -6,15 +6,12 @@
  *
  * \author José Matos
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef INSET_REF_H
 #define INSET_REF_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "insetcommand.h"
 
@@ -38,33 +35,35 @@ public:
        ///
        static string const & getName(int type);
 
+
+       InsetRef(InsetCommandParams const &, Buffer const &);
+
+       InsetRef(InsetRef const &);
+
+       ~InsetRef();
        ///
-       InsetRef(InsetCommandParams const &, Buffer const &, bool same_id = false);
-       ///
-       virtual Inset * clone(Buffer const & buffer, bool same_id = false) const {
-               return new InsetRef(params(), buffer, same_id);
+       virtual std::auto_ptr<InsetBase> clone() const {
+               return std::auto_ptr<InsetBase>(new InsetRef(*this));
        }
        ///
-       string const getScreenLabel(Buffer const *) const;
-       ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       Inset::Code lyxCode() const { return Inset::REF_CODE; }
+       string const getScreenLabel(Buffer const &) const;
        ///
-       void edit(BufferView *, int, int, mouse_button::state);
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       void edit(BufferView * bv, bool front = true);
+       InsetOld::Code lyxCode() const { return InsetOld::REF_CODE; }
        ///
        bool display() const { return false; }
        ///
-       int latex(Buffer const *, std::ostream &,
-                 bool fragile, bool free_spc) const;
+       int latex(Buffer const &, std::ostream &,
+                 LatexRunParams const &) const;
        ///
-       int ascii(Buffer const *, std::ostream &, int linelen) const;
+       int ascii(Buffer const &, std::ostream &, int linelen) const;
        ///
-       int linuxdoc(Buffer const *, std::ostream &) const;
+       int linuxdoc(Buffer const &, std::ostream &) const;
        ///
-       int docbook(Buffer const *, std::ostream &, bool mixcont) const;
+       int docbook(Buffer const &, std::ostream &, bool mixcont) const;
        ///
        void validate(LaTeXFeatures & features) const;
 private: