X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetHyperlink.h;h=6bc0c64165cfd390e37238224a20388c69f04164;hb=fd5d47d182a70de532225715a04b77fe4155aa18;hp=4362ad039a943b09ec9b44942d9015e7b2ba6deb;hpb=d427010975672ecf52c1e9fb3db7e06af379fb88;p=lyx.git diff --git a/src/insets/InsetHyperlink.h b/src/insets/InsetHyperlink.h index 4362ad039a..6bc0c64165 100644 --- a/src/insets/InsetHyperlink.h +++ b/src/insets/InsetHyperlink.h @@ -23,47 +23,73 @@ 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; + /// + void forOutliner(docstring &, size_t) const; /// - DisplayType display() const { return Inline; } + docstring toolTip(BufferView const & bv, int x, int y) const; + /// + std::string contextMenuName() const; + /// + void validate(LaTeXFeatures &) const; /// - int latex(odocstream &, OutputParams const &) const; + void latex(otexstream &, OutputParams const &) const; /// - int plaintext(odocstream &, OutputParams const &) const; + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) 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; + //@} + + /// \name Static public methods obligated for InsetCommand derived classes + //@{ /// - static ParamInfo const & findInfo(std::string const &); + static bool isCompatibleCommand(std::string const & s) + { return s == "href"; } /// static std::string defaultCommand() { return "href"; } /// - static bool isCompatibleCommand(std::string const & s) - { return s == "href"; } - /// Force inset into LTR environment if surroundings are RTL - bool forceLTR() const { return true; } + static ParamInfo const & findInfo(std::string const &); + //@} + +private: + /// \name Private functions inherited from Inset class + //@{ /// - virtual bool isInToc() const { return true; } + void doDispatch(Cursor & cur, FuncRequest & cmd); /// - docstring contextMenu(BufferView const & bv, int x, int y) const; + bool getStatus(Cursor & cur, FuncRequest const & cmd, + FuncStatus & flag) const; /// - docstring toolTip(BufferView const & bv, int x, int y) const; -private: 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