- virtual Inset * clone() const
- {
- return new InsetPagebreak;
- }
-};
-
-
-class InsetClearPage : public InsetNewpage {
-public:
- InsetClearPage() {}
-
- docstring insetLabel() const { return _("Clear Page"); }
-
- std::string getCmdName() const { return "\\clearpage"; }
-
-private:
- virtual Inset * clone() const
- {
- return new InsetClearPage;
- }
-};
-
-
-class InsetClearDoublePage : public InsetNewpage {
-public:
- InsetClearDoublePage() {}
-
- docstring insetLabel() const { return _("Clear Double Page"); }
-
- std::string getCmdName() const { return "\\cleardoublepage"; }
-
-private:
- virtual Inset * clone() const
- {
- return new InsetClearDoublePage;
- }
+ ///
+ InsetNewpageParams params() const { return params_; }
+ ///
+ InsetCode lyxCode() const { return NEWPAGE_CODE; }
+ ///
+ void metrics(MetricsInfo &, Dimension &) const;
+ ///
+ void draw(PainterInfo & pi, int x, int y) const;
+ ///
+ void latex(otexstream &, OutputParams const &) const;
+ ///
+ int plaintext(odocstringstream & ods, OutputParams const & op,
+ size_t max_length = INT_MAX) const;
+ ///
+ int docbook(odocstream &, OutputParams const &) const;
+ ///
+ docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ ///
+ void read(Lexer & lex);
+ ///
+ void write(std::ostream & os) const;
+ ///
+ DisplayType display() const { return AlignCenter; }
+ ///
+ docstring insetLabel() const;
+ ///
+ ColorCode ColorName() const;
+ ///
+ std::string contextMenuName() const;
+ ///
+ Inset * clone() const { return new InsetNewpage(*this); }
+ ///
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
+ ///
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+
+ ///
+ InsetNewpageParams params_;