aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-08 12:31:53 +0100
committerSebastian Geerken <devnull@localhost>2015-01-08 12:31:53 +0100
commit428094b178eb03d8e500c81837caac402e4b138c (patch)
tree353456467cadd4c258b8a8c3f306d817925500b6 /dw/textblock.hh
parentd37efc2feb2b387d879962f4ef3fed2b9bf5a5e9 (diff)
RegardingBorder; fixes problems with <hr/>.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r--dw/textblock.hh15
1 files changed, 8 insertions, 7 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh
index cb040c0a..162088dc 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -3,7 +3,7 @@
#include <limits.h>
-#include "core.hh"
+#include "regardingborder.hh"
#include "outofflowmgr.hh"
#include "../lout/misc.hh"
@@ -196,7 +196,7 @@ namespace dw {
* necessary, or otherwise the line from which a rewrap is necessary.
*
*/
-class Textblock: public core::Widget
+class Textblock: public RegardingBorder
{
private:
/**
@@ -691,12 +691,12 @@ protected:
*/
inline bool mustBorderBeRegarded (Line *line)
{
- return getTextblockForLine (line) == NULL;
+ return getWidgetRegardingBorderForLine (line) == NULL;
}
inline bool mustBorderBeRegarded (int lineNo)
{
- return getTextblockForLine (lineNo) == NULL;
+ return getWidgetRegardingBorderForLine (lineNo) == NULL;
}
inline int _lineYOffsetWidgetAllocation (Line *line,
@@ -761,9 +761,10 @@ protected:
}
}
- Textblock *getTextblockForLine (Line *line);
- Textblock *getTextblockForLine (int lineNo);
- Textblock *getTextblockForLine (int firstWord, int lastWord);
+ RegardingBorder *getWidgetRegardingBorderForLine (Line *line);
+ RegardingBorder *getWidgetRegardingBorderForLine (int lineNo);
+ RegardingBorder *getWidgetRegardingBorderForLine (int firstWord,
+ int lastWord);
void printBorderChangedErrorAndAbort (int y, Widget *vloat,
int wrapLineIndex);
int yOffsetOfLineToBeCreated ();