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
|
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-03-11 13:33:14 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef INSET_HFILL_H
|
|
|
|
|
#define INSET_HFILL_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "insetcommand.h"
|
|
|
|
|
|
|
|
|
|
class InsetHFill : public InsetCommand {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
InsetHFill();
|
|
|
|
|
///
|
2003-07-25 17:11:25 +00:00
|
|
|
|
virtual std::auto_ptr<InsetBase> clone() const {
|
|
|
|
|
return std::auto_ptr<InsetBase>(new InsetHFill);
|
2003-03-11 13:33:14 +00:00
|
|
|
|
}
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const getScreenLabel(Buffer const &) const { return getContents(); }
|
2003-03-11 13:33:14 +00:00
|
|
|
|
///
|
2003-07-25 21:20:24 +00:00
|
|
|
|
InsetOld::Code lyxCode() const { return InsetOld::HFILL_CODE; }
|
2003-03-11 13:33:14 +00:00
|
|
|
|
///
|
2003-08-28 07:41:31 +00:00
|
|
|
|
int latex(Buffer const &, std::ostream &,
|
2003-05-23 08:59:47 +00:00
|
|
|
|
LatexRunParams const &) const;
|
2003-03-11 13:33:14 +00:00
|
|
|
|
///
|
2003-08-28 07:41:31 +00:00
|
|
|
|
int ascii(Buffer const &, std::ostream &, int linelen) const;
|
2003-03-11 13:33:14 +00:00
|
|
|
|
///
|
2003-08-28 07:41:31 +00:00
|
|
|
|
int linuxdoc(Buffer const &, std::ostream &) const;
|
2003-06-07 09:48:11 +00:00
|
|
|
|
///
|
2003-08-28 07:41:31 +00:00
|
|
|
|
int docbook(Buffer const &, std::ostream &, bool) const;
|
2003-06-07 09:48:11 +00:00
|
|
|
|
///
|
2003-08-28 07:41:31 +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
|