]> git.lyx.org Git - lyx.git/blob - src/insets/insetcommand.C
Make it compile when USE_BOOST_FORMAT is unset
[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 #ifdef __GNUG__
15 #pragma implementation
16 #endif
17
18 #include "insetcommand.h"
19 #include "debug.h"
20 #include "frontends/Painter.h"
21
22 using std::ostream;
23 using std::endl;
24
25
26 InsetCommand::InsetCommand(InsetCommandParams const & p, bool)
27         : p_(p.getCmdName(), p.getContents(), p.getOptions())
28 {}
29
30
31 void InsetCommand::setParams(InsetCommandParams const & p)
32 {
33         p_.setCmdName(p.getCmdName());
34         p_.setContents(p.getContents());
35         p_.setOptions(p.getOptions());
36 }
37
38
39 int InsetCommand::latex(Buffer const *, ostream & os,
40                         bool /*fragile*/, bool/*fs*/) const
41 {
42         os << getCommand();
43         return 0;
44 }
45
46
47 int InsetCommand::ascii(Buffer const *, ostream &, int) const
48 {
49         return 0;
50 }
51
52
53 int InsetCommand::linuxdoc(Buffer const *, ostream &) const
54 {
55         return 0;
56 }
57
58
59 int InsetCommand::docbook(Buffer const *, ostream &, bool) const
60 {
61         return 0;
62 }