]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetHyperlink.h
Attempt to reflect tabular width in workarea
[lyx.git] / src / insets / InsetHyperlink.h
index fb9579caabf925b2f6b996d91de3c7507b8bd93d..a70200cc7523c7f1b6413ce64473b1bbd5292acb 100644 (file)
@@ -23,56 +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; }
        ///
-       DisplayType display() const { return Inline; }
+       void toString(odocstream &) const;
        ///
-       int latex(odocstream &, OutputParams const &) const;
+       void forOutliner(docstring &, size_t const, bool const) const;
        ///
-       int plaintext(odocstream &, OutputParams const &) const;
+       docstring toolTip(BufferView const & bv, int x, int y) const;
        ///
-       int docbook(odocstream &, OutputParams const &) const;
+       std::string contextMenuName() const;
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
-       /// the string that is passed to the TOC
-       void tocString(odocstream &) const;
+       void validate(LaTeXFeatures &) const;
        ///
-       static ParamInfo const & findInfo(std::string const &);
+       void latex(otexstream &, OutputParams const &) const;
        ///
-       static std::string defaultCommand() { return "href"; }
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
        ///
-       static bool isCompatibleCommand(std::string const & s) 
-               { return s == "href"; }
-       /// Force inset into LTR environment if surroundings are RTL
-       bool forceLTR() const { return true; }
+       int docbook(odocstream &, OutputParams const &) const;
        ///
-       bool isInToc() const { return true; }
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       //@}
+
+       /// \name Static public methods obligated for InsetCommand derived classes
+       //@{
        ///
-       docstring contextMenu(BufferView const & bv, int x, int y) const;
+       static bool isCompatibleCommand(std::string const & s)
+               { return s == "href"; }
        ///
-       docstring toolTip(BufferView const & bv, int x, int y) const;
+       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;
        ///
-       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