2003-03-11 13:33:14 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file insethfill.C
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "insethfill.h"
|
|
|
|
|
#include "support/LOstream.h"
|
|
|
|
|
|
|
|
|
|
using std::ostream;
|
|
|
|
|
|
|
|
|
|
InsetHFill::InsetHFill()
|
|
|
|
|
: InsetCommand(InsetCommandParams("hfill"))
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
2003-05-23 08:59:47 +00:00
|
|
|
|
int InsetHFill::latex(Buffer const *, ostream & os,
|
|
|
|
|
LatexRunParams const &) const
|
2003-03-11 13:33:14 +00:00
|
|
|
|
{
|
|
|
|
|
os << getCommand();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int InsetHFill::ascii(Buffer const *, ostream & os, int) const
|
|
|
|
|
{
|
|
|
|
|
os << '\t';
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2003-03-11 17:55:58 +00:00
|
|
|
|
void InsetHFill::write(Buffer const *, ostream & os) const
|
2003-03-11 13:33:14 +00:00
|
|
|
|
{
|
|
|
|
|
os << "\n\\hfill \n";
|
|
|
|
|
}
|