2003-03-12 19:16:42 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file insetnewline.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INSET_NEWLINE_H
|
|
|
|
#define INSET_NEWLINE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "inset.h"
|
|
|
|
|
|
|
|
class InsetNewline : public Inset {
|
|
|
|
public:
|
|
|
|
|
2003-05-19 17:03:12 +00:00
|
|
|
InsetNewline() {}
|
2003-03-12 19:16:42 +00:00
|
|
|
|
|
|
|
virtual Inset * clone(Buffer const &, bool = false) const {
|
|
|
|
return new InsetNewline;
|
|
|
|
}
|
|
|
|
|
|
|
|
Inset::Code lyxCode() const { return Inset::NEWLINE_CODE; }
|
|
|
|
|
2003-05-19 17:03:12 +00:00
|
|
|
void dimension(BufferView *, LyXFont const &, Dimension &) const;
|
2003-03-12 19:16:42 +00:00
|
|
|
|
|
|
|
virtual void draw(BufferView *, LyXFont const &,
|
2003-03-17 01:34:36 +00:00
|
|
|
int baseline, float & x) const;
|
2003-03-12 19:16:42 +00:00
|
|
|
|
|
|
|
virtual int latex(Buffer const *, std::ostream &, bool fragile, bool free_spc) const;
|
|
|
|
|
|
|
|
virtual int ascii(Buffer const *, std::ostream &, int linelen) const;
|
|
|
|
|
|
|
|
virtual int linuxdoc(Buffer const *, std::ostream &) const;
|
|
|
|
|
|
|
|
virtual int docbook(Buffer const *, std::ostream &, bool) const;
|
|
|
|
|
|
|
|
virtual void read(Buffer const *, LyXLex & lex);
|
|
|
|
|
|
|
|
virtual void write(Buffer const * buf, std::ostream & os) const;
|
|
|
|
/// We don't need \begin_inset and \end_inset
|
|
|
|
virtual bool directWrite() const { return true; }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INSET_NEWLINE_H
|