2000-06-07 08:53:40 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2001-05-30 13:53:44 +00:00
|
|
|
* Copyright 2000-2001 The LyX Team.
|
2000-06-07 08:53:40 +00:00
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
#ifndef INSET_CITE_H
|
|
|
|
#define INSET_CITE_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "insetcommand.h"
|
2000-07-20 10:04:27 +00:00
|
|
|
|
2000-06-07 08:53:40 +00:00
|
|
|
/** Used to insert citations
|
|
|
|
*/
|
2000-08-04 13:12:30 +00:00
|
|
|
class InsetCitation : public InsetCommand {
|
2000-06-07 08:53:40 +00:00
|
|
|
public:
|
|
|
|
///
|
2000-07-27 08:55:59 +00:00
|
|
|
InsetCitation(InsetCommandParams const &);
|
2000-06-07 08:53:40 +00:00
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
Inset * clone(Buffer const &) const {
|
2000-10-10 11:50:43 +00:00
|
|
|
return new InsetCitation(params());
|
|
|
|
}
|
2000-06-07 08:53:40 +00:00
|
|
|
///
|
2000-09-14 17:53:12 +00:00
|
|
|
string const getScreenLabel() const;
|
2000-06-07 08:53:40 +00:00
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
EDITABLE editable() const { return IS_EDITABLE; }
|
2001-01-31 20:39:53 +00:00
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
Inset::Code lyxCode() const { return Inset::CITE_CODE; }
|
2000-07-14 07:52:03 +00:00
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
void edit(BufferView *, int, int, unsigned int);
|
2001-05-27 17:51:16 +00:00
|
|
|
///
|
2001-06-28 10:25:20 +00:00
|
|
|
int ascii(Buffer const *, std::ostream &, int linelen) const;
|
2000-06-07 08:53:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INSET_CITE_H
|