2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ====================================================== */
14 #pragma implementation
17 #include "insetcite.h"
19 #include "BufferView.h"
20 #include "frontends/Dialogs.h"
22 InsetCitation::InsetCitation(string const & key, string const & note)
23 : InsetCommand("cite", key, note), dialogs_(0)
27 InsetCitation::~InsetCitation()
30 dialogs_->hideCitation( this );
33 string InsetCitation::getScreenLabel() const
37 temp += getContents();
39 if( !getOptions().empty() ) {
40 temp += ", " + getOptions();
46 void InsetCitation::Edit(BufferView * bv, int, int, unsigned int)
48 dialogs_ = bv->owner()->getDialogs();
49 dialogs_->showCitation( this );