lyx_mirror/src/insets/insetcommand.C
André Pönitz f849bc4a62 separate insetcommand.[Ch] into two files
we should be ble to use this later to reduce include dependencies


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4530 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-04 13:54:28 +00:00

62 lines
1.1 KiB
C

/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "insetcommand.h"
#include "debug.h"
#include "frontends/Painter.h"
using std::ostream;
using std::endl;
InsetCommand::InsetCommand(InsetCommandParams const & p, bool)
: p_(p.getCmdName(), p.getContents(), p.getOptions())
{}
void InsetCommand::setParams(InsetCommandParams const & p)
{
p_.setCmdName(p.getCmdName());
p_.setContents(p.getContents());
p_.setOptions(p.getOptions());
}
int InsetCommand::latex(Buffer const *, ostream & os,
bool /*fragile*/, bool/*fs*/) const
{
os << getCommand();
return 0;
}
int InsetCommand::ascii(Buffer const *, ostream &, int) const
{
return 0;
}
int InsetCommand::linuxdoc(Buffer const *, ostream &) const
{
return 0;
}
int InsetCommand::docbook(Buffer const *, ostream &, bool) const
{
return 0;
}