X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetcite.h;h=efa21fd17883dfb5f3e2f1af2832cfc058d81b39;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=3aa04702abf3d7530f2986453ca73b6465278055;hpb=e2b3a1254c2cc1145ac7b24abd2c52bab915375e;p=lyx.git diff --git a/src/insets/insetcite.h b/src/insets/insetcite.h index 3aa04702ab..efa21fd178 100644 --- a/src/insets/insetcite.h +++ b/src/insets/insetcite.h @@ -4,7 +4,7 @@ * * LyX, The Document Processor * - * Copyright 2000 The LyX Team. + * Copyright 2000-2001 The LyX Team. * * ====================================================== */ @@ -16,32 +16,33 @@ #endif #include "insetcommand.h" -class Dialogs; /** Used to insert citations */ -class InsetCitation: public InsetCommand { +class InsetCitation : public InsetCommand { public: /// - explicit - InsetCitation(string const & key, string const & note = string()); + InsetCitation(InsetCommandParams const &, bool same_id = false); /// - ~InsetCitation(); - /// - Inset * Clone() const { - return new InsetCitation(getContents(), getOptions()); + Inset * clone(Buffer const &, bool same_id = false) const { + return new InsetCitation(params(), same_id); } /// - string getScreenLabel() const; + string const getScreenLabel(Buffer const *) const; /// - EDITABLE Editable() const { return IS_EDITABLE; } - /// - void Edit(BufferView *, int, int, unsigned int); -private: + EDITABLE editable() const { return IS_EDITABLE; } + /// + Inset::Code lyxCode() const { return Inset::CITE_CODE; } /// - InsetCitation() : InsetCommand("cite"), dialogs_(0) {} + void edit(BufferView *, int, int, unsigned int); + /// + void edit(BufferView * bv, bool front = true); + /// + int ascii(Buffer const *, std::ostream &, int linelen) const; + /// + int latex(Buffer const *, std::ostream &, bool, bool) const; /// - Dialogs * dialogs_; + void validate(LaTeXFeatures &) const; }; #endif // INSET_CITE_H