diff options
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r-- | starmath/source/node.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index febddc2f4785..dfbc8196e723 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -2774,6 +2774,20 @@ void SmBlankNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat) SetWidth(nSpace); } +void SmBlankNode::CreateTextFromNode(OUString &rText) +{ + if (mnNum <= 0) + return; + sal_uInt16 nWide = mnNum / 4; + sal_uInt16 nNarrow = mnNum % 4; + for (sal_uInt16 i = 0; i < nWide; i++) + rText += "~"; + for (sal_uInt16 i = 0; i < nNarrow; i++) + rText += "`"; + rText += " "; +} + + /**************************************************************************/ //Implementation of all accept methods for SmVisitor |