]> git.lyx.org Git - lyx.git/blob - src/insets/insetcommand.C
Now generate previews when loading the buffer for insets in insets.
[lyx.git] / src / insets / insetcommand.C
1 /* This file is part of
2  * ======================================================
3  *
4  *           LyX, The Document Processor
5  *
6  *          Copyright 1995 Matthias Ettrich
7  *          Copyright 1995-2001 The LyX Team.
8  *
9  * ====================================================== */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "insetcommand.h"
18 #include "debug.h"
19 #include "frontends/Painter.h"
20
21 using std::ostream;
22 using std::endl;
23
24
25 InsetCommand::InsetCommand(InsetCommandParams const & p, bool)
26         : p_(p.getCmdName(), p.getContents(), p.getOptions())
27 {}
28
29
30 void InsetCommand::setParams(InsetCommandParams const & p)
31 {
32         p_.setCmdName(p.getCmdName());
33         p_.setContents(p.getContents());
34         p_.setOptions(p.getOptions());
35 }
36
37
38 int InsetCommand::latex(Buffer const *, ostream & os,
39                         bool /*fragile*/, bool/*fs*/) const
40 {
41         os << getCommand();
42         return 0;
43 }
44
45
46 int InsetCommand::ascii(Buffer const *, ostream &, int) const
47 {
48         return 0;
49 }
50
51
52 int InsetCommand::linuxdoc(Buffer const *, ostream &) const
53 {
54         return 0;
55 }
56
57
58 int InsetCommand::docbook(Buffer const *, ostream &, bool) const
59 {
60         return 0;
61 }