aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2004-11-01 15:00:43 +0000
committerJeremias Maerki <jeremias@apache.org>2004-11-01 15:00:43 +0000
commitedfec12c6945bf841f525a96b6968bac79acbc3d (patch)
treeef59aa0b04074ff24890995a273f9a0995cd3903 /src/java/org/apache/fop/render
parentc00bdcc884f9a98d4d1d48e49ed528269badf70a (diff)
downloadxmlgraphics-fop-edfec12c6945bf841f525a96b6968bac79acbc3d.tar.gz
xmlgraphics-fop-edfec12c6945bf841f525a96b6968bac79acbc3d.zip
Word 2003 doesn't seem to understand "fldinst { PAGE }", so using \chpgn for now.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198120 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render')
-rw-r--r--src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java
index 36fb914d4..44934bde1 100644
--- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java
+++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java
@@ -75,6 +75,7 @@ public class RtfPageNumber extends RtfContainer {
* @throws IOException for I/O problems
*/
protected void writeRtfContent() throws IOException {
+ /*
writeGroupMark(true);
writeControlWord(RTF_FIELD);
writeGroupMark(true);
@@ -85,6 +86,11 @@ public class RtfPageNumber extends RtfContainer {
writeControlWord(RTF_FIELD_RESULT);
writeGroupMark(false);
writeGroupMark(false);
+ */
+ writeGroupMark(true);
+ writeAttributes(attrib, RtfText.ATTR_NAMES);
+ writeControlWord("chpgn");
+ writeGroupMark(false);
}
/**