2000-06-07 08:53:40 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2000-07-07 07:46:37 +00:00
|
|
|
* Copyright 2000 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-14 07:52:03 +00:00
|
|
|
class Dialogs;
|
2000-06-07 08:53:40 +00:00
|
|
|
|
|
|
|
/** Used to insert citations
|
|
|
|
*/
|
|
|
|
class InsetCitation: public InsetCommand {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
explicit
|
|
|
|
InsetCitation(string const & key, string const & note = string());
|
|
|
|
///
|
2000-07-14 07:52:03 +00:00
|
|
|
~InsetCitation();
|
|
|
|
///
|
2000-07-07 07:46:37 +00:00
|
|
|
Inset * Clone() const {
|
|
|
|
return new InsetCitation(getContents(), getOptions());
|
2000-06-07 08:53:40 +00:00
|
|
|
}
|
|
|
|
///
|
2000-07-07 07:46:37 +00:00
|
|
|
string getScreenLabel() const;
|
2000-06-07 08:53:40 +00:00
|
|
|
///
|
2000-07-07 07:46:37 +00:00
|
|
|
EDITABLE Editable() const { return IS_EDITABLE; }
|
2000-07-14 07:52:03 +00:00
|
|
|
///
|
|
|
|
void Edit(BufferView *, int, int, unsigned int);
|
2000-07-07 07:46:37 +00:00
|
|
|
private:
|
2000-06-07 08:53:40 +00:00
|
|
|
///
|
2000-07-14 07:52:03 +00:00
|
|
|
InsetCitation() : InsetCommand("cite"), dialogs_(0) {}
|
|
|
|
///
|
|
|
|
Dialogs * dialogs_;
|
2000-06-07 08:53:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INSET_CITE_H
|