]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseturl.h
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / inseturl.h
index aaf410b59c497612afbeca5e8171c69e100be751..81ae62d3705f692a19d5c063a532e9d18b495bf9 100644 (file)
@@ -4,7 +4,7 @@
  *
  *           LyX, The Document Processor
  *      
- *         Copyright (C) 1997 LyX Team (this file was created this year)
+ *         Copyright 1997-2000 The LyX Team.
  * 
  * ====================================================== */
 
@@ -38,8 +38,10 @@ public:
                flag = InsetUrl::URL;
        }
        ///
+       explicit
        InsetUrl(string const &);
        ///
+       explicit
        InsetUrl(InsetCommand const &);
        ///
        InsetUrl(string const &, string const &, string const &);
@@ -52,13 +54,13 @@ public:
        ///
        void Validate(LaTeXFeatures &) const;
        ///
-       void Edit(int, int);
+       void Edit(BufferView *, int, int, unsigned int);
        ///
-       unsigned char Editable() const {
-               return 1;
+       EDITABLE Editable() const {
+               return IS_EDITABLE;
        }
        ///
-       char const * EditMessage() {return "Opened Url";}
+       char const * EditMessage() const;
         ///
        bool display() const { return false; }
        ///
@@ -70,16 +72,24 @@ public:
         ///
         void gotoLabel();
        ///
-       int Latex(FILE * file, signed char fragile);
+       int Latex(std::ostream &, bool fragile, bool free_spc) const;
        ///
-       int Latex(string & file, signed char fragile);
+       int Ascii(std::ostream &) const;
        ///
-       int Linuxdoc(string & file);
+       int Linuxdoc(std::ostream &) const;
        ///
-       int DocBook(string & file);
+       int DocBook(std::ostream &) const;
        ///
        static void CloseUrlCB(FL_OBJECT *, long data);
 private:
+       ///
+       struct Holder {
+               InsetUrl * inset;
+               BufferView * view;
+       };
+       ///
+       Holder holder;
+       
        ///
         Url_Flags flag;
        ///