diff options
author | Sebastian Geerken <devnull@localhost> | 2014-06-15 13:19:42 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-06-15 13:19:42 +0200 |
commit | ea86b6dcfba99333c49746a45e7c34a9b5acf97f (patch) | |
tree | c003ff3d0f26cd71932bf0679e290ad20064e8e2 /dw/textblock.hh | |
parent | 87b58bcbe2170932565218c8688985708f522ee4 (diff) |
Some reorganisation of Textblock, part 2.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r-- | dw/textblock.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh index 61e58ba2..bb2e6ddd 100644 --- a/dw/textblock.hh +++ b/dw/textblock.hh @@ -362,6 +362,7 @@ protected: int lastOofRefPositionedBeforeThisLine; int leftOffset, rightOffset; + enum { LEFT, RIGHT, CENTER } alignment; }; struct Word @@ -741,6 +742,7 @@ protected: int calcLineBreakWidth (int lineIndex); void initLine1Offset (int wordIndex); void alignLine (int lineIndex); + void calcTextOffset (int lineIndex, int totalWidth); void sizeRequestImpl (core::Requisition *requisition); void getExtremesImpl (core::Extremes *extremes); |