X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finseturl.h;h=d077e33daebfe3ca7833428bf835e62fa48f96dc;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=6821babd741047a7c8f85131093257e4ea979c6b;hpb=83acbbd5237373926c629855379e1df9a04209b2;p=lyx.git diff --git a/src/insets/inseturl.h b/src/insets/inseturl.h index 6821babd74..d077e33dae 100644 --- a/src/insets/inseturl.h +++ b/src/insets/inseturl.h @@ -25,30 +25,34 @@ class InsetUrl : public InsetCommand { public: /// explicit - InsetUrl(InsetCommandParams const &); - /// - Inset * Clone(Buffer const &) const { return new InsetUrl(params()); } + InsetUrl(InsetCommandParams const &, bool same_id = false); /// - Inset::Code LyxCode() const { return Inset::URL_CODE; } + virtual Inset * clone(Buffer const &, bool same_id = false) const { + return new InsetUrl(params(), same_id); + } /// - void Validate(LaTeXFeatures &) const; + Inset::Code lyxCode() const { return Inset::URL_CODE; } /// - string const getScreenLabel() const; + void validate(LaTeXFeatures &) const; /// - EDITABLE Editable() const { return IS_EDITABLE; } + string const getScreenLabel(Buffer const *) const; + /// + EDITABLE editable() const { return IS_EDITABLE; } + /// + void edit(BufferView *, int, int, unsigned int); + /// + void edit(BufferView * bv, bool front = true); /// - void Edit(BufferView *, int, int, unsigned int); - /// bool display() const { return false; } /// - int Latex(Buffer const *, std::ostream &, - bool fragile, bool free_spc) const; + int latex(Buffer const *, std::ostream &, + bool fragile, bool free_spc) const; /// - int Ascii(Buffer const *, std::ostream &, int linelen) const; + int ascii(Buffer const *, std::ostream &, int linelen) const; /// - int Linuxdoc(Buffer const *, std::ostream &) const; + int linuxdoc(Buffer const *, std::ostream &) const; /// - int DocBook(Buffer const *, std::ostream &) const; + int docbook(Buffer const *, std::ostream &) const; }; #endif