aboutsummaryrefslogtreecommitdiff
path: root/dw/oofpositionedmgr.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-02 21:55:55 +0200
committerSebastian Geerken <devnull@localhost>2014-09-02 21:55:55 +0200
commitce0adbe7fa5cec414839ff10a6c1b80d2374e01f (patch)
tree5a16360c17ec0d6eff6b993d1f4a0206de03385b /dw/oofpositionedmgr.hh
parent18ee7bb9c96f02dc9cf6ce2091bdc33231954af3 (diff)
Absolute positions: margins, borders, and paddings are now correct.
Diffstat (limited to 'dw/oofpositionedmgr.hh')
-rw-r--r--dw/oofpositionedmgr.hh11
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;