aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-12 01:40:07 +0200
committerSebastian Geerken <devnull@localhost>2014-09-12 01:40:07 +0200
commita42d8297257c9d68062811467a3bd2aaab7c16ff (patch)
tree41a0c822f10393874dbd39a0d6a6666092f1c0e1 /dw/textblock.hh
parent81e52eabc07c79384d89d7d863efe19dd95cbd93 (diff)
OOFAwareWidget (instead of Textblock): start.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r--dw/textblock.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh
index f7db7b1c..67f55569 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -5,6 +5,7 @@
#include "core.hh"
#include "outofflowmgr.hh"
+#include "oofawarewidget.hh"
#include "../lout/misc.hh"
// These were used when improved line breaking and hyphenation were implemented.
@@ -152,7 +153,7 @@ namespace dw {
* necessary, or otherwise the line from which a rewrap is necessary.
*
*/
-class Textblock: public core::Widget
+class Textblock: public oof::OOFAwareWidget
{
private:
/**
@@ -905,7 +906,7 @@ public:
void borderChanged (int y, core::Widget *vloat);
void oofSizeChanged (bool extremesChanged);
- inline int getLineBreakWidth () { return lineBreakWidth; }
+ int getLineBreakWidth ();
};
#define DBG_SET_WORD_PENALTY(n, i, is) \