*
* LyX, The Document Processor
*
- * Copyright 1997-2000 The LyX Team.
+ * Copyright 1997-2001 The LyX Team.
*
* ====================================================== */
#endif
#include "insetcommand.h"
-#include <sigc++/signal_system.h>
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<void> hide;
+ int docbook(Buffer const *, std::ostream &) const;
};
#endif