#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 &);
///
- ~InsetCitation();
- ///
- Inset * Clone() const {
- return new InsetCitation(getContents(), getOptions());
+ Inset * Clone(Buffer const &) const {
+ return new InsetCitation(params());
}
///
- string getScreenLabel() const;
+ string const getScreenLabel() const;
///
EDITABLE Editable() const { return IS_EDITABLE; }
+ ///
+ Inset::Code LyxCode() const { return Inset::CITE_CODE; }
///
void Edit(BufferView *, int, int, unsigned int);
-private:
- ///
- InsetCitation() : InsetCommand("cite"), dialogs_(0) {}
- ///
- Dialogs * dialogs_;
};
#endif // INSET_CITE_H