From ce0adbe7fa5cec414839ff10a6c1b80d2374e01f Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Tue, 2 Sep 2014 21:55:55 +0200 Subject: Absolute positions: margins, borders, and paddings are now correct. --- dw/oofpositionedmgr.hh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'dw/oofpositionedmgr.hh') 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; -- cgit v1.2.3