]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpace.h
Properly fix handling of title layouts within insets (#11787)
[lyx.git] / src / insets / InsetSpace.h
index a4fd6151f90a458c9a8429573e6d0cdc735f03a1..65b1dc6ac4ed0c9b473a69fdb130c3c8c3db8f24 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;
        ///
@@ -129,7 +131,7 @@ public:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       docstring xhtml(XMLStream &, OutputParams const &) const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///