diff options
author | Sebastian Geerken <devnull@localhost> | 2014-09-22 16:10:19 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-09-22 16:10:19 +0200 |
commit | 156f3622e4197dddeba990637dcbe1100c5d51ac (patch) | |
tree | 515d895e93c85959df85cde0b1feb9b986a5a855 /dw/textblock.cc | |
parent | 473610dbc053c39ff9d94476b23ea6a51ff07e1f (diff) |
Implemented OOFPositionedMgr::tellPosition (and what is needed else).
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 59817bdd..f1598fec 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -2260,6 +2260,11 @@ void Textblock::addWidget (core::Widget *widget, core::style::Style *style) words->size ()); widget->parentRef = makeParentRefOOF (oofmIndex, oofmSubRef); + DBG_OBJ_MSGF ("construct.word", 1, + "ouf of flow: oofmIndex = %d, oofmSubRef = %d => " + "parentRef = %d", + oofmIndex, oofmSubRef, widget->parentRef); + Word *word = addWord (0, 0, 0, 0, style); word->content.type = core::Content::WIDGET_OOF_REF; word->content.widget = widget; @@ -2268,6 +2273,8 @@ void Textblock::addWidget (core::Widget *widget, core::style::Style *style) // problems with breaking near float definitions.) setBreakOption (word, style, 0, 0, false); } else { + DBG_OBJ_MSG ("construct.word", 1, "in flow"); + widget->setParent (this); // TODO Replace (perhaps) later "textblock" by "OOF aware widget". |