aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-12 20:28:56 +0200
committerSebastian Geerken <devnull@localhost>2014-09-12 20:28:56 +0200
commitae2d990af432ea56375936e5ec9872fe0503d61f (patch)
tree0b5bf1d9fbce4481ae3fc49b86b6362ae071a12f /dw/textblock.hh
parentf9f3fcc4b5f72de36d6cb231baeaf21a3b615704 (diff)
Table gets OOF aware, part 1. Warning: crashes!
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r--dw/textblock.hh32
1 files changed, 0 insertions, 32 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh
index dc496550..82b62b2a 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -246,38 +246,6 @@ private:
static const char *hyphenDrawChar;
protected:
- inline bool isParentRefOOF (int parentRef)
- { return parentRef != -1 && (parentRef & PARENT_REF_OOFM_MASK); }
-
- inline int makeParentRefInFlow (int lineNo)
- { return (lineNo << PARENT_REF_OOFM_BITS); }
- inline int getParentRefLineNo (int parentRef)
- { assert (!isParentRefOOF (parentRef));
- return parentRef >> PARENT_REF_OOFM_BITS; }
-
- inline int makeParentRefOOF (int oofmIndex, int oofmSubRef)
- { return (oofmSubRef << PARENT_REF_OOFM_BITS) | (oofmIndex + 1); }
- inline int getParentRefOOFSubRef (int parentRef)
- { assert (isParentRefOOF (parentRef));
- return parentRef >> PARENT_REF_OOFM_BITS; }
- inline int getParentRefOOFIndex (int parentRef)
- { assert (isParentRefOOF (parentRef));
- return (parentRef & PARENT_REF_OOFM_MASK) - 1; }
- inline oof::OutOfFlowMgr *getParentRefOutOfFlowMgr (int parentRef)
- { return outOfFlowMgr[getParentRefOOFIndex (parentRef)]; }
-
- inline bool isWidgetOOF (Widget *widget)
- { return isParentRefOOF (widget->parentRef); }
-
- inline int getWidgetLineNo (Widget *widget)
- { return getParentRefLineNo (widget->parentRef); }
-
- inline int getWidgetOOFSubRef (Widget *widget)
- { return getParentRefOOFSubRef (widget->parentRef); }
- inline int getWidgetOOFIndex (Widget *widget)
- { return getParentRefOOFIndex (widget->parentRef); }
- inline oof::OutOfFlowMgr *getWidgetOutOfFlowMgr (Widget *widget)
- { return getParentRefOutOfFlowMgr (widget->parentRef); }
/**
* \brief Implementation used for words.