]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseturl.C
Hopefully fixed the redo problems with insets!
[lyx.git] / src / insets / inseturl.C
index b95bc270af6ac96a00976210b768fecb7f4eb572..2be9d6d96f648a49064bb6dff13329412c6cdc61 100644 (file)
 #include "LyXView.h"
 #include "debug.h"
 #include "frontends/Dialogs.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 );
 }
 
 
-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" )
@@ -42,7 +49,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 +61,7 @@ int InsetUrl::Latex(Buffer const *, ostream & os,
 }
 
 
-int InsetUrl::Ascii(Buffer const *, ostream & os, int) const
+int InsetUrl::ascii(Buffer const *, ostream & os, int) const
 {
        if (getOptions().empty())
                os << "[" << getContents() << "]";
@@ -64,7 +71,7 @@ int InsetUrl::Ascii(Buffer const *, ostream & os, int) const
 }
 
 
-int InsetUrl::Linuxdoc(Buffer const *, ostream & os) const
+int InsetUrl::linuxdoc(Buffer const *, ostream & os) const
 {
        os << "<" << getCmdName()
           << " url=\""  << getContents() << "\""
@@ -74,7 +81,7 @@ 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 << "<ulink url=\"" << getContents() << "\">"
           << getOptions() << "</ulink>";
@@ -82,7 +89,7 @@ int InsetUrl::DocBook(Buffer const *, ostream & os) const
 }
 
 
-void InsetUrl::Validate(LaTeXFeatures & features) const
+void InsetUrl::validate(LaTeXFeatures & features) const
 {
-       features.url = true;
+       features.require("url");
 }