X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finseturl.C;h=ae2c16a9fe1028ce8dfef62db6b4a6dfe2470875;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=ec571cce0f87ba373d3f98e8e442822f45d6d856;hpb=85798535a19919e82cc94a177a8414c542a9c5bf;p=lyx.git diff --git a/src/insets/inseturl.C b/src/insets/inseturl.C index ec571cce0f..ae2c16a9fe 100644 --- a/src/insets/inseturl.C +++ b/src/insets/inseturl.C @@ -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; @@ -167,7 +174,7 @@ string InsetUrl::getScreenLabel() const int InsetUrl::Latex(ostream & os, - signed char fragile, bool /*free_spc*/) const + bool fragile, bool /*free_spc*/) const { if (!getOptions().empty()) os << getOptions() + ' '; @@ -178,6 +185,16 @@ int InsetUrl::Latex(ostream & os, } +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()