X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetHyperlink.h;h=4e428c767decca41ad0fab381bc42580bdf03667;hb=bfddee97e191a853f0576f4fab3f095c4e9ce0de;hp=fb9579caabf925b2f6b996d91de3c7507b8bd93d;hpb=8693ae474be667e88dba1e53a5a1130ff440e756;p=lyx.git diff --git a/src/insets/InsetHyperlink.h b/src/insets/InsetHyperlink.h index fb9579caab..4e428c767d 100644 --- a/src/insets/InsetHyperlink.h +++ b/src/insets/InsetHyperlink.h @@ -23,56 +23,72 @@ class InsetHyperlink : public InsetCommand { public: /// - explicit InsetHyperlink(Buffer * buf, InsetCommandParams const &); + InsetHyperlink(Buffer * buf, InsetCommandParams const &); + + /// \name Public functions inherited from Inset class + //@{ /// InsetCode lyxCode() const { return HYPERLINK_CODE; } /// - void validate(LaTeXFeatures &) const; + bool hasSettings() const { return true; } /// - docstring screenLabel() const; + bool forceLTR() const { return true; } /// - bool hasSettings() const { return true; } + bool isInToc() const { return true; } + /// + void toString(odocstream &) const; /// - DisplayType display() const { return Inline; } + void forToc(docstring &, size_t) const; + /// + docstring toolTip(BufferView const & bv, int x, int y) const; /// - int latex(odocstream &, OutputParams const &) const; + docstring contextMenuName() const; + /// + void validate(LaTeXFeatures &) const; + /// + void latex(otexstream &, OutputParams const &) const; /// int plaintext(odocstream &, OutputParams const &) const; /// int docbook(odocstream &, OutputParams const &) const; /// docstring xhtml(XHTMLStream &, OutputParams const &) const; - /// the string that is passed to the TOC - void tocString(odocstream &) const; - /// - static ParamInfo const & findInfo(std::string const &); - /// - static std::string defaultCommand() { return "href"; } + //@} + + /// \name Static public methods obligated for InsetCommand derived classes + //@{ /// static bool isCompatibleCommand(std::string const & s) { return s == "href"; } - /// Force inset into LTR environment if surroundings are RTL - bool forceLTR() const { return true; } - /// - bool isInToc() const { return true; } /// - docstring contextMenu(BufferView const & bv, int x, int y) const; + static std::string defaultCommand() { return "href"; } /// - docstring toolTip(BufferView const & bv, int x, int y) const; - + static ParamInfo const & findInfo(std::string const &); + //@} + private: - /// + /// \name Private functions inherited from Inset class + //@{ + /// void doDispatch(Cursor & cur, FuncRequest & cmd); /// bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & flag) const; /// - void viewTarget() const; - /// Inset * clone() const { return new InsetHyperlink(*this); } + //@} + + /// \name Private functions inherited from InsetCommand class + //@{ + /// + docstring screenLabel() const; + //@} + + /// + void viewTarget() const; }; } // namespace lyx -#endif +#endif // INSET_HYPERLINK_H