X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finseturl.C;h=848584044fbc0508b1678230eac65aaeacd97637;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=ab8aec39dfe7aad63de0b2eb7b83c5e014461046;hpb=d0655188bcdbaeccc1fbcbb5ab997841da7ea6e1;p=lyx.git
diff --git a/src/insets/inseturl.C b/src/insets/inseturl.C
index ab8aec39df..848584044f 100644
--- a/src/insets/inseturl.C
+++ b/src/insets/inseturl.C
@@ -10,30 +10,38 @@
#include "LyXView.h"
#include "debug.h"
#include "frontends/Dialogs.h"
+#include "support/lstrings.h"
+#include "gettext.h"
using std::ostream;
-InsetUrl::InsetUrl(InsetCommandParams const & p)
+InsetUrl::InsetUrl(InsetCommandParams const & p, bool)
: InsetCommand(p)
{}
-void InsetUrl::Edit(BufferView * bv, int, int, unsigned int)
+void InsetUrl::edit(BufferView * bv, int, int, unsigned int)
{
- bv->owner()->getDialogs()->showUrl( this );
+ bv->owner()->getDialogs()->showUrl(this);
}
-string const InsetUrl::getScreenLabel() const
+void InsetUrl::edit(BufferView * bv, bool)
+{
+ edit(bv, 0, 0, 0);
+}
+
+
+string const InsetUrl::getScreenLabel(Buffer const *) const
{
string temp;
- if( getCmdName() == "url" )
+ if (getCmdName() == "url")
temp = _("Url: ");
else
temp = _("HtmlUrl: ");
- if(!getOptions().empty())
+ if (!getOptions().empty())
temp += getOptions();
else
temp += getContents();
@@ -42,7 +50,7 @@ string const InsetUrl::getScreenLabel() const
}
-int InsetUrl::Latex(Buffer const *, ostream & os,
+int InsetUrl::latex(Buffer const *, ostream & os,
bool fragile, bool /*free_spc*/) const
{
if (!getOptions().empty())
@@ -54,7 +62,7 @@ int InsetUrl::Latex(Buffer const *, ostream & os,
}
-int InsetUrl::Ascii(Buffer const *, ostream & os, int linelen) const
+int InsetUrl::ascii(Buffer const *, ostream & os, int) const
{
if (getOptions().empty())
os << "[" << getContents() << "]";
@@ -64,7 +72,7 @@ int InsetUrl::Ascii(Buffer const *, ostream & os, int linelen) const
}
-int InsetUrl::Linuxdoc(Buffer const *, ostream & os) const
+int InsetUrl::linuxdoc(Buffer const *, ostream & os) const
{
os << "<" << getCmdName()
<< " url=\"" << getContents() << "\""
@@ -74,15 +82,15 @@ int InsetUrl::Linuxdoc(Buffer const *, ostream & os) const
}
-int InsetUrl::DocBook(Buffer const *, ostream & os) const
+int InsetUrl::docbook(Buffer const *, ostream & os) const
{
- os << ""
- << getOptions() << "";
+ os << "" << getOptions() << "";
return 0;
}
-void InsetUrl::Validate(LaTeXFeatures & features) const
+void InsetUrl::validate(LaTeXFeatures & features) const
{
- features.url = true;
+ features.require("url");
}