]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.h
s/updateLabels/updateBuffer/g, per a suggestion of Abdel's.
[lyx.git] / src / insets / InsetCitation.h
index a7c2ce02cc02478b2bc6beaa7495776d52779cb8..036d25fbbdb918b0565f8ac7a63320ad1f69dd08 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Angus Leeming
- * \author Herbert Voß
+ * \author Herbert Voß
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -32,13 +32,15 @@ class InsetCitation : public InsetCommand
 {
 public:
        ///
-       explicit InsetCitation(InsetCommandParams const &);
+       explicit InsetCitation(Buffer * buf, InsetCommandParams const &);
        ///
        bool isLabeled() const { return true; }
        ///
        docstring screenLabel() const;
        ///
-       EDITABLE editable() const { return IS_EDITABLE; }
+       bool hasSettings() const { return true; }
+       ///
+       docstring toolTip(BufferView const & bv, int x, int y) const;
        ///
        InsetCode lyxCode() const { return CITE_CODE; }
        ///
@@ -47,14 +49,16 @@ public:
        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 textString(odocstream &) const;
+       void tocString(odocstream &) const;
        ///
        void validate(LaTeXFeatures &) const;
        ///
-       void updateLabels(ParIterator const & it);
+       void updateBuffer(ParIterator const & it, UpdateType);
        ///
-       void addToToc(ParConstIterator const &) const;
+       void addToToc(DocIterator const &);
 
        ///
        static ParamInfo const & findInfo(std::string const &);
@@ -70,11 +74,15 @@ public:
 private:
        ///
        Inset * clone() const { return new InsetCitation(*this); }
+       /// tries to make a pretty label and makes a basic one if not
+       docstring generateLabel(bool for_xhtml = false) const;
+       /// makes a pretty label
+       docstring complexLabel(bool for_xhtml = false) const;
+       /// makes a very basic label, in case we can't make a pretty one
+       docstring basicLabel(bool for_xhtml = false) const;
        /// we'll eventually want to be able to get info on this from the 
        /// various CiteEngines
        static ParamInfo param_info_;
-       /// This function does the donkey work of creating the pretty label
-       docstring generateLabel() const;
 
        ///
        class Cache {