]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.h
Well, it turns out that we need a different return value for the xhtml
[lyx.git] / src / insets / InsetRef.h
index f45f731f1028922b65eb3cd96f42db9987c9a44b..e6f37462cd53ca1e3167598cfbc5ebfe7f423809 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 José Matos
+ * \author José Matos
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -36,43 +36,48 @@ public:
        static std::string const & getName(int type);
 
 
-       InsetRef(InsetCommandParams const &, Buffer const &);
+       InsetRef(Buffer const & buffer, InsetCommandParams const &);
 
        ///
-       docstring const getScreenLabel(Buffer const &) const;
+       bool isLabeled() const { return true; }
        ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       docstring screenLabel() const;
+       ///
+       bool hasSettings() const { return true; }
        ///
        InsetCode lyxCode() const { return REF_CODE; }
        ///
        DisplayType display() const { return Inline; }
        ///
-       int latex(Buffer const &, odocstream &, OutputParams const &) const;
+       int latex(odocstream &, OutputParams const &) const;
        ///
-       int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
+       int plaintext(odocstream &, OutputParams const &) const;
        ///
-       int docbook(Buffer const &, odocstream &, OutputParams const &) const;
+       int docbook(odocstream &, OutputParams const &) const;
        /// the string that is passed to the TOC
-       void textString(Buffer const &, odocstream &) const;
+       void tocString(odocstream &) const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       static CommandInfo const * findInfo(std::string const &);
+       static ParamInfo const & findInfo(std::string const &);
        ///
        static std::string defaultCommand() { return "ref"; };
        ///
        static bool isCompatibleCommand(std::string const & s);
+       ///
+       void updateLabels(ParIterator const & it);
+       ///
+       void addToToc(DocIterator const &);
 protected:
        ///
        InsetRef(InsetRef const &);
-
-       ///
-       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
        ///
        Inset * clone() const { return new InsetRef(*this); }
        ///
        bool isLatex;
+       ///
+       mutable docstring screen_label_;
 };
 
 } // namespace lyx