2000-07-07 07:46:37 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* ====================================================== */
|
2000-06-07 08:53:40 +00:00
|
|
|
|
2000-07-07 07:46:37 +00:00
|
|
|
#include <config.h>
|
2000-06-07 08:53:40 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "insetcite.h"
|
|
|
|
|
|
|
|
InsetCitation::InsetCitation(string const & key, string const & note)
|
2000-07-07 07:46:37 +00:00
|
|
|
: InsetCommand("cite", key, note)
|
2000-06-07 08:53:40 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
string InsetCitation::getScreenLabel() const
|
|
|
|
{
|
|
|
|
string temp("[");
|
|
|
|
|
|
|
|
temp += getContents();
|
|
|
|
|
|
|
|
if( !getOptions().empty() ) {
|
|
|
|
temp += ", " + getOptions();
|
|
|
|
}
|
|
|
|
|
|
|
|
return temp + ']';
|
|
|
|
}
|