diff options
Diffstat (limited to 'dw/oofpositionedmgr.hh')
-rw-r--r-- | dw/oofpositionedmgr.hh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/dw/oofpositionedmgr.hh b/dw/oofpositionedmgr.hh index f4ded844..dc6943ed 100644 --- a/dw/oofpositionedmgr.hh +++ b/dw/oofpositionedmgr.hh @@ -7,7 +7,16 @@ namespace dw { class OOFPositionedMgr: public OutOfFlowMgr { -private: +protected: + virtual int cbBoxOffsetX () = 0; + virtual int cbBoxOffsetY () = 0; + virtual int cbBoxRestWidth () = 0; + virtual int cbBoxRestHeight () = 0; + + inline int cbBoxDiffWidth () { return cbBoxOffsetX () + cbBoxRestWidth (); } + inline int cbBoxDiffHeight () + { return cbBoxOffsetY () + cbBoxRestHeight (); } + Textblock *containingBlock; core::Allocation containingBlockAllocation; |