X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCitation.h;h=036d25fbbdb918b0565f8ac7a63320ad1f69dd08;hb=d65020b293ab208b1391f96a731e53e0c7274a02;hp=4567077a423d5e5693d1a2c4f1eb10aa7c277534;hpb=4c9fe33c833fb7239a790acc847f45393983da2b;p=lyx.git diff --git a/src/insets/InsetCitation.h b/src/insets/InsetCitation.h index 4567077a42..036d25fbbd 100644 --- a/src/insets/InsetCitation.h +++ b/src/insets/InsetCitation.h @@ -32,7 +32,7 @@ class InsetCitation : public InsetCommand { public: /// - explicit InsetCitation(InsetCommandParams const &); + explicit InsetCitation(Buffer * buf, InsetCommandParams const &); /// bool isLabeled() const { return true; } /// @@ -49,12 +49,14 @@ 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 tocString(odocstream &) const; /// void validate(LaTeXFeatures &) const; /// - void updateLabels(ParIterator const & it); + void updateBuffer(ParIterator const & it, UpdateType); /// void addToToc(DocIterator const &); @@ -72,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 {