]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNewline.h
Improve handling of top and bottom margin
[lyx.git] / src / insets / InsetNewline.h
index a2848a1e31efdb40b700b300001bf0db322d923f..4209dfee380bcc1ed3e9ab5f43319134919c236f 100644 (file)
@@ -44,17 +44,15 @@ public:
        ///
        InsetNewline();
        ///
-       InsetNewline(InsetNewlineParams par) : Inset(0)
+       explicit InsetNewline(InsetNewlineParams par) : Inset(0)
        { params_.kind = par.kind; }
        ///
-       DisplayType display() const { return BreakAfter | NoBoundary; }
+       RowFlags rowFlags() const { return BreakAfter | RowAfter; }
        ///
        static void string2params(std::string const &, InsetNewlineParams &);
        ///
        static std::string params2string(InsetNewlineParams const &);
 private:
-       ///
-       InsetNewlineParams params() const { return params_; }
        ///
        InsetCode lyxCode() const { return NEWLINE_CODE; }
        ///
@@ -67,9 +65,9 @@ private:
        int plaintext(odocstringstream & ods, OutputParams const & op,
                      size_t max_length = INT_MAX) const;
        ///
-       int docbook(odocstream &, OutputParams const &) const;
+       void docbook(XMLStream &, OutputParams const &) const;
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       docstring xhtml(XMLStream &, OutputParams const &) const;
        ///
        void read(Lexer & lex);
        ///