aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 7950ba96..a79462e1 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -176,6 +176,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.
@@ -212,6 +214,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);