]> git.lyx.org Git - lyx.git/blob - src/insets/insetcommand.C
First step towards unified insets...
[lyx.git] / src / insets / insetcommand.C
1 /**
2  * \file insetcommand.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Angus Leeming
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #include <config.h>
13
14
15 #include "insetcommand.h"
16 #include "debug.h"
17 #include "frontends/Painter.h"
18
19 using std::ostream;
20 using std::endl;
21
22
23 InsetCommand::InsetCommand(InsetCommandParams const & p, bool)
24         : p_(p.getCmdName(), p.getContents(), p.getOptions())
25 {}
26
27
28 void InsetCommand::setParams(InsetCommandParams const & p)
29 {
30         p_.setCmdName(p.getCmdName());
31         p_.setContents(p.getContents());
32         p_.setOptions(p.getOptions());
33 }
34
35
36 int InsetCommand::latex(Buffer const *, ostream & os,
37                         bool /*fragile*/, bool/*fs*/) const
38 {
39         os << getCommand();
40         return 0;
41 }
42
43
44 int InsetCommand::ascii(Buffer const *, ostream &, int) const
45 {
46         return 0;
47 }
48
49
50 int InsetCommand::linuxdoc(Buffer const *, ostream &) const
51 {
52         return 0;
53 }
54
55
56 int InsetCommand::docbook(Buffer const *, ostream &, bool) const
57 {
58         return 0;
59 }