4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS.
17 #include "insetcommand.h"
19 /** Used to insert citations
21 class InsetCitation : public InsetCommand {
24 InsetCitation(InsetCommandParams const &);
26 std::auto_ptr<InsetBase> clone() const {
27 return std::auto_ptr<InsetBase>(new InsetCitation(params()));
30 std::string const getScreenLabel(Buffer const &) const;
32 EDITABLE editable() const { return IS_EDITABLE; }
34 InsetOld::Code lyxCode() const { return InsetOld::CITE_CODE; }
36 int plaintext(Buffer const &, std::ostream &, int linelen) const;
38 int latex(Buffer const &, std::ostream &,
39 OutputParams const &) const;
41 void validate(LaTeXFeatures &) const;
54 Cache() : style(BASIC) {}
58 InsetCommandParams params;
60 std::string generated_label;
62 std::string screen_label;
65 /// This function does the donkey work of creating the pretty label
66 std::string const generateLabel(Buffer const &) const;
68 Cache::Style getStyle(Buffer const & buffer) const;
74 #endif // INSET_CITE_H