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 screenLabel() const;
37 EDITABLE editable() const { return IS_EDITABLE; }
39 DisplayType display() const { return Inline; }
41 int latex(odocstream &, OutputParams const &) const;
43 int plaintext(odocstream &, OutputParams const &) const;
45 int docbook(odocstream &, OutputParams const &) const;
46 /// the string that is passed to the TOC
47 void textString(odocstream &) const;
49 static ParamInfo const & findInfo(std::string const &);
51 static std::string defaultCommand() { return "href"; };
53 static bool isCompatibleCommand(std::string const & s)
54 { return s == "href"; }
55 /// Force inset into LTR environment if surroundings are RTL?
56 bool forceLTR() const { return true; }
58 Inset * clone() const { return new InsetHyperlink(params()); }