diff options
Diffstat (limited to 'src/java/org/apache/fop/render/intermediate/IFContext.java')
-rw-r--r-- | src/java/org/apache/fop/render/intermediate/IFContext.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/intermediate/IFContext.java b/src/java/org/apache/fop/render/intermediate/IFContext.java index 62bbbe9c5..fda0cff3b 100644 --- a/src/java/org/apache/fop/render/intermediate/IFContext.java +++ b/src/java/org/apache/fop/render/intermediate/IFContext.java @@ -53,6 +53,8 @@ public class IFContext { private String location; + private boolean hyphenated; + /** * Main constructor. * @param ua the user agent @@ -200,4 +202,18 @@ public class IFContext { return location; } + /** + * Records that the last text in the currently processed text area is hyphenated. + */ + public void setHyphenated(boolean hyphenated) { + this.hyphenated = hyphenated; + } + + /** + * Returns {@code true} if the last text in the currently processed text area is hyphenated. + */ + public boolean isHyphenated() { + return hyphenated; + } + } |