]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Word 2003 doesn't seem to understand "fldinst { PAGE }", so using \chpgn for now.
authorJeremias Maerki <jeremias@apache.org>
Mon, 1 Nov 2004 15:00:43 +0000 (15:00 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 1 Nov 2004 15:00:43 +0000 (15:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198120 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfPageNumber.java

index 36fb914d4af1ec6e56f342b1e898e700032bec7c..44934bde1cbc1f56d8186335b3f6dccde4032b82 100644 (file)
@@ -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);
     }
 
     /**