]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetHyperlink.h
Update my email and status.
[lyx.git] / src / insets / InsetHyperlink.h
index 81467eeceb243123f9bfb277505d32dc3162e720..fb4c8919790c474d7a2b5f2e5de51ff619d7c4fb 100644 (file)
@@ -23,43 +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;
+       ///
+       void forToc(docstring &, size_t) const;
        ///
-       DisplayType display() const { return Inline; }
+       docstring toolTip(BufferView const & bv, int x, int y) const;
        ///
-       int latex(odocstream &, OutputParams const &) const;
+       std::string 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; }
        ///
-       virtual bool isInToc() const { return true; }
+       static std::string defaultCommand() { return "href"; }
+       ///
+       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;
+       ///
        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