aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-30 19:27:16 +0100
committerSebastian Geerken <devnull@localhost>2015-01-30 19:27:16 +0100
commitb1e34672ecbe28c18462cd1b02ba0b2cfc7f772b (patch)
tree8812e9c6b89b4099129d00e8a123ea1f501943de /dw/textblock.hh
parent76544475ea4a8578351a818068657a9bd6cd5a06 (diff)
Relative positions, part 1.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r--dw/textblock.hh9
1 files changed, 7 insertions, 2 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh
index 5e626876..a7eeab47 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -857,6 +857,10 @@ public:
static void setPenaltyEmDashRight2 (int penaltyRightEmDash2);
static void setStretchabilityFactor (int stretchabilityFactor);
+ static inline bool mustAddBreaks (core::style::Style *style)
+ { return !testStyleOutOfFlow (style) ||
+ testStyleRelativelyPositioned (style); }
+
Textblock (bool limitTextWidth);
~Textblock ();
@@ -881,6 +885,7 @@ public:
bool mustBeWidenedToAvailWidth ();
void borderChanged (int y, core::Widget *vloat);
+ void widgetRefSizeChanged (int externalIndex);
void clearPositionChanged ();
void oofSizeChanged (bool extremesChanged);
int getLineBreakWidth ();
@@ -888,7 +893,7 @@ public:
bool isPossibleContainerParent (int oofmIndex);
};
-#define DBG_SET_WORD_PENALTY(n, i, is) \
+#define DBG_SET_WORD_PENALTY(n, i, is) \
D_STMT_START { \
if (words->getRef(n)->badnessAndPenalty.getPenalty (i) == INT_MIN) \
DBG_OBJ_ARRATTRSET_SYM ("words", n, "penalty." is, "-inf"); \
@@ -897,7 +902,7 @@ public:
else \
DBG_OBJ_ARRATTRSET_NUM ("words", n, "penalty." is, \
words->getRef(n)->badnessAndPenalty \
- .getPenalty (i)); \
+ .getPenalty (i)); \
} D_STMT_END
#define DBG_SET_WORD(n) \