diff options
author | Sebastian Geerken <devnull@localhost> | 2013-10-16 12:19:40 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-10-16 12:19:40 +0200 |
commit | 948f885bd1780e95f10595d2b9b79ea0975b3bca (patch) | |
tree | 45cc6c9377846f74fa73e4723e62e5988c9d04e5 /dw/textblock.cc | |
parent | 78172bb4bd05f70d089a8025cd63fd72c7cccadc (diff) |
Strechability of non-justified lines: refinements.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index d7e1704e..1d486083 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -79,6 +79,8 @@ int Textblock::penalties[PENALTY_NUM][2] = { { 100, 800 } }; +int Textblock::stretchabilityFactor = 100; + /** * The character which is used to draw a hyphen at the end of a line, * either caused by automatic hyphenation, or by soft hyphens. @@ -115,6 +117,11 @@ void Textblock::setPenaltyEmDashRight2 (int penaltyRightEmDash2) penalties[PENALTY_EM_DASH_RIGHT][1] = penaltyRightEmDash2; } +void Textblock::setStretchabilityFactor (int stretchabilityFactor) +{ + Textblock::stretchabilityFactor = stretchabilityFactor; +} + Textblock::Textblock (bool limitTextWidth) { registerName ("dw::Textblock", &CLASS_ID); |