diff options
author | Jeremias Maerki <jeremias@apache.org> | 2004-12-08 18:52:32 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2004-12-08 18:52:32 +0000 |
commit | 182812ae39ec54fb863a0109f1cb1d9b59841309 (patch) | |
tree | 8bef6b5403f36dee995458dc2e07d51b85a60996 /src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java | |
parent | 990e58f8706a8dbf47e2ed3a3db28fd67306afc8 (diff) | |
download | xmlgraphics-fop-182812ae39ec54fb863a0109f1cb1d9b59841309.tar.gz xmlgraphics-fop-182812ae39ec54fb863a0109f1cb1d9b59841309.zip |
Make RTF output human-friendly by inserting line feeds.
Adding support for table cell padding.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198194 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java')
-rwxr-xr-x | src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java b/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java index 5dea87cf5..1f287c83c 100755 --- a/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java +++ b/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java @@ -42,6 +42,17 @@ public class FOPRtfAttributes extends RtfAttributes { } /** + * Set an attribute using a value in millipoints (internal units in twips) + * @param name name of attribute + * @param value value of attribute (in millipoints) + * @return this (which now contains the new entry) + */ + public RtfAttributes setTwips(String name, int value) { + set(name, value / (1000 / 20)); //Convert millipoints to twips + return this; + } + + /** * Set an attribute that has a Length value (internal units in half-points) * @param name name of attribute * @param value value of attribute |