]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloatList.h
Pass a BufferView to Inset::clickable
[lyx.git] / src / insets / InsetFloatList.h
index e837889221e679fd9813365107af196148b54039..32a0dd5c81fdefb72660d276bc1e20cf4f6ac912 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -23,37 +23,64 @@ namespace lyx {
 class InsetFloatList : public InsetCommand {
 public:
        ///
-       InsetFloatList();
+       InsetFloatList(Buffer *);
        ///
-       InsetFloatList(std::string const & type);
+       InsetFloatList(Buffer *, std::string const & type);
+
+       /// \name Public functions inherited from Inset class
+       //@{
+       ///
+       InsetCode lyxCode() const { return FLOAT_LIST_CODE; }
        ///
-       docstring const getScreenLabel(Buffer const &) const;
+       DisplayType display() const { return AlignCenter; }
        ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       void write(std::ostream &) const;
        ///
-       Inset::Code lyxCode() const;
+       void read(Lexer &);
        ///
-       DisplayType display() const { return AlignCenter; }
+       void latex(otexstream &, OutputParams const &) const;
        ///
-       void write(Buffer const &, std::ostream &) const;
+       int docbook(odocstream &, OutputParams const &) const { return 0; }
        ///
-       void read(Buffer const &, Lexer &);
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
        ///
-       int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///
-       int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const { return 0; }
+       void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
-       int plaintext(Buffer const &, odocstream &,
-                     OutputParams const & runparams) const;
+       bool clickable(BufferView const &, int, int) const { return true; }
        ///
        void validate(LaTeXFeatures & features) const;
+       //@}
+
+       /// \name Static public methods obligated for InsetCommand derived classes
+       //@{
+       ///
+       static ParamInfo const & findInfo(std::string const &);
+       ///
+       static std::string defaultCommand() { return "listoftables"; }
+       ///
+       static bool isCompatibleCommand(std::string const & s);
+       //@}
+
 private:
-       virtual std::auto_ptr<Inset> doClone() const
-       {
-               return std::auto_ptr<Inset>(new InsetFloatList(to_ascii(getParam("type"))));
-       }
+       /// \name Private functions inherited from Inset class
+       //@{
+       ///
+       Inset * clone() const { return new InsetFloatList(*this); }
+       ///
+       docstring layoutName() const;
+       //@}
+
+       /// \name Private functions inherited from InsetCommand class
+       //@{
+       ///
+       docstring screenLabel() const;
+       //@}
+
+       ///
+       static ParamInfo param_info_;
 };