// -*- C++ -*-
/* This file is part of*
- * ======================================================
+ * ======================================================
*
* LyX, The Document Processor
- *
- * Copyright 1997-2000 The LyX Team.
- *
+ *
+ * Copyright 1997-2001 The LyX Team.
+ *
* ====================================================== */
#ifndef INSET_URL_H
#endif
#include "insetcommand.h"
-#include <sigc++/signal_system.h>
struct LaTeXFeatures;
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-#endif
-
-/** The url inset
+/** The url inset
*/
class InsetUrl : public InsetCommand {
public:
///
explicit
- InsetUrl(InsetCommandParams const &);
+ InsetUrl(InsetCommandParams const &, bool same_id = false);
+ ///
+ virtual Inset * clone(Buffer const &, bool same_id = false) const {
+ return new InsetUrl(params(), same_id);
+ }
///
- ~InsetUrl();
- ///
- Inset * Clone() const { return new InsetUrl(params()); }
+ 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 const getScreenLabel(Buffer const *) const;
///
- string getScreenLabel() const;
+ EDITABLE editable() const { return IS_EDITABLE; }
///
- EDITABLE Editable() const { return IS_EDITABLE; }
+ void edit(BufferView *, int, int, unsigned int);
///
- char const * EditMessage() const;
+ 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 &,
+ int latex(Buffer const *, std::ostream &,
bool fragile, bool free_spc) const;
///
- int Ascii(Buffer const *, std::ostream &) 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