aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-05-11 13:06:33 +0200
committerSebastian Geerken <devnull@localhost>2014-05-11 13:06:33 +0200
commit5ca902c4e37684563a8b2c2efee25370195061b6 (patch)
tree12557ec2a5cca2737278177ee59ed6148013b6f2 /dw/textblock.hh
parent5826f4b3b6c963e6a062d96b89b654b348d80b08 (diff)
Textblock::wordWrap returns not just true/false, but the exact difference.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r--dw/textblock.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh
index 5e6929a7..3254b843 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -705,19 +705,19 @@ protected:
void accumulateWordExtremes (int firstWord, int lastWord,
int *maxOfMinWidth, int *sumOfMaxWidth);
void processWord (int wordIndex);
- virtual bool wordWrap (int wordIndex, bool wrapAll);
- bool wrapWordInFlow (int wordIndex, bool wrapAll);
+ virtual int wordWrap (int wordIndex, bool wrapAll);
+ int wrapWordInFlow (int wordIndex, bool wrapAll);
void balanceBreakPosAndHeight (int wordIndex, int firstIndex,
int *searchUntil, bool tempNewLine,
int penaltyIndex, bool borderIsCalculated,
bool *thereWillBeMoreSpace, bool wrapAll,
- bool *wordListChanged, int *wordIndexEnd,
+ int *diffWords, int *wordIndexEnd,
int *lastFloatPos, bool regardBorder,
int *height, int *breakPos);
int searchBreakPos (int wordIndex, int firstIndex, int *searchUntil,
bool tempNewLine, int penaltyIndex,
bool thereWillBeMoreSpace, bool wrapAll,
- bool *wordListChanged, int *wordIndexEnd,
+ int *diffWords, int *wordIndexEnd,
int *addIndex1 = NULL);
int searchMinBap (int firstWord, int lastWordm, int penaltyIndex,
bool thereWillBeMoreSpace, bool correctAtEnd);