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-10-28 11:18:40 +00:00
|
|
|
|
void metrics(MetricsInfo &, Dimension &) const;
|
2003-03-11 13:33:14 +00:00
|
|
|
|
///
|
2006-10-11 19:40:50 +00:00
|
|
|
|
lyx::docstring const getScreenLabel(Buffer const &) const;
|
2003-03-11 13:33:14 +00:00
|
|
|
|
///
|
2004-11-25 19:13:07 +00:00
|
|
|
|
InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; }
|
2003-03-11 13:33:14 +00:00
|
|
|
|
///
|
2006-10-19 16:51:30 +00:00
|
|
|
|
int latex(Buffer const &, lyx::odocstream &,
|
2003-11-05 12:06:20 +00:00
|
|
|
|
OutputParams const &) const;
|
2003-03-11 13:33:14 +00:00
|
|
|
|
///
|
2006-10-11 19:40:50 +00:00
|
|
|
|
int plaintext(Buffer const &, lyx::odocstream &,
|
2003-11-05 12:06:20 +00:00
|
|
|
|
OutputParams const & runparams) const;
|
2003-03-11 13:33:14 +00:00
|
|
|
|
///
|
2006-10-19 21:00:33 +00:00
|
|
|
|
int docbook(Buffer const &, lyx::odocstream &,
|
2003-11-05 12:06:20 +00:00
|
|
|
|
OutputParams const & runparams) 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; }
|
2004-02-20 10:32:44 +00:00
|
|
|
|
/// is this equivalent to a space (which is BTW different from
|
|
|
|
|
// a line separator)?
|
|
|
|
|
bool isSpace() const;
|
2004-11-23 23:04:52 +00:00
|
|
|
|
private:
|
|
|
|
|
virtual std::auto_ptr<InsetBase> doClone() const;
|
2003-03-11 13:33:14 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|