]> 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 a64e02d27e64a008f8e6d0b91f403c934f06de6f..10a742c1ce0895dc97f657609ef17f9d954833c9 100644 (file)
@@ -6,10 +6,10 @@
  *      
  *         Copyright (C) 1997 LyX Team (this file was created this year)
  * 
- *======================================================*/
+ * ====================================================== */
 
-#ifndef _INSET_REF_H
-#define _INSET_REF_H
+#ifndef INSET_REF_H
+#define INSET_REF_H
 
 #ifdef __GNUG__
 #pragma interface
@@ -33,15 +33,15 @@ public:
        };
        
        ///
-       InsetRef(): InsetCommand("ref") { flag = InsetRef::REF; }
+       InsetRef() : InsetCommand("ref") { flag = InsetRef::REF; }
        ///
-       InsetRef(string const &, Buffer*);
+       InsetRef(string const &, Buffer *);
        ///
-       InsetRef(InsetCommand const&, Buffer*);
-       ///
-       ~InsetRef();
+       InsetRef(InsetCommand const &, Buffer *);
         ///
-        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,20 +61,20 @@ public:
         ///
         void gotoLabel();
        ///
-       int Latex(FILE *file, signed char fragile);
+       int Latex(ostream &, signed char fragile);
        ///
-       int Latex(string &file, signed char fragile);
+       int Latex(string & file, signed char fragile);
        ///
-       int Linuxdoc(string &file);
+       int Linuxdoc(string & file);
        ///
-       int DocBook(string &file);
+       int DocBook(string & file);
 private:
        /// This function escapes 8-bit characters
        string escape(string const &) const;
        ///
         Ref_Flags flag;
         ///
-       Buffer *master;
+       Buffer * master;
 };
 
 
@@ -82,8 +82,7 @@ inline
 void InsetRef::gotoLabel()
 {
     if (master) {
-       master->gotoLabel(getContents());
+       master->getUser()->gotoLabel(getContents());
     }
 }
-
 #endif