]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseturl.C
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / inseturl.C
index bec7fc1ca7c176e2b0f004f32cda4ba5157f00e2..ae2c16a9fe1028ce8dfef62db6b4a6dfe2470875 100644 (file)
@@ -14,6 +14,7 @@
 #include "LaTeXFeatures.h"
 #include "lyx_gui_misc.h" // CancelCloseBoxCB
 
+using std::ostream;
 
 InsetUrl::InsetUrl(string const & cmd)
        : fd_form_url(0)
@@ -109,6 +110,12 @@ extern "C" void C_InsetUrl_CloseUrlCB(FL_OBJECT * ob, long data)
 }
 
 
+char const * InsetUrl::EditMessage() const 
+{
+       return _("Opened Url");
+}
+
+
 void InsetUrl::Edit(BufferView * bv, int, int, unsigned int)
 {
        static int ow = -1, oh;
@@ -166,7 +173,8 @@ string InsetUrl::getScreenLabel() const
 }
 
 
-int InsetUrl::Latex(ostream & os, signed char fragile, bool free_spc) const
+int InsetUrl::Latex(ostream & os,
+                   bool fragile, bool /*free_spc*/) const
 {
        if (!getOptions().empty())
                os << getOptions() + ' ';
@@ -177,6 +185,16 @@ int InsetUrl::Latex(ostream & os, signed char fragile, bool free_spc) const
 }
 
 
+int InsetUrl::Ascii(ostream & os) const
+{
+       if (getOptions().empty())
+               os << "[" << getContents() << "]";
+       else
+               os << "[" << getContents() << "||" <<  getOptions() << "]";
+       return 0;
+}
+
+
 int InsetUrl::Linuxdoc(ostream & os) const
 {
        os << "<" << getCmdName()