This patch address not all aspects but should be a step in the right direction.
- Don't wrap entire document when nothing is selected but wrap current line
- Join paragraph before wrap to avoid odd result
- Add new function DocumentPrivate::wrapParagraph for that task
- Update 'What's This' hint to reflect new behaviour
- Update 'What's This' hint of dyn wrap too to be more precise