]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.h
pos=string::npos for regex not found, use handcoded transform in lstring.C, fix the...
[lyx.git] / src / insets / insetref.h
index 857e651402239dca803e7c966d9645a222724034..10a742c1ce0895dc97f657609ef17f9d954833c9 100644 (file)
@@ -6,7 +6,7 @@
  *      
  *         Copyright (C) 1997 LyX Team (this file was created this year)
  * 
- *======================================================*/
+ * ====================================================== */
 
 #ifndef INSET_REF_H
 #define INSET_REF_H
@@ -38,10 +38,10 @@ public:
        InsetRef(string const &, Buffer *);
        ///
        InsetRef(InsetCommand const &, Buffer *);
-       ///
-       ~InsetRef();
         ///
-        Inset * Clone() { return new InsetRef (getCommand(), master); }
+        Inset * Clone() const {
+               return new InsetRef (getCommand(), master);
+       }
        ///
        Inset::Code LyxCode() const { return Inset::REF_CODE; }
        ///
@@ -51,7 +51,7 @@ public:
                return 1;
        }
         ///
-       bool Display() const { return false; }
+       bool display() const { return false; }
        ///
        string getScreenLabel() const;
        ///
@@ -61,7 +61,7 @@ public:
         ///
         void gotoLabel();
        ///
-       int Latex(FILE * file, signed char fragile);
+       int Latex(ostream &, signed char fragile);
        ///
        int Latex(string & file, signed char fragile);
        ///
@@ -82,7 +82,7 @@ inline
 void InsetRef::gotoLabel()
 {
     if (master) {
-       master->gotoLabel(getContents());
+       master->getUser()->gotoLabel(getContents());
     }
 }
 #endif