X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finseturl.h;h=d077e33daebfe3ca7833428bf835e62fa48f96dc;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=e76161e78057e5e8e9222b186301574e74eae5c2;hpb=338bca184c36c7d8c3ec51ecb8102fabe0a23fa7;p=lyx.git diff --git a/src/insets/inseturl.h b/src/insets/inseturl.h index e76161e780..d077e33dae 100644 --- a/src/insets/inseturl.h +++ b/src/insets/inseturl.h @@ -4,7 +4,7 @@ * * LyX, The Document Processor * - * Copyright 1997-2000 The LyX Team. + * Copyright 1997-2001 The LyX Team. * * ====================================================== */ @@ -16,50 +16,43 @@ #endif #include "insetcommand.h" -#include struct LaTeXFeatures; -#ifdef SIGC_CXX_NAMESPACES -using SigC::Signal0; -#endif - /** The url inset */ class InsetUrl : public InsetCommand { public: /// explicit - InsetUrl(InsetCommandParams const &); + InsetUrl(InsetCommandParams const &, bool same_id = false); /// - ~InsetUrl(); - /// - Inset * Clone() const { return new InsetUrl(params()); } + virtual Inset * clone(Buffer const &, bool same_id = false) const { + return new InsetUrl(params(), same_id); + } /// - Inset::Code LyxCode() const { return Inset::URL_CODE; } + Inset::Code lyxCode() const { return Inset::URL_CODE; } /// - void Validate(LaTeXFeatures &) const; + void validate(LaTeXFeatures &) const; /// - string getScreenLabel() const; + string const getScreenLabel(Buffer const *) const; /// - EDITABLE Editable() const { return IS_EDITABLE; } + EDITABLE editable() const { return IS_EDITABLE; } /// - char const * EditMessage() const; + void edit(BufferView *, int, int, unsigned int); /// - void Edit(BufferView *, int, int, unsigned int); - /// - bool display() const { return false; } + void edit(BufferView * bv, bool front = true); /// - int Latex(Buffer const *, std::ostream &, - bool fragile, bool free_spc) const; + bool display() const { return false; } /// - int Ascii(Buffer const *, std::ostream &) const; + int latex(Buffer const *, std::ostream &, + bool fragile, bool free_spc) const; /// - int Linuxdoc(Buffer const *, std::ostream &) const; + int ascii(Buffer const *, std::ostream &, int linelen) const; /// - int DocBook(Buffer const *, std::ostream &) const; + int linuxdoc(Buffer const *, std::ostream &) const; /// - Signal0 hide; + int docbook(Buffer const *, std::ostream &) const; }; #endif