X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FVSpace.cpp;h=19f6af41a1f638d282263e6f6be1ef01ccdf19a3;hb=b7ab77c2480f31bc39ae076d83f212674ecb63b9;hp=89692528d5a4ac2d2f32afcf567fb1fb9e634d38;hpb=9b4a26a252b2da164fcd6aa84feed0a738b16c10;p=lyx.git diff --git a/src/VSpace.cpp b/src/VSpace.cpp index 89692528d5..19f6af41a1 100644 --- a/src/VSpace.cpp +++ b/src/VSpace.cpp @@ -493,6 +493,24 @@ docstring const VSpace::asGUIName() const } +string VSpace::asHTMLLength() const +{ + string result; + switch (kind_) { + case DEFSKIP: result = "2ex"; break; + case SMALLSKIP: result = "1ex"; break; + case MEDSKIP: result = "3ex"; break; + case BIGSKIP: result = "5ex"; break; + case LENGTH: { + Length tmp = len_.len(); + if (tmp.value() > 0) + result = tmp.asHTMLString(); + } + case VFILL: break; + } + return result; +} + int VSpace::inPixels(BufferView const & bv) const { // Height of a normal line in pixels (zoom factor considered)