3 * \file InsetHyperlink.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef INSET_HYPERLINK_H
13 #define INSET_HYPERLINK_H
16 #include "InsetCommand.h"
23 /** The hyperlink inset
25 class InsetHyperlink : public InsetCommand {
29 InsetHyperlink(InsetCommandParams const &);
31 InsetCode lyxCode() const { return HYPERLINK_CODE; }
33 void validate(LaTeXFeatures &) const;
35 docstring const getScreenLabel(Buffer const &) const;
37 EDITABLE editable() const { return IS_EDITABLE; }
39 DisplayType display() const { return Inline; }
41 int latex(Buffer const &, odocstream &,
42 OutputParams const &) const;
44 int plaintext(Buffer const &, odocstream &,
45 OutputParams const &) const;
47 int docbook(Buffer const &, odocstream &,
48 OutputParams const &) const;
49 /// the string that is passed to the TOC
50 virtual int textString(Buffer const &, odocstream &,
51 OutputParams const &) const;
53 static CommandInfo const * findInfo(std::string const &);
55 static std::string defaultCommand() { return "href"; };
57 static bool isCompatibleCommand(std::string const & s)
58 { return s == "href"; }
60 virtual Inset * clone() const {
61 return new InsetHyperlink(params());