- 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; }
-
-private:
- Inset * clone() const { return new 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;
- }
+ bool isSpace() const { return true; }
+ ///
+ ColorCode ColorName() const;
+ ///
+ std::string contextMenuName() const;
+ ///
+ Inset * clone() const { return new InsetNewline(*this); }
+ ///
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
+ ///
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+
+ ///
+ InsetNewlineParams params_;