diff options
author | Sebastian Geerken <devnull@localhost> | 2014-09-02 21:55:55 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-09-02 21:55:55 +0200 |
commit | ce0adbe7fa5cec414839ff10a6c1b80d2374e01f (patch) | |
tree | 5a16360c17ec0d6eff6b993d1f4a0206de03385b /dw/oofposabsmgr.cc | |
parent | 18ee7bb9c96f02dc9cf6ce2091bdc33231954af3 (diff) |
Absolute positions: margins, borders, and paddings are now correct.
Diffstat (limited to 'dw/oofposabsmgr.cc')
-rw-r--r-- | dw/oofposabsmgr.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dw/oofposabsmgr.cc b/dw/oofposabsmgr.cc index 013f00c0..3ddc1ed2 100644 --- a/dw/oofposabsmgr.cc +++ b/dw/oofposabsmgr.cc @@ -18,6 +18,7 @@ */ #include "oofposabsmgr.hh" +#include "textblock.hh" namespace dw { @@ -32,4 +33,28 @@ OOFPosAbsMgr::~OOFPosAbsMgr () DBG_OBJ_DELETE (); } +int OOFPosAbsMgr::cbBoxOffsetX () +{ + return containingBlock->boxOffsetX () + - containingBlock->getStyle()->padding.left; +} + +int OOFPosAbsMgr::cbBoxOffsetY () +{ + return containingBlock->boxOffsetY () + - containingBlock->getStyle()->padding.top; +} + +int OOFPosAbsMgr::cbBoxRestWidth () +{ + return containingBlock->boxRestWidth () + - containingBlock->getStyle()->padding.right; +} + +int OOFPosAbsMgr::cbBoxRestHeight () +{ + return containingBlock->boxRestHeight () + - containingBlock->getStyle()->padding.bottom; +} + } // namespace dw |