2003-03-11 13:33:14 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file insethfill.h
|
|
|
|
|
* 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
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef INSET_HFILL_H
|
|
|
|
|
#define INSET_HFILL_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "insetcommand.h"
|
|
|
|
|
|
|
|
|
|
class InsetHFill : public InsetCommand {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
InsetHFill();
|
|
|
|
|
///
|
2003-06-16 11:49:38 +00:00
|
|
|
|
virtual InsetBase * clone() const {
|
2003-05-28 23:09:16 +00:00
|
|
|
|
return new InsetHFill;
|
2003-03-11 13:33:14 +00:00
|
|
|
|
}
|
|
|
|
|
///
|
|
|
|
|
string const getScreenLabel(Buffer const *) const { return getContents(); }
|
|
|
|
|
///
|
|
|
|
|
Inset::Code lyxCode() const { return Inset::HFILL_CODE; }
|
|
|
|
|
///
|
2003-05-23 08:59:47 +00:00
|
|
|
|
int latex(Buffer const *, std::ostream &,
|
|
|
|
|
LatexRunParams const &) const;
|
2003-03-11 13:33:14 +00:00
|
|
|
|
///
|
|
|
|
|
int ascii(Buffer const *, std::ostream &, int linelen) const;
|
|
|
|
|
///
|
2003-06-07 09:48:11 +00:00
|
|
|
|
int linuxdoc(Buffer const *, std::ostream &) const;
|
|
|
|
|
///
|
|
|
|
|
int docbook(Buffer const *, std::ostream &, bool) const;
|
|
|
|
|
///
|
2003-03-11 17:55:58 +00:00
|
|
|
|
void write(Buffer const * buf, std::ostream & os) const;
|
2003-03-11 15:01:29 +00:00
|
|
|
|
/// We don't need \begin_inset and \end_inset
|
|
|
|
|
bool directWrite() const { return true; }
|
2003-03-11 13:33:14 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|