]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseturl.h
pos=string::npos for regex not found, use handcoded transform in lstring.C, fix the...
[lyx.git] / src / insets / inseturl.h
index 9d5552f929c98ad4d527ee481cc39dbcf305e9c6..b7478a114faa08ec2f58fcb1e1e311d13bc0d534 100644 (file)
@@ -1,12 +1,12 @@
 // -*- C++ -*-
 /* This file is part of*
- * ======================================================
+ * ====================================================== 
  *
  *           LyX, The Document Processor
  *      
  *         Copyright (C) 1997 LyX Team (this file was created this year)
  * 
- * ======================================================*/
+ * ====================================================== */
 
 #ifndef INSET_URL_H
 #define INSET_URL_H
@@ -23,7 +23,7 @@ struct LaTeXFeatures;
 
 /** The url inset  
  */
-class InsetUrl: public InsetCommand {
+class InsetUrl : public InsetCommand {
 public:
         ///
         enum Url_Flags {
@@ -34,7 +34,7 @@ public:
        };
        
        ///
-       InsetUrl(): InsetCommand("url"), fd_form_url(0) {
+       InsetUrl() : InsetCommand("url"), fd_form_url(0) {
                flag = InsetUrl::URL;
        }
        ///
@@ -46,7 +46,7 @@ public:
        ///
        ~InsetUrl();
         ///
-        Inset * Clone() { return new InsetUrl(getCommand()); }
+        Inset * Clone() const { return new InsetUrl(getCommand()); }
        ///
        Inset::Code LyxCode() const { return Inset::URL_CODE; }
        ///
@@ -58,9 +58,9 @@ public:
                return 1;
        }
        ///
-       char const * EditMessage() {return "Opened Url";}
+       char const * EditMessage() const {return _("Opened Url");}
         ///
-       bool Display() const { return false; }
+       bool display() const { return false; }
        ///
        string getScreenLabel() const;
        ///
@@ -70,7 +70,7 @@ public:
         ///
         void gotoLabel();
        ///
-       int Latex(FILE * file, signed char fragile);
+       int Latex(ostream &, signed char fragile);
        ///
        int Latex(string & file, signed char fragile);
        ///