]> git.lyx.org Git - lyx.git/blob - src/insets/insetcite.C
13ec3a2d0e5ce08a122a35185ecb021b1ef15efb
[lyx.git] / src / insets / insetcite.C
1 // -*- C++ -*-
2 /* This file is part of*
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *       
7  *           Copyright 2000 The LyX Team.
8  * 
9  * ====================================================== */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "insetcite.h"
18
19 InsetCitation::InsetCitation(string const & key, string const & note)
20                 : InsetCommand("cite", key, note)
21 {
22 }
23
24 string InsetCitation::getScreenLabel() const
25 {
26         string temp("[");
27
28         temp += getContents();
29
30         if( !getOptions().empty() ) {
31                 temp += ", " + getOptions();
32         }
33
34         return temp + ']';
35 }