#ifndef INSET_NEWLINE_H
#define INSET_NEWLINE_H
-
#include "Inset.h"
+
+#include "support/docstring.h"
#include "support/gettext.h"
namespace lyx {
-class InsetNewline : public Inset {
+class InsetNewline : public Inset
+{
public:
-
+ ///
InsetNewline() {}
-
+ ///
InsetCode lyxCode() const { return NEWLINE_CODE; }
-
+ ///
void metrics(MetricsInfo &, Dimension &) const;
-
- virtual void draw(PainterInfo & pi, int x, int y) const;
-
+ ///
+ void draw(PainterInfo & pi, int x, int y) const;
+ ///
int latex(odocstream &, OutputParams const &) const;
-
+ ///
int plaintext(odocstream &, OutputParams const &) const;
-
+ ///
int docbook(odocstream &, OutputParams const &) const;
-
- virtual void read(Lexer & lex);
-
- virtual void write(std::ostream & os) const;
+ ///
+ void read(Lexer & lex);
+ ///
+ void write(std::ostream & os) const;
/// We don't need \begin_inset and \end_inset
- virtual bool directWrite() const { return true; }
+ bool directWrite() const { return true; }
/// is this equivalent to a space (which is BTW different from
/// a line separator)?
bool isSpace() const;
-
- virtual docstring insetLabel() const { return docstring(); }
-
- virtual std::string getLyXName() const { return "\\newline"; }
-
- virtual std::string getCmdName() const { return "\\\\"; }
-
- virtual ColorCode ColorName() const { return Color_eolmarker; }
+ ///
+ docstring insetLabel() const { return docstring(); }
+ ///
+ std::string getLyXName() const { return "\\newline"; }
+ ///
+ std::string getCmdName() const { return "\\\\"; }
+ ///
+ ColorCode ColorName() const { return Color_eolmarker; }
private:
+ ///
Inset * clone() const { return new InsetNewline(*this); }
};
-class InsetLinebreak : public InsetNewline {
+
+class InsetLinebreak : public InsetNewline
+{
public:
+ ///
InsetLinebreak() {}
-
+ ///
docstring insetLabel() const { return _("line break"); }
-
+ ///
std::string getLyXName() const { return "\\linebreak"; }
-
+ ///
std::string getCmdName() const { return "\\linebreak{}"; }
-
+ ///
ColorCode ColorName() const { return Color_pagebreak; }
private:
- virtual Inset * clone() const { return new InsetLinebreak(*this); }
+ ///
+ Inset * clone() const { return new InsetLinebreak(*this); }
};