]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpace.h
Improve handling of top and bottom margin
[lyx.git] / src / insets / InsetSpace.h
index a4fd6151f90a458c9a8429573e6d0cdc735f03a1..1111aa1e828d7215d56104e429930ad511f1a08f 100644 (file)
@@ -42,9 +42,9 @@ struct InsetSpaceParams {
                QUAD,
                /// \qquad (2em)
                QQUAD,
-               /// \enskip (0.5em unbreakable)
+               /// \enspace (0.5em unbreakable)
                ENSPACE,
-               /// \enspace (0.5em breakable)
+               /// \enskip (0.5em breakable)
                ENSKIP,
                /// Negative thin space ('\negthinspace')
                NEGTHIN,
@@ -74,7 +74,7 @@ struct InsetSpaceParams {
                CUSTOM_PROTECTED
        };
        ///
-       InsetSpaceParams(bool m = false) : kind(NORMAL), math(m) {}
+       explicit InsetSpaceParams(bool m = false) : kind(NORMAL), math(m) {}
        ///
        void write(std::ostream & os) const;
        ///
@@ -113,6 +113,8 @@ public:
 
        ///
        docstring toolTip(BufferView const & bv, int x, int y) const;
+       /// unprotected spaces allow line breaking after them
+       RowFlags rowFlags() const;
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
@@ -127,9 +129,9 @@ public:
        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 validate(LaTeXFeatures & features) const;
        ///